Prerequisites
Before you begin, ensure you have:- Python 3.10 or higher installed
- Git installed on your system
- Basic familiarity with command line operations
- (Optional) Docker Desktop for containerization examples
Step 1: Clone the Repository
Clone the ML in Production Practice repository to your local machine:The repository contains 8 self-contained modules. Each module has its own dependencies and can be explored independently.
Step 2: Set Up Your First Example
Let’s start with Module 3’s classic NLP example - a sentiment classification model using BERT.Step 3: Download and Prepare Data
Load the SST-2 dataset (Stanford Sentiment Treebank) for sentiment analysis:Step 4: Train Your First Model
Train a BERT-based sentiment classifier with the pre-configured settings:- Load the pre-trained BERT model from Hugging Face
- Fine-tune it on the SST-2 dataset
- Save the trained model to the
results/directory - Generate training metrics and evaluation results
Step 5: Run Inference
Test your trained model on new data:predictions.csv with probability scores for each class.
Step 6: Serve Your Model
Deploy your model as a REST API using FastAPI:What’s Next?
You’ve successfully trained and deployed your first ML model! Here’s what to explore next:Environment Setup
Configure virtual environments, dependencies, and development tools
Module 1: Infrastructure
Learn Docker, Kubernetes, and CI/CD for ML systems
Module 4: Orchestration
Build ML pipelines with Airflow, Kubeflow, and Dagster
Module 7: Monitoring
Set up observability and data drift monitoring
Quick Tips
Using Weights & Biases for experiment tracking
Using Weights & Biases for experiment tracking
The examples integrate with W&B for logging metrics and artifacts:Sign up for free at wandb.ai to track your experiments.
Running on Modal serverless platform
Running on Modal serverless platform
Deploy training jobs to Modal for GPU access:This runs your training job on cloud GPUs without managing infrastructure.
Code quality and formatting
Code quality and formatting
Format and check code style across the repository:Run tests with pytest:
Getting Help
Discord Community
Ask questions and connect with other learners
Report an Issue
Found a bug or have a suggestion?
Course Page
Access the full course curriculum
DeepWiki
Community-maintained summaries of each module