Scaling Production-Grade LLMs: Diagnosing Hidden Bottlenecks in Training and Inference Systems
summary
Enterprise deployment at Vanguard-scale exposes concrete failures: GPUs sit idle from a CPU-bound data pipeline, optimizer states (Adam) and activations blow memory despite small weight size, and KV cache growth with concurrency creates a sharp concurrency cliff. Concrete fixes that work: pre-tokenize and parallelize loaders, use activation checkpointing and ZeRO/FSDP to shard optimizer/activations, apply KV quantization and chunked prefill with L1/L2 KV tiers for long context. Examples: 20,000 employees, 50M investors, 100,000 calls/day drive the need for these mitigations.
AI-written summary · about
chapters (10)
- 0:00Introduction to scaling LLMs
- 2:22Debugging journey overview
- 3:45Hardware underutilization in scaling
- 7:13Data pipeline bottlenecks
- 9:20Memory bottlenecks in training
- 11:51Optimization regressions in scaling
- 13:56Inference bottlenecks and long context
- 16:46Memory management for inference
- 18:53Scheduling bottlenecks in serving
- 21:20Key takeaways and conclusion
