How to Read: The Llama 3 Herd of Models [Reading Guide]

Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, Anirudh Goyal, Anthony S. Hartshorn, Aobo Yang, Archi Mitra, A. Sravankumar, A. Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aur'elien Rodriguez, Austen Gregerson, Ava Spataru, Baptiste Rozière, Bethany Biron, Binh Tang, Bobbie Chern, C. Caucheteux, Chaya Nayak, Chloe Bi, Chris Marra, Chris McConnell, Christian Keller, C. Touret, Chunyang Wu, Corinne Wong, Cris-tian Cantón Ferrer, Cyrus Nikolaidis, Damien Allonsius, Daniel Song, Danielle Pintz, Danny Livshits, David Esiobu, Dhruv Choudhary, Dhruv Mahajan, Diego Garcia-Olano, Diego Perino, Dieuwke Hupkes, Egor Lakomkin, Ehab A. AlBadawy, Elina Lobanova, Emily Dinan, Eric Michael Smith, Filip Radenovic, Frank Zhang, Gabriele Synnaeve, Gabrielle Lee, Georgia Lewis Anderson, Graeme Nail, G. Mialon, Guanglong Pang, Guillem Cucurell, Hailey Nguyen, Hannah Korevaar, Hu Xu, Hugo Touvron, Iliyan Zarov, Imanol Arrieta Ibarra, Isabel M. Kloumann, Ishan Misra, Ivan Evtimov, Jade Copet, Jaewon Lee, Jan Geffert, Jana Vranes, Jason Park, Jay Mahadeokar, Jeet Shah, J. V. D. Linde, Jennifer Billock, Jenny Hong, Jenya Lee, J. Fu, Jianfeng Chi, Jianyu Huang, Jiawen Liu, Jie Wang, Jiecao Yu, Joanna Bitton, Joe Spisak, Jongsoo Park, Joseph Rocca, J. Johnstun, Joshua Saxe, Ju-Qing Jia, Kalyan Vasuden Alwala, K. Upasani, Kate Plawiak, Keqian Li, Kenneth Heafield, Kevin R. Stone, Khalid El-Arini, Krithika Iyer, Kshitiz Malik, Kuen-ley Chiu, Kunal Bhalla, Lauren Rantala-Yeary, L. Maaten, Lawrence Chen, Liang Tan, Liz Jenkins, Louis Martin, Lovish Madaan, Lubo Malo, Lukas Blecher, Lukas Landzaat, Luke de Oliveira, Madeline Muzzi, Ma-hesh Pasupuleti, Mannat Singh, Manohar Paluri, Marcin Kardas, Mathew Oldham, Mathieu Rita, Maya Pavlova, M. Kambadur, Mike Lewis, Min Si, Mitesh Kumar Singh, Mona Hassan, Naman Goyal, Narjes Torabi, Niko-lay Bashlykov, Nikolay Bogoychev, Niladri S. Chatterji, Olivier Duchenne, Onur cCelebi, Patrick Alrassy, Pengchuan Zhang, Pengwei Li, Petar Vasić, Peter Weng, Prajjwal Bhargava, P. Dubal, Praveen Krishnan, Punit Singh Koura, Puxin Xu, Qing He, Qingxiao Dong, Ragavan Srinivasan, Raj Ganapathy, Ramon Calderer, Ricardo Silveira Cabral, Robert Stojnic, R. Raileanu, Rohit Girdhar, Rohit Patel, Romain Sauvestre, Ron-nie Polidoro, Roshan Sumbaly, Ross Taylor, Ruan Silva, Rui Hou, Rui Wang, S. Hosseini, Sa-hana Chennabasappa, Sanjay Singh, Sean Bell, Seohyun Sonia Kim, Sergey Edunov, Shaoliang Nie, Sharan Narang, S. Raparthy, Sheng Shen, Shengye Wan, Shruti Bhosale, Shun Zhang, Simon Vandenhende, Soumya Batra, Spencer Whitman, Sten Sootla, S. Collot, Suchin Gururangan, S. Borodinsky, Tamar Herman, Tara Fowler, Tarek Sheasha, Thomas Georgiou, Thomas Scialom, Tobias Speckbacher, Todor Mihaylov, Tong Xiao, Ujjwal Karn, Vedanuj Goswami, Vibhor Gupta, Vignesh Ramanathan, Viktor Kerkez, Vincent Gonguet, Vir-ginie Do, Vish Vogeti, Vladan Petrovic, Weiwei Chu, Wenhan Xiong, Wenyin Fu, Whit-ney Meers, Xavier Martinet, Xiaodong Wang, Xiaoqing Ellen Tan, Xinfeng Xie, Xuchao Jia, Xuewei Wang, Yaelle Goldschlag, Yashesh Gaur, Yasmine Babaei, Yiqian Wen, Yiwen Song, Yuchen Zhang, Yue Li, Yuning Mao, Zacharie Delpierre Coudert, Zhengxu Yan, Zhengxing Chen, Zoe Papakipos, Aaditya K. Singh, Aaron Grattafiori, Abha Jain, Adam Kelsey, Adam Shajnfeld, Adi Gangidi, Adolfo Victoria, Ahuva Goldstand, A. Menon, Ajay Sharma, Alex Boesenberg, Alex Vaughan, Alexei Baevski, Allie Feinstein, Amanda Kallet, Amit Sangani, Anam Yunus, Andrei Lupu, Andres Alvarado, Andrew Caples, Andrew Gu, Andrew Ho, Andrew Poulton, Andrew Ryan, Ankit Ramchandani, Annie Franco, Aparajita Saraf, Arkabandhu Chowdhury, Ashley Gabriel, Ashwin Bharambe, Assaf Eisenman, Azadeh Yazdan, Beau James, Ben Maurer, B. Leonhardi, Po-Yao (Bernie) Huang, Beth Loyd, Beto de Paola, Bhargavi Paranjape, Bing Liu, Bo Wu, B. Ni, Braden Hancock, Bram Wasti, Brandon Spence, Brani Stojkovic, Brian Gamido, Britt Montalvo, Carl Parker, Carly Burton, Catalina Mejia, Changhan Wang, Changkyu Kim, Chao Zhou, Chester Hu, Ching-Hsiang Chu, Chris Cai, Chris Tindal, Christoph Feichtenhofer, Damon Civin, Dana Beaty, Daniel Kreymer, Shang-Wen Li, Danny Wyatt, David Adkins, David Xu, Davide Testuggine, Delia David, Devi Parikh, Diana Liskovich, Didem Foss, Dingkang Wang, Duc Le, Dustin Holland, Edward Dowling, Eissa Jamil, Elaine Montgomery, Eleonora Presani, Emily Hahn, Emily Wood, Erik Brinkman, Esteban Arcaute, Evan Dunbar, Evan Smothers, Fei Sun, Felix Kreuk, Feng Tian, Firat Ozgenel, Francesco Caggioni, F. Guzm’an, Frank J. Kanayet, Frank Seide, Gabriela Medina Florez, Gabriella Schwarz, Gada Badeer, Georgia Swee, Gil Halpern, Govind Thattai, Grant Herman, G. Sizov, Guangyi Zhang, Guna Lakshminarayanan, Hamid Shojanazeri, Han Zou, Hannah Wang, Han Zha, Haroun Habeeb, Harrison Rudolph, Helen Suk, Henry Aspegren, Hunter Goldman, Igor Molybog, Igor Tufanov, Irina-Elena Veliche, Itai Gat, Jake Weissman, James Geboski, James Kohli, Japhet Asher, Jean-Baptiste Gaya, Jeff Marcus, Jeff Tang, Jennifer Chan, Jenny Zhen, J. Reizenstein, J. Teboul, Jessica Zhong, Jian Jin, Jingyi Yang, Joe Cummings, Jon Carvill, Jon Shepard, J. McPhie, Jonathan Torres, Josh Ginsburg, Junjie Wang, Kaixing(Kai) Wu, U. KamHou, Karan Saxena, Karthik Prasad, Kartikay Khandelwal, Katayoun Zand, Kathy Matosich, K. Veeraraghavan, Kelly Michelena, Keqian Li, Kun Huang, Kunal Chawla, Kushal Lakhotia, Kyle Huang, Lailin Chen, Lakshya Garg, A. Lavender, Leandro Silva, Lee Bell, Lei Zhang, Liangpeng Guo, Licheng Yu, Liron Moshkovich, Luca Wehrstedt, Madian Khabsa, Manav Avalani, Manish Bhatt, M. Tsimpoukelli, Martynas Mankus, Matan Hasson, Matthias Lennie, Matthias Reso, Maxim Groshev, Maxim Naumov, Maya Lathi, Meghan Keneally, M. Seltzer, Michal Valko, Michelle Restrepo, Mihir Patel, Mik Vyatskov, Mikayel Samvelyan, Mike Clark, Mike Macey, Mike Wang, Miquel Jubert Hermoso, Mo Metanat, Mohammad Rastegari, Mun-ish Bansal, Nandhini Santhanam, Natascha Parks, Natasha White, Navy-ata Bawa, Nayan Singhal, Nick Egebo, Nicolas Usunier, Nikolay Pavlovich Laptev, Ning Dong, Ning Zhang, Norman Cheng, Oleg Chernoguz, Olivia Hart, Omkar Salpekar, Ozlem Kalinli, Parkin Kent, Parth Parekh, Paul Saab, Pavan Balaji, Pe-dro Rittner, Philip Bontrager, Pierre Roux, Piotr Dollár, Polina Zvyagina, Prashant Ratanchandani, Pritish Yuvraj, Qian Liang, Rachad Alao, Rachel Rodriguez, Rafi Ayub, Raghotham Murthy, Raghu Nayani, Rahul Mitra, Raymond Li, Rebekkah Hogan, Robin Battey, Rocky Wang, R. Maheswari, Russ Howes, Ruty Rinott, Sai Jayesh Bondu, Samyak Datta, Sara Chugh, Sara Hunt, Sargun Dhillon, Sasha Sidorov, Satadru Pan, Saurabh Verma, Seiji Yamamoto, Sharadh Ramaswamy, Shaun Lindsay, Sheng Feng, Shenghao Lin, S. Zha, Shiva Shankar, Shuqiang Zhang, Sinong Wang, Sneha Agarwal, S. Sajuyigbe, Soumith Chintala, Stephanie Max, Stephen Chen, Steve Kehoe, Steve Satterfield, Sudarshan Govindaprasad, S. Gupta, Sung-Bae Cho, Sunny Virk, Suraj Subramanian, Sy Choudhury, Sydney Goldman, Tal Remez, Tamar Glaser, Tamara Best, Thilo Kohler, Thomas Robinson, Tianhe Li, Tianjun Zhang, Tim Matthews, Timothy Chou, Tzook Shaked, Varun Vontimitta, Victoria Ajayi, Victoria Montanez, Vijai Mohan, Vinay Satish Kumar, Vishal Mangla, Vlad Ionescu, V. Poenaru, Vlad T. Mihailescu, Vladimir Ivanov, Wei Li, Wenchen Wang · 2024 · arXiv.org

Three-Pass Reading Method

The three-pass reading method is a systematic approach designed to efficiently extract maximum understanding from research papers. The first pass (5-10 minutes) gives you a high-level overview by skimming the title, abstract, introduction, and conclusion. The second pass (up to 1 hour) involves careful reading of the paper with emphasis on methodology and key technical details. The third pass (1-5 hours) focuses on deep understanding, critical analysis, and connecting ideas to related work.

This structured approach helps you determine a paper's relevance quickly, then dive deeper only when needed, making your research workflow more efficient and effective.

This guide will help you navigate "The Llama 3 Herd of Models" paper using the three-pass approach, focusing on actionable steps and key insights.

First pass (5–10 min)

What to skim: Start by quickly reading the Title, Authors (Llama Team, AI@Meta), Date (July 23, 2024), and the provided Website (https://llama.meta.com/). Then, read the Abstract and the Introduction (Section 1). Finally, skim the Conclusion (Section 10).

What to notice:

  • Contributions: The paper introduces Llama 3, a new set of foundation models supporting multilinguality, coding, reasoning, and tool usage. The largest model has 405B parameters and a 128K token context window. It claims comparable quality to leading models like GPT-4. Notably, Llama 3, including pre-trained and post-trained 405B versions and Llama Guard 3, is publicly released. Multimodal capabilities (image, video, speech) are also explored but are still under development and not yet released.
  • Problem: The core problem addressed is the development of high-quality, capable, and safe foundation models for modern AI systems.
  • Setting: Meta's approach to developing these models is grounded in optimizing three key levers: data, scale, and managing complexity. The development involves two main stages: pre-training and post-training.

Second pass (up to 1 hour)

Using SpatialRead in the Second Pass

  • Use the Screenshot tool to capture figures, tables, diagrams, and formulae from the PDF and use AI for simple explanations.
  • Ask: "Explain Figure X at a high level", "Compare Table 2 vs 3", or "What does the y-axis represent here?"
  • Download SpatialRead →

What sections/figures to focus on:

  • Introduction (Section 1): Re-read the "three key levers" (Data, Scale, Managing complexity) and the two main development stages (pre-training, post-training) for a clearer understanding.
  • Table 1 (Overview of the Llama 3 Herd of models, page 2): Examine the different model sizes (8B, 70B, 405B), their capabilities (Finetuned, Multilingual, Long context, Tool use), and release dates. This table provides a quick overview of the entire model family.
  • Table 2 (Performance of finetuned Llama 3 models on key benchmark evaluations, page 3): Focus on the benchmark categories (General, Code, Math, Reasoning, Tool use, Long context, Multilingual) and how Llama 3 models (8B, 70B, 405B) compare to competitors like GPT-4. Pay attention to the bolded best-performing models.
  • Figure 1 (Illustration of the overall architecture and training of Llama 3, page 4): Understand the basic Transformer architecture and the autoregressive decoding process.
  • Section 2 (General Overview, page 3): Read the detailed descriptions of the "Language model pre-training" and "Language model post-training" stages. Also, note the three additional stages for multimodal integration (Multi-modal encoder pre-training, Vision adapter training, Speech adapter training).
  • Section 5 (Results, page 28): Skim the introductory paragraphs of subsections 5.1 (Pre-trained Language Model) and 5.2 (Post-trained Language Model) to grasp the scope of the empirical evaluations.
  • Section 10 (Conclusion, page 70): Re-read for a consolidated summary of findings and future outlook.

Key terms/questions to note:

  • What specific improvements were made to data quantity (e.g., 15T multilingual tokens for Llama 3 vs. 1.8T for Llama 2) and quality?
  • How does the "scale" of Llama 3 (e.g., 3.8 × 10^25 FLOPs for the flagship model) compare to previous versions?
  • What architectural choices were made to "manage complexity" (e.g., dense Transformer, simple post-training procedure)?
  • What are the core capabilities Llama 3 natively supports (multilinguality, coding, reasoning, tool usage)?
  • How does the flagship Llama 3 model's performance on key benchmarks (Table 2) stack up against leading models like GPT-4?
  • What is the "compositional approach" for integrating image, video, and speech capabilities, and why is it chosen?

Third pass (1–5 hours)

Using SpatialRead in the Third Pass

  • Highlight complex keywords, dense paragraphs, equations, or proofs and ask for a plain-English explanation that preserves notation.
  • Use AI to explain the concepts in a way that is easy to understand.
  • Ask for alternative phrasings or analogies to confirm understanding without changing technical meaning.
  • Connect concepts with each other using AI to build a comprehensive understanding of the paper.
  • Download SpatialRead →

Deep reading guidance:

  • Methods (Sections 3 & 4):
    • Section 3 (Pre-Training): Delve into 3.1 Pre-Training Data to understand the meticulous data curation, de-duplication, and filtering processes. Note the Data mix summary (Section 3.1.2) and Annealing Data (Section 3.1.3). In 3.2 Model Architecture, examine the specific modifications (GQA, attention mask) and refer to Table 3 (Key hyperparameters, page 7) for detailed model configurations. Understand the Scaling Laws (Section 3.2.1), referencing Figure 2 (IsoFLOPs curves, page 8) and Figure 3 (Training tokens vs. compute, page 8) to see how optimal model size and performance were predicted. Explore 3.3 Infrastructure, Scaling, and Efficiency to understand the hardware (GPUs, storage, network) and parallelism strategies (Figure 5: 4D parallelism, page 11 and Table 4: Scaling configurations, page 10), and the operational challenges (Table 5: Root-cause categorization, page 13). Finally, read 3.4 Training Recipe for the three main pre-training stages.
    • Section 4 (Post-Training): Understand the alignment process, starting with 4.1 Modeling (reward model, SFT, DPO) and its illustration in Figure 7 (Overall post-training approach, page 15). Analyze 4.2 Post-training Data for human annotation, synthetic data generation, and quality control, referring to Table 6 (Human preference data statistics, page 17) and Table 7 (SFT data statistics, page 18). Deep dive into 4.3 Capabilities to understand how specific capabilities like Code (Figure 8: Code translation, page 21, Figure 9: System prompts for code quality, page 21), Multilinguality, Math and Reasoning, Long Context, and Tool Use (Figure 10: Multi-step tool usage, page 26, Figure 11: File uploads, page 27) were enhanced.
  • Results (Section 5):
    • 5.1 Pre-trained Language Model: Analyze detailed benchmark results in Tables 9, 10, 11, 12, 13, and 14 (pages 30-31, 34). Examine model robustness to design choices (Figure 13, page 32, Figure 14, page 32) and adversarial benchmarks (Figure 15, page 33). Pay attention to the Contamination Analysis (Table 15, page 34).
    • 5.2 Post-trained Language Model: Review performance on general knowledge, instruction-following, proficiency exams (Table 17, page 36), coding (Tables 18, 19, page 37), multilingual (Table 20, page 38), long context (Table 21, page 39), and tool use (Table 22, page 39).
    • 5.3 Human Evaluations: Understand the methodology and results of human evaluations, especially comparisons with other models (Figure 16, page 40, Figure 17, page 41).
    • 5.4 Safety: Examine the safety pre-training, finetuning, and system-level safety (Llama Guard 3). Analyze violation and false refusal rates (Figures 18, 19, 20, 21, pages 43-45 and Tables 25, 26, 27, pages 50-51). Review cybersecurity and CBRNE safety assessments.
  • Inference (Section 6): Understand pipeline parallelism and FP8 quantization for efficiency. Refer to Figure 24 (Micro-batching effect, page 52), Figure 25 (Quantization illustration, page 53), Figure 26 (Reward score distribution, page 53), and Figure 27 (Throughput-latency trade-off, page 54).
  • Multimodal Experiments (Sections 7 & 8): Understand the compositional approach for integrating vision and speech. Refer to Figure 28 (Multimodal architecture, page 55), Table 29 (Image understanding performance, page 61), Table 30 (Video understanding performance, page 62), Figure 29 (Speech interface architecture, page 63), Table 31 (ASR results, page 67), Table 32 (Speech translation results, page 67), Table 33 (Speech toxicity, page 68), Table 34 (Text normalization accuracy, page 68), Table 35 (Prosody modeling evaluation, page 69). Remember that these models are "still under development and not yet ready for release."

Replication pointers:

  • Public Releases: The paper explicitly states the public release of Llama 3 models and evaluation data. Look for links like https://llama.meta.com and references to Huggingface repositories (e.g., Section 2, Section 5.1, Section 5.2) for access to models and data.
  • Training Details: Detailed descriptions of data curation (Section 3.1), model architecture (Table 3), training recipes (Section 3.4), and post-training data (Section 4.2) provide the foundation for understanding how the models were built.
  • Hyperparameters: Specific hyperparameters (e.g., learning rates, batch sizes, model dimensions) are provided in Table 3 and within the training sections (e.g., 3.4.1, 4.1.3, 4.1.4).
  • Infrastructure: Section 3.3 details the large-scale infrastructure (GPUs, storage, network, parallelism strategies in Table 4 and Figure 5) used for training, which is crucial for replicating such massive models.
  • Safety Benchmarks: The paper mentions releasing data generated as part of evaluations with publicly available benchmarks (Section 5.1, 5.2) and the Llama Guard 3 model (Section 5.4.7), which could be used for safety research.