Tutorials.
Notebooks, repositories, and demos, organized by lecture.
Lecture 1: Virtual Environments and Virtual Machines
Ed lessonCreate Simple Translate App - No Docker, No UV
- Description: A simple translation app built without using Docker or UV.
- GCP GitHub URL: Install App on VM Manually
- AWS GitHub URL: Install App on VM Manually - AWS
Create Simple Translate App with UV (GCP) / Pipenv (AWS), No Docker
- Description: A translation app using UV on GCP or Pipenv on AWS, without Docker.
- GCP GitHub URL: Install App on VM using UV
- AWS GitHub URL: Install App on VM using Pipenv - AWS
Lecture 2: Containers I
Ed lessonCreate Simple Translate App with Docker, Push Image to Docker Hub
- Description: Build a simple translation app, containerize it with Docker, and push the image to Docker Hub.
- GCP GitHub URL: Develop App using Containers
- AWS GitHub URL: Develop App using Containers - AWS
Run App in VM using Docker
- Description: A continuation of the Docker tutorial, running the containerized app in a VM.
- GCP GitHub URL: Run App on VM using Docker
- AWS GitHub URL: Run App on VM using Docker - AWS
Lecture 3: Containers II
Ed lessonMega Pipeline App
- Description: Build a Mega Pipeline App.
- GCP GitHub URL: Mega Pipeline App
- AWS GitHub URL: Mega Pipeline App
Lecture 4: Containers II-b
Ed lessonDocker
Mega Pipeline App with Flexible Workflow
- Description: Build a Mega Pipeline App with Flexible Workflow.
- GCP GitHub URL: Mega Pipeline App (Flexible Workflow)
Docker Compose: Port Toy App
- Description: Container networks and ports. Two containers, one published port, one message.
- GCP GitHub URL: Port Toy App
Lecture 5: LLM: RAGs
Ed lessonLLM-RAG
- Description: Building a RAG System with Vector DB and LLM
- GCP GitHub URL: LLM-1
Lecture 6: LLM: Agents I
Ed lessonLecture 7: LLM: Agents II (+Agents Practical Use)
Ed lessonAgent Harness
- Description: Agent Harness
- Colab Notebook: Agent Harness on Google Colab
- GCP GitHub URL: Agent Harness
Lecture 8: LLM: Finetuning
Ed lessonLLM-Fine Tuning
- Description: LLM Fine Tuning using PEFT
- GCP GitHub URL: LLM Fine Tuning
- Colab Notebook: LLM Fine Tuning Notebook
Lecture 9: Automating Software Development: CI, unit testing
Ed lessonTaught as a guest lecture by Rahul Dave ("Software Development for Machine Learning").
- Slides/Tutorial App: Babykev Walk
- Project Repository: Babykev
Testing with Pytest
- Description: Unit, integration, system and acceptance tests with pytest
- GCP GitHub URL: Testing with Pytest
Automating with Pre-commit Hooks
- Description: Local git hooks that run linters, formatters and tests before each commit
- GCP GitHub URL: Pre-commit Hooks
Lecture 10: Connecting to the Cloud: Networking, Authentication & Storage
Ed lessonLLM-Fine Tuning
- Description: Cheese-app-V0
- GCP GitHub URL: Cheese-app-V0
Lecture 11: Data Management and Versioning
Ed lessonLabel Studio
- Description: Learn how to use Label Studio for data labeling.
- GCP GitHub URL: Label Studio
- AWS GitHub URL: Label Studio - AWS
Data Versioning
- Description: Learn about versioning practices in development. Particularly, how to use DVC for data versioning.
- GCP GitHub URL: DVC
Lecture 12: App Design
Ed lessonSteps to build a Solution Architecture
Lecture 13: Advanced Training Workflows: experiment tracking (W&B), multi-GPU, serverless training (Vertex AI)
Ed lessonExperiment Tracking
- Description: Classification Model, Experiment Tracking
- Colab Notebook A: Cheese Classification Models
- Colab Notebook B: Experiment Tracking with W&B
Advanced Workflow: Serverless Model Training with Vertex AI
- Description: Serverless Model Training with Vertex AI
- GCP GitHub URL: Serverless Model Training
Lecture 14: Serverless Deployment: Functions, Services, Identity, and Jobs
Ed lessonServerless Deployment
- Description: Follow the four-part tutorial in order. Each part adds one idea to the same translation application; start with the console walkthroughs and expand the optional command-line alternatives when useful.
- Part 1: Deploy a translation function: source code to a public endpoint.
- Part 2: Deploy a translation web app: a tested local container to a public Cloud Run service.
- Part 3: Give the web app access to Agent Platform: service accounts, speech generation, and local development with Application Default Credentials.
- Part 4: Generate and save a translated audio edition: a finite Cloud Run job that saves translated text and audio to Cloud Storage, with console and CLI submission paths.
Lecture 15: ML Workflows with Vertex AI
Ed lessonModel Deployment using Vertex AI
- Description: Model Deployment using Vertex AI
- GCP GitHub URL: Model Deployment
- AWS GitHub URL: Model Deployment - AWS
ML Workflow
- Description: Vertex AI ML Workflow for pipeline. Data Processing, data collection, model training, model deployment.
- GCP GitHub URL: ML Workflow
- AWS GitHub URL: ML Workflow - AWS
Lecture 16: System Tradeoffs: Performance, Cost, and Design Choices
Ed lessonLecture 17: Evaluating and Monitoring ML Systems in Production
Ed lessonProduction Monitoring
- Description: Investigate a failing cheese model in production from its prediction logs, then build the monitoring that would have caught it.
- GCP GitHub URL: Production Monitoring
Lecture 18: APIs + Frontend
Ed lessonAPIs & Frontend Demo
- Description: APIs & Frontend Demo
- GCP GitHub URL: Cheese Shop Demo
API & Frontend
- Description: Set up and run the Cheese App
- GCP GitHub URL: App v2: Setup & Run Cheese App
Backend and FastAPI
- Description: Cheese App APIs
- GCP GitHub URL: App v2: FastAPI Backend
Frontend React
- Description: Frontend App (React)
- GCP GitHub URL: App v2: Frontend React
Lecture 19: Scaling: Kubernetes (local)
Ed lessonCheese Shop Demo App
- Description: Deploy the shop locally and scale its workers by CPU usage or queue depth.
- Scaling with Kubernetes
Cheese App v3: Vector DB, API & Frontend
- Description: Run the app locally and test autoscaling and rolling updates.
- Kubernetes on your laptop
Lecture 20: Deployment: Pulumi
Ed lessonDeploy to a VM by hand
- Description: Set up a Compute Engine VM and run the Cheese App on it.
- GCP GitHub URL: Cheese App v3: Manual VM deployment
Deploy to a VM with Pulumi
- Description: Use Pulumi to create cloud resources, push images to Artifact Registry, and deploy the Cheese App to a VM.
- GCP GitHub URL: Cheese App v3: VM deployment with Pulumi
Deploy to Kubernetes with Pulumi (GKE)
- Description: Reuse the images in Artifact Registry, create a GKE cluster with Pulumi, and deploy the same app.
- GCP GitHub URL: Cheese App v3: GKE deployment
Lecture 21: A recipe on all CI/CD all together
The CI/CD recipe link is coming soon.
GitHub Actions reference
- Description: Review how GitHub Actions builds and tests the Cheese App.
- GCP GitHub URL: GitHub Actions: Remote CI
Lecture 22: Final Deployment and Review
Formaggio live deployment
- Description: Review Formaggio, propose a feature, push the change, and check the deployed result.