IN THIS BREAKDOWN · 10 SECTIONS
You can read 17% of this breakdown.
The paper in one minute
The Llama 3 report covers a family of dense Transformers at 8B, 70B and 405B parameters (the results are for the Llama 3.1 release). Meta names three levers: data, scale and managing complexity. The architecture barely changes from Llama 2. The data and the scale change a great deal.
On data, Meta pretrained on about 15 trillion multilingual tokens after heavier deduplication, heuristic and model-based quality filtering, and a data mix chosen with small-scale scaling experiments: roughly half general knowledge, a quarter math and reasoning, 17% code and 8% multilingual text. A new 128K-token vocabulary packs 3.94 characters per token of English instead of 3.17. On scale, the 405B model used 3.8 × 10^25 FLOPs, almost 50 times Llama 2's largest model, and its size came from a scaling law built to predict benchmark accuracy rather than only loss. On complexity, Meta deliberately chose a dense model over mixture-of-experts, and DPO over PPO, to keep training stable.
Context grows to 128K tokens in six stages near the end of pretraining. Post-training repeats a round of reward modeling, rejection sampling, supervised fine-tuning and DPO several times. The 405B model lands close to GPT-4-class closed models on knowledge, code and math benchmarks, and Meta released its weights along with Llama Guard 3, a safety classifier. The infrastructure section is the most candid public account of what training at this scale involves: 466 job interruptions in a 54-day window, most of them hardware.
Research notes: the problem, approach and results
pretraining FLOPs for the 405B model on 15.6T tokens, almost 50x Llama 2's largest (Section 1)
unexpected job interruptions during a 54-day snapshot, about 78% hardware-related (Section 3.3.4)
Llama 3 405B on MMLU 5-shot, against 85.1 for GPT-4 (0125) and 89.1 for GPT-4o (Table 2)
Open models trailed GPT-4-class systems by a wide margin in 2024, and the hard parts of closing the gap (data at the 15-trillion-token scale, a compute budget in the 10^25 FLOPs range, and keeping a 16,000-GPU job running) were rarely documented.
Keep the dense Llama architecture, adding a 128K-token vocabulary, grouped-query attention in every size, a larger RoPE base and document-boundary attention masks. Pick the 405B size with a scaling law that predicts benchmark accuracy, train on 15.6T tokens, extend context to 128K in six stages, and post-train with several rounds of SFT, rejection sampling and DPO.
Llama 3 405B scored 87.3 on MMLU (GPT-4 0125: 85.1; GPT-4o: 89.1), 89.0 on HumanEval and 96.8 on GSM8K, and was released with open weights alongside 8B and 70B models and Llama Guard 3. Training ran at 38-43% MFU with over 90% effective training time despite 419 unexpected interruptions in 54 days.
Why it matters to an FDE
Llama 3 405B was the first open-weight model to sit near GPT-4 on most standard benchmarks, which changed what "keep it on our own infrastructure" could mean for a customer.
Serving 405B is a real commitment. At 16-bit precision the weights alone are about 754 GiB, more than an 8 × 80 GB node holds. Meta's answer is FP8 inference, which halves that. Long context adds more: a single 128K-token conversation needs about 63 GiB of KV cache even with grouped-query attention. The 70B or 8B model is usually the practical choice; the 405B is often best used to generate training data or to judge outputs.
The scaling-law method is reusable. Meta forecast benchmark accuracy before training by chaining two fits: compute to task loss, then task loss to accuracy. The same two-step idea works for deciding whether a bigger fine-tuning run will clear a customer's accuracy bar.
Reliability numbers set expectations. One unexpected interruption every 3.1 hours on 16,384 GPUs, more than half of them GPU faults. If a customer plans its own large training run, checkpointing, automated restart and failure diagnosis are not optional, and this paper gives the numbers to plan around.
Understand the mechanism. Try it on a real problem.
Unlock this breakdown and 290 more papers.
Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.
6 months · One payment · No auto-renewal
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
Data over architecture, the scaling-law method, the infrastructure lessons and two misreadings
Free account - 04How it works
Data curation, architecture deltas, sizing by scaling law, parallelism, long context, post-training
Premium - 05The numbers that matter
Benchmarks against GPT-4-class models, training scale, utilization and the failure breakdown
Premium - 06Try it yourself
Recheck the compute and scaling-law numbers, audit the failure table, and size 405B for serving
Premium - 07Where it breaks
Benchmark comparisons, multimodal results that were not released, cost to serve, and slips
Premium - 08Using it on a deployment
Picking among 8B, 70B and 405B, memory planning with FP8, and using 405B as a teacher
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
