← All topics

ML systems

0 of 18 steps read

Read first
Evolution

Foundations

1
CMU 10-414/714: Deep Learning Systems

Automatic differentiation, layers, optimizers and GPU operations, each built from scratch into a small deep learning library. In English.

CMU· 2026
Background
Further reading

Frameworks and kernels

2
PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph Compilation

Eager PyTorch is flexible but hard to compile, so TorchDynamo captures graphs from ordinary Python bytecode and TorchInductor compiles them to Triton and C++.

Meta· 2024
3
Introducing Triton: Open-source GPU programming for neural networks

Fast CUDA kernels need expert tuning, so Triton lets you write them in Python over blocks while the compiler handles memory and scheduling.

OpenAI· 2021
4
FlashAttention

Attention is bound by GPU memory traffic, so FlashAttention computes it tile by tile in on-chip SRAM.

Stanford· 2022

Distributed training

5
PyTorch Distributed: Experiences on Accelerating Data Parallel Training

Data-parallel training waits on gradient sync, so PyTorch DDP all-reduces gradients in buckets while the backward pass is still running.

Meta· 2020
6
ZeRO: Memory Optimizations Toward Training Trillion Parameter Models

Data parallelism copies all model state to every GPU, so ZeRO shards optimizer state, gradients and weights across workers.

Microsoft· 2019
7
The Ultra-Scale Playbook: Training LLMs on GPU Clusters

Large models need more than data parallelism, and this playbook explains tensor, context, pipeline and expert parallelism and how to combine them.

Hugging Face· 2025

Serving

8
vLLM

KV cache fragmentation capped serving batch sizes, so vLLM's PagedAttention stores the cache in fixed-size blocks like OS pages.

UC Berkeley· 2023
9
Fast Inference from Transformers via Speculative Decoding

Each generated token needs a full pass of the large model, so a small model drafts tokens and the large model verifies them together, with unchanged output.

Google· 2022
10
GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers

Large models are too big to serve cheaply, so GPTQ quantizes their weights to a few bits after training using second-order error correction.

IST Austria· 2022
11
DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving

Prefill and decoding interfere when batched together, so DistServe runs them on separate GPUs, each with its own parallelism.

Peking University· 2024

Case study: recommendation

12
YouTube Recommendations

Scoring every video per request is impossible, so YouTube splits recommendation into a candidate generation network and a ranking network.

Google· 2016
13
DLRM

Recommendation models are dominated by huge embedding tables, so DLRM shards them with model parallelism and replicates the MLPs with data parallelism.

Meta· 2019
14
Sequence learning: A paradigm shift for personalized ads recommendations

Aggregated features lose the order and detail of user events, so Meta's ads models embed each event and pool the sequence with attention.

Meta· 2024
15
Actions Speak Louder than Words

Feature-heavy recommenders stop improving with more compute, so HSTU recasts recommendation as generative sequence transduction that scales like an LLM.

Meta· 2024
16
GEM Training: How Meta Doubled the Efficiency of Its LLM-Scale Ads Foundation Model

Sequence recommenders at LLM scale waste GPUs on padding and exposed communication, so GEM training uses jagged attention and topology-aware parallelism.

Meta· 2026

Case study: search

17
Embedding-based Retrieval in Facebook Search

Term matching misses semantically related results, so Facebook Search adds embedding retrieval and serves ANN inside its existing inverted index.

Meta· 2020
Further reading
18
The Faiss library

Vector search trades accuracy, speed and memory, and the Faiss paper maps that space through compression codecs, inverted-file indexes and graph indexes.

Meta· 2024