Scaling Large Language Models: Getting Started with Large-Scale Parallel Training of LLMs
summary
Hands-on recipe for scaling LLMs using JAX on v2-8 TPUs (eight 8GB cores = 64GB total) with Colab notebooks at mintext.thedocs.io, showing block-matrix sharding on 8192×8192 tensors, the collectives used (all-gather / all-reduce / reduce-scatter) and a 2×4 device mesh example for tensor parallel 2x4 mesh. Demonstrates data-parallel, FSDP (Zero-3) memory savings by sharding params/grad/optim, cites 181 as a per-device batch threshold, notes LLaMA’s 48 A100s and “166 years” estimate on one A100, and a mini-GPT trained on TinyStories reaching coherent output after ~8,000 steps.
AI-written summary · about
chapters (10)
- 0:00Introduction to scaling LLMs
- 1:06Setting up the tutorial
- 3:00Basics of parallelization
- 16:51Matrix multiplication on sharded data
- 29:59All gather and all reduce collectives
- 44:08Data parallelism explained
- 58:04Fully sharded data parallelism
- 1:07:05Tensor parallelism overview
- 1:16:30Other parallelism types summary
- 1:19:00Q&A and closing
