ezyang's DeepSeek-V3 series part 3: roofline analysis for training DSv3 on Hopper
ezyang · x · 2026-10-03
PyTorch core developer Edward Z. Yang published part 3 of his DeepSeek-V3 training series, applying roofline analysis to reproduce DSv3's configuration on a H800 cluster.
Key points:
- Earlier parts found a parallelism/activation-checkpointing/low-precision setup that fits DSv3 on 2048 H800 GPUs, closely matching DeepSeek's own choices — expected, since optimizing a fixed architecture on the hardware it was designed for converges to the same config
- Roofline analysis: with FLOPs fixed, system performance hinges on distributed communication, analogous to kernel compute/bandwidth boundness
- Key conclusion: FSDP (ZeRO-3) is a bad fit for DSv3 — it saturates InfiniBand bandwidth — so you can rule it out analytically without building both systems and benchmarking at full cluster scale
- Also covers speed-of-light bound estimation and previews infra/architecture codesign topics like expert sparsity
Related event: PyTorch Core Dev Uses Roofline Model to Break Down DeepSeek-V3 Training(2 posts)→
More from Infra
- Baseten's 'Inference Engineering' book back in print, free copies at re:Invent — philipkiely · 2026-11-29
- Debate: inference demand makes H100s more valuable while NVDA stock heads south — teortaxesTex · 2026-11-29
- Prefetching MoE experts 2 layers ahead boosts V100 decode speed 29.9% — WaroftanksPro · 2026-11-29
- Leopold's $880K-per-H100 revenue claim vs "Nvidia has zero moat" draws flak — teortaxesTex · 2026-11-29
- JITEngine from Berkeley ecosystem synthesizes custom Mac LLM inference engines, up to 2.7x faster — CShorten30 · 2026-11-29
- Dev Uses Neon to Build 'ultra' CLI That Wraps Google Colab GPUs — andrew_n_carr · 2026-11-29