~/talk

Distributed Training in PyTorch: Zero to Hero

links:none on file
slides:none on file

A step-by-step GitHub guide shows how to scale a single-GPU script to multi-node production, with runnable examples and diagnostic tips. Practical claims: train a 405B-sized model with pure PyTorch, add ZeRO as a two-line change to cut optimizer memory (example: Llama 8B moves from OOM to ~60 GB with ZeRO), and then use PyTorch FSDP to shard weights down to ~40 GB. Notes: a 45B run used 64 H100s at ~30s/iter and Llama 4f required ~16,000 GPUs; pipeline/tensor/context parallelism reduce costly all-gather overhead.

AI-written summary · about

  1. 0:00Distributed training intro
  2. 1:04Why use distributed training
  3. 2:27Data parallelism basics DDP
  4. 3:50PyTorch DDP under the hood
  5. 4:33Live demo single GPU
  6. 5:38Live demo distributed data parallel
  7. 6:45DDP optimizer memory issues
  8. 7:08Zero memory optimization DDP
  9. 8:12Fully sharded data parallel
  10. 10:18FSDP2 simplified API
  11. 11:22Live demo Zero vs FSDP memory
  12. 12:25Multi-node training FSDP
  13. 13:48Live demo multi-node FSDP
  14. 14:29Challenges 4B+ models
  15. 15:14Introducing 4D parallelism
  16. 16:18Other parallelism techniques
  17. 17:10Q&A FSDP parallelism
  18. 20:03Q&A FSDP overhead
  19. 22:32Q&A multi-node IP config
  20. 23:35Q&A tensor parallel
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.