<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/do_community/best-of/2024/09" -->

---
title: Best DigitalOcean Community posts — September 2024
description: The most upvoted DigitalOcean Community posts from September 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/do_community/best-of/2024/09
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/do_community/best-of/2024/09
og:type: website
og:site_name: daily.dev
og:title: Best DigitalOcean Community posts — September 2024 | daily.dev
og:description: The most upvoted DigitalOcean Community posts from September 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of DigitalOcean Community — September 2024

1. 1  
[](https://daily.dev/posts/pytorch-101-understanding-hooks-omhcyzqyf "PyTorch 101: Understanding Hooks")  
Article  
![Avatar of do_community](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c1b9d07730e34ea388c39a498a753d6c)DigitalOcean Community · 2y  
PyTorch 101: Understanding Hooks  
Learn how to use hooks in PyTorch for debugging and visualization during the training process. This tutorial explains the concept and functionality of hooks, including both forward and backward hooks, and provides code examples to demonstrate their usage. It also discusses the intricacies of using hooks with tensors and nn.Module objects, cautioning about potential complications in complex networks.  
25
2. 2  
[](https://daily.dev/posts/how-to-train-a-question-answering-machine-learning-model-bert--zitsriqx7 "How to Train A Question-Answering Machine Learning Model (BERT)")  
Article  
![Avatar of do_community](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c1b9d07730e34ea388c39a498a753d6c)DigitalOcean Community · 2y  
How to Train A Question-Answering Machine Learning Model (BERT)  
Question-Answering Models are designed to respond to questions using given context. This involves understanding language structure, semantic context, and pinpointing answer locations. The advent of Transformer's self-attention mechanism revolutionized NLP, leading to models like BERT. BERT's architecture includes a ladder of encoder layers that process data in parallel, making it efficient. Trained through Masked Language Modelling and Next Sentence Prediction, BERT is fine-tuned for specific tasks like question answering using datasets like SQuAD2.0\. Here, BioBERT, a domain-specific variant, is trained using the Hugging Face library to answer COVID-19 related questions with modified data handling for RAM efficiency.  
23
3. 3  
[](https://daily.dev/posts/boosting-python-scripts-with-cython-nwcmdao0h "Boosting Python Scripts With Cython")  
Article  
![Avatar of do_community](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c1b9d07730e34ea388c39a498a753d6c)DigitalOcean Community · 2y  
Boosting Python Scripts With Cython  
Python is popular but not the most efficient for computational-heavy tasks. Cython can significantly speed up Python scripts by allowing the use of C data types within Python code. This tutorial guides you through optimizing a Python for loop to sum a list of 1 billion numbers using Cython, highlighting the benefits and process of using the tool, including how to implement this on a Raspberry Pi.  
18  
1
4. 4  
[](https://daily.dev/posts/how-to-train-and-use-a-custom-yolov7-model-yksk9lo4c "How to train and use a custom YOLOv7 model")  
Article  
![Avatar of do_community](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c1b9d07730e34ea388c39a498a753d6c)DigitalOcean Community · 2y  
How to train and use a custom YOLOv7 model  
YOLOv7 is the latest iteration of the YOLO object detection model, offering significant improvements over previous versions due to enhancements like model re-parameterization, E-ELAN techniques, and compound scaling. The tutorial covers the theoretical background, practical steps for training a custom YOLOv7 model, and a detailed coding demo using NBA game footage to identify the ball handler. Key steps include dataset preparation, labeling using RoboFlow, model training, and performance evaluation.  
14
5. 5  
[](https://daily.dev/posts/how-to-set-up-a-fast-api-application-with-a-nosql-database-8gk9v9vrp "How to Set Up a Fast API Application with a NoSQL Database")  
Article  
![Avatar of do_community](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c1b9d07730e34ea388c39a498a753d6c)DigitalOcean Community · 2y  
How to Set Up a Fast API Application with a NoSQL Database  
Learn how to set up a FastAPI application with a NoSQL database, specifically MongoDB, on an Ubuntu server. FastAPI is known for its speed and support for asynchronous programming, making it ideal for scalable modern applications. The guide covers prerequisites, Python and pip installation, creating a virtual environment, installing necessary libraries like FastAPI, Uvicorn, and Motor, and setting up MongoDB. It includes examples of creating API routes for AI prediction and MongoDB interactions, and how to run the application using Uvicorn. The post also touches on containerizing the application using Docker Compose.  
13
6. 6  
[](https://daily.dev/posts/how-to-perform-unit-testing-in-flask-dmhtwjzaf "How To Perform Unit Testing in Flask")  
Article  
![Avatar of do_community](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/c1b9d07730e34ea388c39a498a753d6c)DigitalOcean Community · 2y  
How To Perform Unit Testing in Flask  
Learn how to set up and perform unit testing in a Flask application using pytest. This guide explains how pytest offers advantages over the standard unittest module, including simpler syntax, better output, and powerful fixtures. It covers setting up a Flask app, writing unit tests, and running them with pytest, along with adding both passing and intentional failing test cases for better understanding.  
10

[See all DigitalOcean Community archives](/sources/do%5Fcommunity/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/do_community/best-of/2024/09#page","url":"https://daily.dev/sources/do_community/best-of/2024/09","name":"Best DigitalOcean Community Posts — September 2024","description":"The most upvoted DigitalOcean Community posts from September 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/do_community/best-of/2024/09#items","numberOfItems":6,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/pytorch-101-understanding-hooks-omhcyzqyf","name":"PyTorch 101: Understanding Hooks"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/how-to-train-a-question-answering-machine-learning-model-bert--zitsriqx7","name":"How to Train A Question-Answering Machine Learning Model (BERT)"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/boosting-python-scripts-with-cython-nwcmdao0h","name":"Boosting Python Scripts With Cython"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/how-to-train-and-use-a-custom-yolov7-model-yksk9lo4c","name":"How to train and use a custom YOLOv7 model"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/how-to-set-up-a-fast-api-application-with-a-nosql-database-8gk9v9vrp","name":"How to Set Up a Fast API Application with a NoSQL Database"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/how-to-perform-unit-testing-in-flask-dmhtwjzaf","name":"How To Perform Unit Testing in Flask"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"DigitalOcean Community","item":"https://daily.dev/sources/do_community"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/do_community/best-of"},{"@type":"ListItem","position":5,"name":"September 2024"}]}]}
```

