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.
8 write-ups
| Title | Difficulty |
|---|---|
| Design an LLM Gateway One proxy between a company's apps and every LLM provider, with model routing, response and prompt caching, fallbacks, cost and latency observability, and per-team budgets and token quotas. | Medium |
| Design a Machine Learning Platform An internal platform where hundreds of teams label data, run experiments on shared GPUs, register models and deploy them to production endpoints, with lineage, safe rollouts and monitoring. | Hard |
| Design A/B Testing for LLM Features Send 10% of traffic to a new prompt or model through config, measure five metrics per variant including safety, and roll the change back automatically when safety regresses. | Medium |
| Design an Agent for Incident Root Cause Analysis An agent that investigates alerts across logs, metrics, traces and deploys, ranks root causes with evidence, and proposes fixes that run only behind deterministic controls and human approval. | Hard |
| Design an Agentic System A platform for running production LLM agents: the agent loop, a tool layer with real permissions, durable state and memory, guardrails and PII handling, multi-agent designs, evals and cost. | Hard |
| Design an LLM Fine-Tuning System A platform to fine-tune LLMs with SFT, LoRA and DPO: datasets, GPU jobs, checkpoints, evals and deployment, applied to code completion, domain Q&A and legal contract analysis. | Hard |
| Design an Offline Batch Inference Service Run a model, plus the user's own pre- and post-processing script, over millions of records on shared GPUs, with sharding, fair allocation, progress tracking and retries that resume work. | Medium |
| 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 |