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.
58 write-ups
| Title | Difficulty |
|---|---|
| Design Glean Search and answer questions across a company's Slack, Drive, Jira, Confluence and email, showing each person only what they can open in the source app, and staying in sync with all of it. | Hard |
| Design Object Detection for Autonomous Vehicles 3D object detection for a self-driving car: camera and LiDAR fusion in bird's-eye view, a 50 ms on-vehicle budget, a data engine with auto-labelling, the long tail, and safety evaluation. | Hard |
| Design Real-Time Video Understanding Models that watch live video as it happens: on-device detection and tracking for 30 fps effects, and cloud stream understanding that drives auto comments, captions and highlights. | Hard |
| Design Visual Search Search with a photo, like Pinterest Lens or Google Lens: object detection and crops, image embeddings trained with contrastive learning, ANN retrieval over billions of images, re-ranking and exact product matching. | Medium |
| 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. | |
| Model Context Protocol (MCP) How MCP connects AI apps to tools and data. Hosts, clients and servers, tools, resources and prompts, JSON-RPC and transports, OAuth, and how to wire MCP servers into a production agent safely. | |
| 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. | |
| 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. |