How Llama 3.1 405B was made, stage by stage: pre-training, long context, annealing and six rounds of post-training.
Training
Pinned sources The Llama 3 Herd of Models (arXiv 2407.21783v3), whose results are all for Llama 3.1 · for Llama 3, its model card (meta‑llama/llama3 @ a0940f9) and Meta’s post of April 2024 · no training code is published
- Start of training
- Llama 3, April 2024, predecessor 2 stages
- Whether Llama 3.1 continues these checkpoints: not stated
- Llama 3 pre‑training15T+ tokens at 8K15T8KNTPWhat trains: all
- Llama 3 post‑trainingSFT, RS, PPO, DPOnot statednot statedSFTPPODPOnot statednot stated: tokens, context, what trains
- Llama 3 (April 2024)
- Initial pre‑trainingat 4K, then 8K15.6T8KNTPWhat trains: all
- Off this path: domain experts (code, multilingual) 2 stages
- Branched from the pre-training run; the point is not named
- Code expert1T tokens, mostly code1T16KNTPnot statednot stated: what trains
- Multilingual expert90% multilingual tokensnot statednot statedNTPnot statednot stated: tokens, context, what trains
- Long‑context pre‑trainingsix stages, 8K to 128K800B128KNTPWhat trains: allcontext to 128K
- Annealinglearning rate to 040M128KNTPWhat trains: all
- Pre-trained model
- Off this path: Reward model 1 stage
- Reward modelin each roundnot statednot statedRMLlama 2’s, no marginnot statednot stated: tokens, context, what trains
- Reward model
- × 6 roundsRejection sampling and SFTthen DPO, each roundnot stated128KSFTRS and synthetic datanot statednot stated: tokens, what trains
- DPOafter SFT, each roundnot statedshort contextDPO+ NLL 0.2not statednot stated: tokens, what trains
- Llama 3.1 405B Instruct
- tokens, log scale
- NTPdashed: concluded, no source names it
- not stated by the sources
- the architecture changes
- checkpoint
- checkpoint, weights published
- a join the sources leave unexplained
- data from a branch into a stage
- stages repeated together