cs249r_book

Introduction to Machine Learning Systems

20 articles 20.1k View on GitHub ↗
20 articles
How to Optimize ML Models for Edge and Mobile Devices: A Complete Production Pipeline

Optimize ML models for edge and mobile devices. Learn to profile memory, quantize weights, prune models, and benchmark using the Harvard cs249r_book production pipeline to meet strict memory limits.

tutorial
Feb 19, 2026
How Federated Learning Improves Distributed Privacy: Architecture and Implementation

Discover how federated learning enhances distributed privacy. Learn about its architecture and implementation, keeping raw data local and only transmitting aggregated model updates.

deep-dive
Feb 19, 2026
How to Manage Model Versioning and Registries in MLOps

Master model versioning and registries for MLOps. Learn how to achieve immutable artifact storage, track metadata lineage, and ensure reproducible experiments for seamless deployment.

how-to-guide
Feb 19, 2026
TensorFlow vs PyTorch vs ONNX for Production: Architectural Trade-offs and Deployment Workflows

Compare TensorFlow PyTorch and ONNX for production ML deployment. Explore architectural trade-offs and deployment workflows for seamless cross-platform execution. Optimize your ML models.

deep-dive
Feb 19, 2026
How Does Tokenization Work for NLP Models: Inside the TinyTorch Implementation

Discover how tokenization works for NLP models. Explore character-level mapping and BPE subword algorithms with TinyTorch implementation.

deep-dive
Feb 19, 2026
How to Implement Convolutional Neural Networks from Scratch: A Complete Guide to TinyTorch

Learn to implement convolutional neural networks from scratch using explicit loops and custom autograd with Harvard's TinyTorch. Build modular spatial layers for deep learning.

tutorial
Feb 19, 2026
Deep Learning Optimizer Implementations: SGD, Adam, and AdamW Explained

Explore SGD Adam and AdamW optimizer implementations for deep learning. Understand core algorithms for efficient neural network training with lightweight examples from harvard-edge cs249r_book.

deep-dive
Feb 19, 2026
How to Implement the Attention Mechanism in Neural Networks: A Complete Guide to Scaled-Dot-Product and Multi-Head Attention

Learn to implement the attention mechanism in neural networks. This guide covers scaled dot-product and multi-head attention for powerful AI models. Master attention for better results.

how-to-guide
Feb 19, 2026
How to Profile ML Workloads to Find Performance Bottlenecks in cs249r_book

Discover how to profile ML workloads using the cs249r_book repository. Identify performance bottlenecks by measuring FLOPs and latency to optimize your machine learning models.

how-to-guide
Feb 19, 2026
How to Enable On-Device Learning for ML Models: A Complete Technical Guide

Unlock the power of on-device learning for ML models. Learn efficient strategies for training on edge devices, respecting resource constraints. Get the technical guide now.

how-to-guide
Feb 19, 2026
How to Implement Fault Tolerance in ML Systems: A Layered Architecture Guide

Implement fault tolerance in ML systems with a layered architecture. Learn hardware redundancy, checkpointing, gradient clipping, and monitoring for seamless recovery and data integrity.

architecture
Feb 19, 2026
How to Optimize ML Inference for Speed and Efficiency: A Practical Guide to TinyTorch

Optimize ML inference speed and efficiency using warm-up runs, batching, KV-caching, 8-bit quantization, pruning, and kernel fusion with TinyTorch from Harvard cs249r_book.

how-to-guide
Feb 19, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →