Jul 23, 2024 · 1h 4m · latent-space
Training Llama 2, 3 & 4: The Path to Open Source AGI — with Thomas Scialom of Meta AI
gold bands on the timeline = statements, start to end. Hover to read, click to jump. CC turns on captions
In this episode of the Latent Space podcast, Meta AI technical lead Thomas Scialom discusses the engineering breakthroughs, scaling principles, and post-training innovations behind the Llama 2 and Llama 3 model families. He provides deep technical insights into synthetic data generation, RLHF mechanics, architectural trade-offs, and Meta's future roadmap toward autonomous agentic intelligence.
How this conversation actually went
Every chapter scored 0–10 on four independent dynamics. Hover any point for the reasoning behind the score. The hosts hold 13% of the talking time here. How this is scored →
speaking balance: gold is the hosts, purple is the guest (3 minute bins)
Thomas forcefully rejects the idea that raw web scraping is sufficient, stating bluntly that the web is full of poor-quality text that wastes compute without strong filtering.
Hardest push from the hosts ▶ 12:20 Alessio challenges the practicality of a 405B modelAlessio directly pushes back against the massive 405B parameter size, pointing out that regular developers and community members cannot run it on local hardware or easily find cloud resources.
Biggest teaching moment ▶ 30:45 Explaining why RLHF achieves superhuman performanceThomas thoroughly educates the hosts on the core mathematical and behavioral intuitions behind RLHF, illustrating why human discrimination produces better targets than human SFT generation.
The host holds their own ▶ 50:30 Swyx dissects stopgap reasoning tokens and Anthropic system promptsShawn showcases deep architectural understanding by analyzing pause tokens, Anthropic's hidden reasoning tokens, and the fundamental requirement for variable inference compute in latent space.
the scores for every segment, with the reasoning behind each
| Chapter | Topic | The hosts as informed peer | Guest teaching | Guest disagreement | The hosts pushing back | Why |
|---|---|---|---|---|---|---|
| Career Path: From Quant Trading to NLP and Meta | 6 | 3 | 1 | 1 | Shawn demonstrates strong background knowledge of Thomas's publishing history, recalling specific papers on summarization, factual consistency, and language GANs. Thomas explains his transition from quant trading to NLP right before BERT, with both sides sharing a collegial peer dynamic. | |
| The Origins of Llama 2: From Galactica to Scale | 5 | 6 | 2 | 2 | Thomas schools the hosts on the internal history of Galactica, the unexpected public backlash, and how Galactica Instruct pioneered RLHF annotation at Meta before Llama 2. Shawn and Alessio ask probing questions regarding annotation scale and open research questions. | |
| LLM Scaling Laws and Escaping the Chinchilla Trap | 7 | 7 | 2 | 3 | Alessio presses Thomas on parameter scaling laws and his tweet warning researchers not to fall into the Chinchilla trap. Thomas provides an in-depth breakdown of inference-optimal training versus compute-optimal training for published benchmarks. | |
| Strategic Vision for Llama 3 405B and Quantization | 6 | 5 | 2 | 3 | Alessio challenges the accessibility of training a massive 405B dense model for community inference. Thomas justifies the decision by explaining how FP8 quantization enables single-node execution and how 405B acts as a teacher for smaller models. | |
| Pre-Training Data Quality and Synthetic Filtering in Llama 3 | 7 | 6 | 2 | 2 | Shawn and Alessio raise technical points about synthetic data filtering and compare pre-training synthetic data to computer vision augmentation. Thomas enthusiastically agrees while drawing a clear line between pre-training curation and post-training augmentation. | |
| Post-Training Strategy, Expert Domains, and MoE Considerations | 5 | 7 | 3 | 2 | Thomas explains Meta's continuous pre-training strategy across expert domains and clarifies why dense models were chosen over MoE for this generation. Alessio and Shawn ask targeted follow-ups about curriculum learning and synthetic models. | |
| Demystifying RLHF: Human Discrimination vs Generation | 7 | 8 | 2 | 2 | Alessio references Nathan Lambert's work and asks detailed questions about RLHF versus SFT impact. Thomas delivers a masterclass on human discrimination versus generation abilities, explaining how RLHF allows models to surpass human performance without human-written SFT data. | |
| Evaluating Llama 3: Benchmarks, Calibration, and Tool Calling | 7 | 6 | 2 | 2 | Alessio and Shawn cite specific evaluation numbers and discuss calibration, uncertainty estimation, and tool use. Thomas agrees on calibration deficiencies in post-trained models and proposes calibration-specific prompts. | |
| Paving the Way for Llama 4: Agents and Latent Reasoning | 7 | 7 | 2 | 2 | Shawn brings up Yann LeCun's JEPA architecture and Anthropic's hidden thinking prompt techniques. Thomas outlines the path toward Llama 4 and autonomous agents, discussing latent space reasoning and variable compute per token. | |
| Tokenizer Architecture and Multilingual Vocabulary Scaling | 6 | 7 | 2 | 2 | Alessio queries the mechanical impact of scaling vocabulary size to 128K, prompting Thomas to explain token compression, compute trade-offs for small versus large models, and potential pixel-level or character-level tokenizers. |