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.
11 write-ups
| Title | Difficulty |
|---|---|
| Agent Design Patterns The building blocks of LLM agents. Workflows vs agents, the tool loop, planning, multi-agent patterns, context management, guardrails, and when LangGraph, CrewAI or a plain loop fits. | |
| 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. | |
| How to Approach ML System Design Interviews A step-by-step framework for ML system design rounds, with time budgets for applied ML and ML infra interviews and the calculations to have ready, from QPS and KV cache to A/B sample sizes. | |
| 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. | |
| MLOps and LLMOps How models get from a notebook to production and stay healthy there. Features, training pipelines, deployment, real-time prediction at scale, monitoring, LLMOps, and when to train vs call an LLM. | |
| 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. | |
| RAG Fundamentals The building blocks of retrieval-augmented generation. Chunking, embeddings, hybrid lexical and vector search, reranking, prompting with citations, and how to evaluate retrieval and answers. | |
| 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. | |
| Embeddings from Training to Serving How production embeddings are built and run: contrastive training, hard negatives, evaluation, encoding at scale, versioning, backfills and re-indexing, and detecting drift. | |
| 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. | |
| Privacy in ML Systems How ML systems handle personal data: PII detection and minimization, consent and purpose, deletion requests that reach models, differential privacy, federated learning and on-device models. |