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.
6 write-ups
| Title | Difficulty |
|---|---|
| Design an LLM Inference System Serve a /v1/chat/completions API on a shared GPU fleet with continuous batching, a paged KV cache, prefill/decode disaggregation, LoRA adapters and cache-aware routing. | Hard |
| 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 Text-to-Image Generation System A Midjourney-style image generator: latent diffusion with classifier-free guidance, prompt rewriting, layered safety filters, GPU queueing by tier, and evaluation with FID, CLIP score and human preference. | Hard |
| Design a Text-to-Video Generation System A Sora-style video generator: spatiotemporal diffusion over a compressed video latent, the arithmetic of cost per second, long-running multi-GPU jobs, temporal consistency, and safety and provenance. | Hard |
| Design an LLM Evaluation and Observability System Trace every LLM call, tool call and agent step, score quality offline and on live traffic with checks, LLM judges and humans, and benchmark multi-agent workflows and coding agents. | 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 |