ML system design
ML and AI system design for interviews: recommendation and ranking, LLM serving, RAG and agents. Free to read.
ML and AI system design for interviews: recommendation and ranking, LLM serving, RAG and agents. Free to read.
27 write-ups
| Title | Difficulty |
|---|---|
| LLM Serving Engines What vLLM, SGLang, TGI, TensorRT-LLM and llama.cpp actually do inside, the techniques they share, how they differ, and how to pick and run one in a design. | |
| Vector Databases How vector databases find nearest neighbors fast. HNSW, IVF and product quantization, the recall-latency trade-off, filtering, schema design, and when to pick Pinecone, Milvus or pgvector. | |
| Common ML Models for System Design The model families that come up in ML design rounds, from logistic regression and GBDTs to embeddings, two-tower, DLRM, sequence models and transformers, and how to pick one. | |
| Inference Optimization and Distributed Training How to make large models faster and cheaper to serve and possible to train. Quantization, batching, speculative decoding, and data, tensor and pipeline parallelism, with the arithmetic. | |
| Numbers to Know for ML Systems The arithmetic behind ML infra answers. GPU specs, memory for weights, KV cache and training, FLOPs per token, why decode is bandwidth-bound, fleet sizing, multi-GPU layouts and self-hosting cost. | |
| Recommendation System Fundamentals How recommenders work end to end. The retrieval-ranking funnel, collaborative filtering and two-tower retrieval, ranking models and losses, re-ranking, cold start, bias and evaluation. | |
| Generative Model Fundamentals How generative models work and how to measure them: autoregressive vs diffusion, latent diffusion, classifier-free guidance, sampling, CLIP-style contrastive encoders, and FID, CLIP score, MOS and WER. |