# The Llama 3 Herd of Models

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle and 555 more · arXiv · 2024-7-31

- **Problem** Open foundation models need to match leading models across broad tasks, which depends on data quality, training scale and a post-training recipe that stays stable at that scale.
- **Method** Trains a 405B-parameter dense Transformer on 15.6T tokens, sizes it with two-stage scaling laws, and aligns it through reward modeling, rejection sampling, SFT and DPO.
- **Results** Reached 87.3 on MMLU with 5-shot prompting, above GPT-4 (0125) at 85.1 and below GPT-4o at 89.1.

## What Llama 3 covers

Llama 3 is a family of three multilingual language models at 8B, 70B and 405B parameters, and the 405B model is the flagship. The flagship is a dense Transformer whose context window reaches 128K tokens. The authors organize the work around three levers: data, scale and managing complexity. Figure 1 shows the overall architecture and training flow, from pre-training through post-training.

On the data lever, the pre-training corpus grows to about 15T multilingual tokens, compared with 1.8T for Llama 2. The flagship itself is trained on 15.6T text tokens. Smaller models are trained for much longer than is compute-optimal, so the flagship size and the smaller models follow different budget logic.

For managing complexity, the authors keep a standard dense Transformer instead of a mixture-of-experts design, a choice they tie to training stability. Post-training relies on supervised finetuning, rejection sampling and Direct Preference Optimization rather than more complex reinforcement learning, which the authors judge less stable and harder to scale.

## Architecture changes from Llama 2

The architecture is a standard dense Transformer, and the authors credit the gains mainly to data quality, data diversity and training scale rather than to architecture changes. Grouped query attention with 8 key-value heads speeds up inference and shrinks the key-value cache during decoding. An attention mask blocks self-attention between different documents packed into one sequence; the authors found this matters little in standard pre-training but matters in continued pre-training on very long sequences.

The 128,000-token vocabulary takes 100K tokens from the tiktoken tokenizer and adds 28K tokens for non-English languages. On a sample of English data, compression rises from 3.17 to 3.94 characters per token relative to the Llama 2 tokenizer, so more text fits into the same training compute. The added non-English tokens also improved compression and downstream performance without changing English tokenization.

The RoPE base frequency is raised to 500,000 to support longer contexts, a value the authors take from earlier work showing it effective up to 32,768. Table 3 lists the same settings for the 8B, 70B and 405B models.

## Using scaling laws to size the flagship

Scaling laws usually predict next-token loss rather than benchmark accuracy, and small-budget runs make them noisy, so the authors use a two-stage method. The first stage links the negative log-likelihood of compute-optimal models on downstream tasks to training FLOPs. The second stage links that negative log-likelihood to task accuracy, using scaling-law models together with older Llama 2 models.

For each compute scale, the validation loss is fitted with a second-degree polynomial, and the minimum of the parabola is taken as the compute-optimal model.

Assuming a power law, the optimal number of training tokens follows \\( N^{\\star}(C) = A C^{\\alpha} \\), where C is the compute budget. The fit gives (α, A) = (0.53, 0.29). The IsoFLOPs curves flatten near their minimum as compute grows, so performance is fairly robust to the trade-off between model size and tokens, and the authors trained a 405B-parameter flagship.

A sigmoidal relation then maps log-likelihood to accuracy, fitted on both the scaling-law models and the Llama 2 models. The reported check covers ARC Challenge alone.

## Pre-training stages and data mix

The batch starts at 4M tokens with 4,096-token sequences, and the authors used a lower early batch size to improve stability. The batch grows to 8M sequences of 8,192 tokens after 252M tokens and to 16M after 2.87T tokens. The authors report few loss spikes and no interventions to correct divergence.

The data mix changes during training: non-English text grows, mathematical data is upsampled, and more recent web data is added in later stages. Subsets identified as lower quality are downsampled. Long sequences are left to the end because attention compute grows quadratically with sequence length. The context grows in six stages from the original 8K window to 128K, using about 800B training tokens.

A stage is accepted only when short-context performance has recovered and the model solves needle-in-a-haystack retrieval at that length.

The final 40M tokens anneal the learning rate linearly to zero while holding a 128K context. Model checkpoints from this phase are averaged with Polyak averaging to produce the final pre-trained model.

## Post-training rounds: reward model, SFT and DPO

Each round starts from a reward model trained on the pre-trained checkpoint with human preference data, using the Llama 2 objective without its margin term. Each preference sample carries two or three responses ranked edited over chosen over rejected, and the responses are concatenated into one row with shuffled order. The reward model then performs rejection sampling over human-annotated prompts.

Supervised finetuning minimizes cross-entropy on target tokens, masks the loss on prompt tokens, and mixes rejection-sampled data with other sources, including synthetic data. Many targets are model-generated, which is why the stage is still called supervised finetuning. The dialog format uses a multi-message protocol with header and termination tokens, so one turn can carry messages to roles such as user and ipython.

DPO draws mostly on the latest preference batches, produced by the best models of earlier rounds, so the training data follows the policy being optimized. The authors also tried PPO but found DPO needed less compute at large scale and did better on IFEval. Formatting tokens are masked out of the DPO loss, because the authors hypothesize that their presence in both chosen and rejected responses causes tail repetition and abrupt termination.

A negative log-likelihood term on chosen sequences, scaled by 0.2, keeps the log probability of chosen responses from falling.

Models trained with different data or hyperparameters are averaged at the reward model, SFT and DPO stages. Post-training is repeated over six rounds, and each cycle collects new preference and SFT data sampled from the latest models.

## Post-training data

General English makes up 81.99% of the human preference data, coding 6.93%, multilingual 5.19% and reasoning and tools 5.89%. Each dialog is split at turn level, so every example pairs a prompt, including earlier dialog, with one response. Annotators compare two responses sampled from two different models for each prompt.

The knowledge probe aims to make the model answer only what it knows, rather than adding new knowledge. It extracts a snippet from pre-training data, generates a factual question about it, samples answers, and scores correctness and informativeness with Llama 3 as the judge. Answers that are consistently informative and incorrect across samples receive a generated refusal.

A limited set of labeled factuality data covers sensitive topics where contradictory statements are common.

Steerability data is collected in the general English category, where annotators design system prompts and test whether the models follow them across a conversation. The resulting preference samples are used in reward modeling, rejection sampling, SFT and DPO.

## Benchmark results against competing models

Table 2 compares finetuned 8B, 70B and 405B models with competing models and bolds the best model in each size class. On MMLU with 5-shot prompting, Llama 3 405B scores 87.3, above GPT-4 (0125) at 85.1 and below GPT-4o at 89.1. On GSM8K with 8-shot CoT, the 405B model scores 96.8, against 95.1 for the 70B model.

The authors summarize the flagship as on par with leading models such as GPT-4 and close to the state of the art, and the smaller models as best-in-class against similar-sized alternatives.

The pre-trained evaluation covers commonsense, knowledge, reading comprehension, math and reasoning, long context, code, adversarial and aggregate benchmarks. Category averages are not reported for the 405B model, because competing models lack numbers on every benchmark. Confidence intervals use the form \\( CI(S) = 1.96\\sqrt{S(1-S)/N} \\), where S is the observed score and N the sample size, assuming Gaussian scores.

## Verbatim memorization

Verbatim memorization is the proportion of model generations that contain the ground-truth continuation exactly, averaged with weights by how common each characteristic is in the data. For the 405B model, verbatim memorization averages 1.13% at n = 50 and 3.91% at n = 1000. They also note that exact match has limits, and that other metrics and prompt search strategies have been proposed in recent work.

## Safety finetuning and its trade-off

Two primary metrics are used: Violation Rate counts responses that violate a safety policy, and False Refusal Rate counts harmless prompts the model wrongly refuses. Helpfulness benchmarks are evaluated in parallel so that safety gains do not reduce overall helpfulness. The authors find that smaller models need a larger share of safety data in the mix to match the safety of 70B models.

The authors report that the quality of safety data matters more than its quantity, and they combine human-written data with AI-assisted annotation tools. Borderline prompts, which sit close to adversarial prompts, teach helpful answers and reduce the false refusal rate. Synthetic adversarial prompts come from in-context learning, guided mutation of seed prompts and Rainbow Teaming.

Safety mixes are tailored to each model size.

Figure 19 compares Llama 3 405B with and without Llama Guard against competitor models on English and multilingual short-context benchmarks, covering French, German, Hindi, Italian, Portuguese, Spanish and Thai. With Llama Guard, the 405B system is at least as safe as the two competing systems for each supported language, while keeping false refusal rates competitive.

Competitor results are not externally reproducible, because the safety benchmarks are internal to Meta.

Figure 21 places model-level and system-level points for 405B and 70B across capabilities, and the authors read them as a solid balance between violation rate and false refusal rate.

## Serving the 405B model

With BF16 parameters, the 405B model does not fit on one machine with 8 Nvidia H100 GPUs, so inference runs across 16 GPUs on two machines. Within a machine, tensor parallelism is used, while pipeline parallelism is used across nodes because cross-node connectivity has lower bandwidth and higher latency.

Pipeline bubbles matter in training but not in inference, which has no backward pass that needs a pipeline flush. Two micro-batches on workloads of 4,096 input tokens and 256 output tokens raise throughput at the same local batch size. The extra synchronization adds latency, but the authors judge the throughput-latency trade-off better overall.

FP8 quantization covers most matrix multiplications in the feedforward layers, which the authors say take roughly 50% of inference compute time. Self-attention parameters are not quantized, and the first and last Transformer layers are left unquantized. Row-wise rather than tensor-wise quantization is used, with scaling factors computed across rows of parameter and activation matrices.

Standard benchmarks suggested FP8 matches BF16, but the authors found they miss corrupted responses when scaling factors are not bounded. The reward score distribution for BF16 and FP8 inference is shown as having negligible impact on responses.

## Limitations

The authors state that no testing is exhaustive, and that Llama 3 may still generate harmful content, particularly for languages beyond English and when adversarial red teamers apply skilled prompting. English safety knowledge does not readily transfer to other languages, so each language needs its own safety data. Standard FP8 benchmarks do not reveal corruption when scaling factors are unbounded, so benchmark agreement alone does not establish output quality.

Synchronized GPU power swings of tens of megawatts remain an ongoing challenge for larger future models.

## Paper info

- **Authors**: Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aurelien Rodriguez, Austen Gregerson, Ava Spataru, Baptiste Roziere, Bethany Biron, Binh Tang, Bobbie Chern, Charlotte Caucheteux, Chaya Nayak, Chloe Bi, Chris Marra, Chris McConnell, Christian Keller, Christophe Touret, Chunyang Wu, Corinne Wong, Cristian Canton Ferrer, Cyrus Nikolaidis, Damien Allonsius, Daniel Song, Danielle Pintz, Danny Livshits, Danny Wyatt, David Esiobu, Dhruv Choudhary, Dhruv Mahajan, Diego Garcia-Olano, Diego Perino, Dieuwke Hupkes, Egor Lakomkin, Ehab AlBadawy, Elina Lobanova, Emily Dinan, Eric Michael Smith, Filip Radenovic, Francisco Guzmán, Frank Zhang, Gabriel Synnaeve, Gabrielle Lee, Georgia Lewis Anderson, Govind Thattai, Graeme Nail, Gregoire Mialon, Guan Pang, Guillem Cucurell, Hailey Nguyen, Hannah Korevaar, Hu Xu, Hugo Touvron, Iliyan Zarov, Imanol Arrieta Ibarra, Isabel Kloumann, Ishan Misra, Ivan Evtimov, Jack Zhang, Jade Copet, Jaewon Lee, Jan Geffert, Jana Vranes, Jason Park, Jay Mahadeokar, Jeet Shah, Jelmer van der Linde, Jennifer Billock, Jenny Hong, Jenya Lee, Jeremy Fu, Jianfeng Chi, Jianyu Huang, Jiawen Liu, Jie Wang, Jiecao Yu, Joanna Bitton, Joe Spisak, Jongsoo Park, Joseph Rocca, Joshua Johnstun, Joshua Saxe, Junteng Jia, Kalyan Vasuden Alwala, Karthik Prasad, Kartikeya Upasani, Kate Plawiak, Ke Li, Kenneth Heafield, Kevin Stone, Khalid El-Arini, Krithika Iyer, Kshitiz Malik, Kuenley Chiu, Kunal Bhalla, Kushal Lakhotia, Lauren Rantala-Yeary, Laurens van der Maaten, Lawrence Chen, Liang Tan, Liz Jenkins, Louis Martin, Lovish Madaan, Lubo Malo, Lukas Blecher, Lukas Landzaat, Luke de Oliveira, Madeline Muzzi, Mahesh Pasupuleti, Mannat Singh, Manohar Paluri, Marcin Kardas, Maria Tsimpoukelli, Mathew Oldham, Mathieu Rita, Maya Pavlova, Melanie Kambadur, Mike Lewis, Min Si, Mitesh Kumar Singh, Mona Hassan, Naman Goyal, Narjes Torabi, Nikolay Bashlykov, Nikolay Bogoychev, Niladri Chatterji, Ning Zhang, Olivier Duchenne, Onur Çelebi, Patrick Alrassy, Pengchuan Zhang, Pengwei Li, Petar Vasic, Peter Weng, Prajjwal Bhargava, Pratik Dubal, Praveen Krishnan, Punit Singh Koura, Puxin Xu, Qing He, Qingxiao Dong, Ragavan Srinivasan, Raj Ganapathy, Ramon Calderer, Ricardo Silveira Cabral, Robert Stojnic, Roberta Raileanu, Rohan Maheswari, Rohit Girdhar, Rohit Patel, Romain Sauvestre, Ronnie Polidoro, Roshan Sumbaly, Ross Taylor, Ruan Silva, Rui Hou, Rui Wang, Saghar Hosseini, Sahana Chennabasappa, Sanjay Singh, Sean Bell, Seohyun Sonia Kim, Sergey Edunov, Shaoliang Nie, Sharan Narang, Sharath Raparthy, Sheng Shen, Shengye Wan, Shruti Bhosale, Shun Zhang, Simon Vandenhende, Soumya Batra, Spencer Whitman, Sten Sootla, Stephane Collot, Suchin Gururangan, Sydney 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, Virginie Do, Vish Vogeti, Vítor Albiero, Vladan Petrovic, Weiwei Chu, Wenhan Xiong, Wenyin Fu, Whitney Meers, Xavier Martinet, Xiaodong Wang, Xiaofang Wang, Xiaoqing Ellen Tan, Xide Xia, Xinfeng Xie, Xuchao Jia, Xuewei Wang, Yaelle Goldschlag, Yashesh Gaur, Yasmine Babaei, Yi Wen, Yiwen Song, Yuchen Zhang, Yue Li, Yuning Mao, Zacharie Delpierre Coudert, Zheng Yan, Zhengxing Chen, Zoe Papakipos, Aaditya Singh, Aayushi Srivastava, Abha Jain, Adam Kelsey, Adam Shajnfeld, Adithya Gangidi, Adolfo Victoria, Ahuva Goldstand, Ajay Menon, Ajay Sharma, Alex Boesenberg, Alexei Baevski, Allie Feinstein, Amanda Kallet, Amit Sangani, Amos Teo, Anam Yunus, Andrei Lupu, Andres Alvarado, Andrew Caples, Andrew Gu, Andrew Ho, Andrew Poulton, Andrew Ryan, Ankit Ramchandani, Annie Dong, Annie Franco, Anuj Goyal, Aparajita Saraf, Arkabandhu Chowdhury, Ashley Gabriel, Ashwin Bharambe, Assaf Eisenman, Azadeh Yazdan, Beau James, Ben Maurer, Benjamin Leonhardi, Bernie Huang, Beth Loyd, Beto De Paola, Bhargavi Paranjape, Bing Liu, Bo Wu, Boyu Ni, Braden Hancock, Bram Wasti, Brandon Spence, Brani Stojkovic, Brian Gamido, Britt Montalvo, Carl Parker, Carly Burton, Catalina Mejia, Ce Liu, Changhan Wang, Changkyu Kim, Chao Zhou, Chester Hu, Ching-Hsiang Chu, Chris Cai, Chris Tindal, Christoph Feichtenhofer, Cynthia Gao, Damon Civin, Dana Beaty, Daniel Kreymer, Daniel Li, 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, Eric-Tuan Le, Erik Brinkman, Esteban Arcaute, Evan Dunbar, Evan Smothers, Fei Sun, Felix Kreuk, Feng Tian, Filippos Kokkinos, Firat Ozgenel, Francesco Caggioni, Frank Kanayet, Frank Seide, Gabriela Medina Florez, Gabriella Schwarz, Gada Badeer, Georgia Swee, Gil Halpern, Grant Herman, Grigory Sizov, Guangyi, Zhang, Guna Lakshminarayanan, Hakan Inan, Hamid Shojanazeri, Han Zou, Hannah Wang, Hanwen Zha, Haroun Habeeb, Harrison Rudolph, Helen Suk, Henry Aspegren, Hunter Goldman, Hongyuan Zhan, Ibrahim Damlaj, Igor Molybog, Igor Tufanov, Ilias Leontiadis, Irina-Elena Veliche, Itai Gat, Jake Weissman, James Geboski, James Kohli, Janice Lam, Japhet Asher, Jean-Baptiste Gaya, Jeff Marcus, Jeff Tang, Jennifer Chan, Jenny Zhen, Jeremy Reizenstein, Jeremy Teboul, Jessica Zhong, Jian Jin, Jingyi Yang, Joe Cummings, Jon Carvill, Jon Shepard, Jonathan McPhie, Jonathan Torres, Josh Ginsburg, Junjie Wang, Kai Wu, Kam Hou U, Karan Saxena, Kartikay Khandelwal, Katayoun Zand, Kathy Matosich, Kaushik Veeraraghavan, Kelly Michelena, Keqian Li, Kiran Jagadeesh, Kun Huang, Kunal Chawla, Kyle Huang, Lailin Chen, Lakshya Garg, Lavender A, Leandro Silva, Lee Bell, Lei Zhang, Liangpeng Guo, Licheng Yu, Liron Moshkovich, Luca Wehrstedt, Madian Khabsa, Manav Avalani, Manish Bhatt, Martynas Mankus, Matan Hasson, Matthew Lennie, Matthias Reso, Maxim Groshev, Maxim Naumov, Maya Lathi, Meghan Keneally, Miao Liu, Michael L. Seltzer, Michal Valko, Michelle Restrepo, Mihir Patel, Mik Vyatskov, Mikayel Samvelyan, Mike Clark, Mike Macey, Mike Wang, Miquel Jubert Hermoso, Mo Metanat, Mohammad Rastegari, Munish Bansal, Nandhini Santhanam, Natascha Parks, Natasha White, Navyata Bawa, Nayan Singhal, Nick Egebo, Nicolas Usunier, Nikhil Mehta, Nikolay Pavlovich Laptev, Ning Dong, Norman Cheng, Oleg Chernoguz, Olivia Hart, Omkar Salpekar, Ozlem Kalinli, Parkin Kent, Parth Parekh, Paul Saab, Pavan Balaji, Pedro Rittner, Philip Bontrager, Pierre Roux, Piotr Dollar, Polina Zvyagina, Prashant Ratanchandani, Pritish Yuvraj, Qian Liang, Rachad Alao, Rachel Rodriguez, Rafi Ayub, Raghotham Murthy, Raghu Nayani, Rahul Mitra, Rangaprabhu Parthasarathy, Raymond Li, Rebekkah Hogan, Robin Battey, Rocky Wang, Russ Howes, Ruty Rinott, Sachin Mehta, Sachin Siby, Sai Jayesh Bondu, Samyak Datta, Sara Chugh, Sara Hunt, Sargun Dhillon, Sasha Sidorov, Satadru Pan, Saurabh Mahajan, Saurabh Verma, Seiji Yamamoto, Sharadh Ramaswamy, Shaun Lindsay, Shaun Lindsay, Sheng Feng, Shenghao Lin, Shengxin Cindy Zha, Shishir Patil, Shiva Shankar, Shuqiang Zhang, Shuqiang Zhang, Sinong Wang, Sneha Agarwal, Soji Sajuyigbe, Soumith Chintala, Stephanie Max, Stephen Chen, Steve Kehoe, Steve Satterfield, Sudarshan Govindaprasad, Sumit Gupta, Summer Deng, Sungmin Cho, Sunny Virk, Suraj Subramanian, Sy Choudhury, Sydney Goldman, Tal Remez, Tamar Glaser, Tamara Best, Thilo Koehler, 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, Vlad Poenaru, Vlad Tiberiu Mihailescu, Vladimir Ivanov, Wei Li, Wenchen Wang, Wenwen Jiang, Wes Bouaziz, Will Constable, Xiaocheng Tang, Xiaojian Wu, Xiaolan Wang, Xilun Wu, Xinbo Gao, Yaniv Kleinman, Yanjun Chen, Ye Hu, Ye Jia, Ye Qi, Yenda Li, Yilin Zhang, Ying Zhang, Yossi Adi, Youngjin Nam, Yu, Wang, Yu Zhao, Yuchen Hao, Yundi Qian, Yunlu Li, Yuzi He, Zach Rait, Zachary DeVito, Zef Rosnbrick, Zhaoduo Wen, Zhenyu Yang, Zhiwei Zhao, Zhiyu Ma
- **Venue**: arXiv · Preprint
- **First published**: 2024-7-31
- **Added**: 2026-10-20
- **Updated**: 2024-11-23
- **Version**: v3
- **arXiv**: 2407.21783
- **Category**: cs.AI · cs.CL · cs.CV · cs.LG · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2407.21783v3) · [PDF ↗](https://arxiv.org/pdf/2407.21783v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, Amy Yang, Angela Fan, Anirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, Arun Rao et al. (2024). The Llama 3 Herd of Models. arXiv:2407.21783v3. https://arxiv.org/abs/2407.21783v3

**BibTeX**

```
@misc{grattafiori2024llama,
  title = {{The Llama 3 Herd of Models}},
  author = {Aaron Grattafiori and Abhimanyu Dubey and Abhinav Jauhri and Abhinav Pandey and Abhishek Kadian and Ahmad Al-Dahle and Aiesha Letman and Akhil Mathur and Alan Schelten and Alex Vaughan and Amy Yang and Angela Fan and Anirudh Goyal and Anthony Hartshorn and Aobo Yang and Archi Mitra and Archie Sravankumar and Artem Korenev and Arthur Hinsvark and Arun Rao and Aston Zhang and Aurelien Rodriguez and Austen Gregerson and Ava Spataru and Baptiste Roziere and Bethany Biron and Binh Tang and Bobbie Chern and Charlotte Caucheteux and Chaya Nayak and Chloe Bi and Chris Marra and Chris McConnell and Christian Keller and Christophe Touret and Chunyang Wu and Corinne Wong and Cristian Canton Ferrer and Cyrus Nikolaidis and Damien Allonsius and Daniel Song and Danielle Pintz and Danny Livshits and Danny Wyatt and David Esiobu and Dhruv Choudhary and Dhruv Mahajan and Diego Garcia-Olano and Diego Perino and Dieuwke Hupkes and Egor Lakomkin and Ehab AlBadawy and Elina Lobanova and Emily Dinan and Eric Michael Smith and Filip Radenovic and Francisco Guzmán and Frank Zhang and Gabriel Synnaeve and Gabrielle Lee and Georgia Lewis Anderson and Govind Thattai and Graeme Nail and Gregoire Mialon and Guan Pang and Guillem Cucurell and Hailey Nguyen and Hannah Korevaar and Hu Xu and Hugo Touvron and Iliyan Zarov and Imanol Arrieta Ibarra and Isabel Kloumann and Ishan Misra and Ivan Evtimov and Jack Zhang and Jade Copet and Jaewon Lee and Jan Geffert and Jana Vranes and Jason Park and Jay Mahadeokar and Jeet Shah and Jelmer van der Linde and Jennifer Billock and Jenny Hong and Jenya Lee and Jeremy Fu and Jianfeng Chi and Jianyu Huang and Jiawen Liu and Jie Wang and Jiecao Yu and Joanna Bitton and Joe Spisak and Jongsoo Park and Joseph Rocca and Joshua Johnstun and Joshua Saxe and Junteng Jia and Kalyan Vasuden Alwala and Karthik Prasad and Kartikeya Upasani and Kate Plawiak and Ke Li and Kenneth Heafield and Kevin Stone and Khalid El-Arini and Krithika Iyer and Kshitiz Malik and Kuenley Chiu and Kunal Bhalla and Kushal Lakhotia and Lauren Rantala-Yeary and Laurens van der Maaten and Lawrence Chen and Liang Tan and Liz Jenkins and Louis Martin and Lovish Madaan and Lubo Malo and Lukas Blecher and Lukas Landzaat and Luke de Oliveira and Madeline Muzzi and Mahesh Pasupuleti and Mannat Singh and Manohar Paluri and Marcin Kardas and Maria Tsimpoukelli and Mathew Oldham and Mathieu Rita and Maya Pavlova and Melanie Kambadur and Mike Lewis and Min Si and Mitesh Kumar Singh and Mona Hassan and Naman Goyal and Narjes Torabi and Nikolay Bashlykov and Nikolay Bogoychev and Niladri Chatterji and Ning Zhang and Olivier Duchenne and Onur Çelebi and Patrick Alrassy and Pengchuan Zhang and Pengwei Li and Petar Vasic and Peter Weng and Prajjwal Bhargava and Pratik Dubal and Praveen Krishnan and Punit Singh Koura and Puxin Xu and Qing He and Qingxiao Dong and Ragavan Srinivasan and Raj Ganapathy and Ramon Calderer and Ricardo Silveira Cabral and Robert Stojnic and Roberta Raileanu and Rohan Maheswari and Rohit Girdhar and Rohit Patel and Romain Sauvestre and Ronnie Polidoro and Roshan Sumbaly and Ross Taylor and Ruan Silva and Rui Hou and Rui Wang and Saghar Hosseini and Sahana Chennabasappa and Sanjay Singh and Sean Bell and Seohyun Sonia Kim and Sergey Edunov and Shaoliang Nie and Sharan Narang and Sharath Raparthy and Sheng Shen and Shengye Wan and Shruti Bhosale and Shun Zhang and Simon Vandenhende and Soumya Batra and Spencer Whitman and Sten Sootla and Stephane Collot and Suchin Gururangan and Sydney Borodinsky and Tamar Herman and Tara Fowler and Tarek Sheasha and Thomas Georgiou and Thomas Scialom and Tobias Speckbacher and Todor Mihaylov and Tong Xiao and Ujjwal Karn and Vedanuj Goswami and Vibhor Gupta and Vignesh Ramanathan and Viktor Kerkez and Vincent Gonguet and Virginie Do and Vish Vogeti and Vítor Albiero and Vladan Petrovic and Weiwei Chu and Wenhan Xiong and Wenyin Fu and Whitney Meers and Xavier Martinet and Xiaodong Wang and Xiaofang Wang and Xiaoqing Ellen Tan and Xide Xia and Xinfeng Xie and Xuchao Jia and Xuewei Wang and Yaelle Goldschlag and Yashesh Gaur and Yasmine Babaei and Yi Wen and Yiwen Song and Yuchen Zhang and Yue Li and Yuning Mao and Zacharie Delpierre Coudert and Zheng Yan and Zhengxing Chen and Zoe Papakipos and Aaditya Singh and Aayushi Srivastava and Abha Jain and Adam Kelsey and Adam Shajnfeld and Adithya Gangidi and Adolfo Victoria and Ahuva Goldstand and Ajay Menon and Ajay Sharma and Alex Boesenberg and Alexei Baevski and Allie Feinstein and Amanda Kallet and Amit Sangani and Amos Teo and Anam Yunus and Andrei Lupu and Andres Alvarado and Andrew Caples and Andrew Gu and Andrew Ho and Andrew Poulton and Andrew Ryan and Ankit Ramchandani and Annie Dong and Annie Franco and Anuj Goyal and Aparajita Saraf and Arkabandhu Chowdhury and Ashley Gabriel and Ashwin Bharambe and Assaf Eisenman and Azadeh Yazdan and Beau James and Ben Maurer and Benjamin Leonhardi and Bernie Huang and Beth Loyd and Beto De Paola and Bhargavi Paranjape and Bing Liu and Bo Wu and Boyu Ni and Braden Hancock and Bram Wasti and Brandon Spence and Brani Stojkovic and Brian Gamido and Britt Montalvo and Carl Parker and Carly Burton and Catalina Mejia and Ce Liu and Changhan Wang and Changkyu Kim and Chao Zhou and Chester Hu and Ching-Hsiang Chu and Chris Cai and Chris Tindal and Christoph Feichtenhofer and Cynthia Gao and Damon Civin and Dana Beaty and Daniel Kreymer and Daniel Li and David Adkins and David Xu and Davide Testuggine and Delia David and Devi Parikh and Diana Liskovich and Didem Foss and Dingkang Wang and Duc Le and Dustin Holland and Edward Dowling and Eissa Jamil and Elaine Montgomery and Eleonora Presani and Emily Hahn and Emily Wood and Eric-Tuan Le and Erik Brinkman and Esteban Arcaute and Evan Dunbar and Evan Smothers and Fei Sun and Felix Kreuk and Feng Tian and Filippos Kokkinos and Firat Ozgenel and Francesco Caggioni and Frank Kanayet and Frank Seide and Gabriela Medina Florez and Gabriella Schwarz and Gada Badeer and Georgia Swee and Gil Halpern and Grant Herman and Grigory Sizov and Guangyi and Zhang and Guna Lakshminarayanan and Hakan Inan and Hamid Shojanazeri and Han Zou and Hannah Wang and Hanwen Zha and Haroun Habeeb and Harrison Rudolph and Helen Suk and Henry Aspegren and Hunter Goldman and Hongyuan Zhan and Ibrahim Damlaj and Igor Molybog and Igor Tufanov and Ilias Leontiadis and Irina-Elena Veliche and Itai Gat and Jake Weissman and James Geboski and James Kohli and Janice Lam and Japhet Asher and Jean-Baptiste Gaya and Jeff Marcus and Jeff Tang and Jennifer Chan and Jenny Zhen and Jeremy Reizenstein and Jeremy Teboul and Jessica Zhong and Jian Jin and Jingyi Yang and Joe Cummings and Jon Carvill and Jon Shepard and Jonathan McPhie and Jonathan Torres and Josh Ginsburg and Junjie Wang and Kai Wu and Kam Hou U and Karan Saxena and Kartikay Khandelwal and Katayoun Zand and Kathy Matosich and Kaushik Veeraraghavan and Kelly Michelena and Keqian Li and Kiran Jagadeesh and Kun Huang and Kunal Chawla and Kyle Huang and Lailin Chen and Lakshya Garg and Lavender A and Leandro Silva and Lee Bell and Lei Zhang and Liangpeng Guo and Licheng Yu and Liron Moshkovich and Luca Wehrstedt and Madian Khabsa and Manav Avalani and Manish Bhatt and Martynas Mankus and Matan Hasson and Matthew Lennie and Matthias Reso and Maxim Groshev and Maxim Naumov and Maya Lathi and Meghan Keneally and Miao Liu and Michael L. Seltzer and Michal Valko and Michelle Restrepo and Mihir Patel and Mik Vyatskov and Mikayel Samvelyan and Mike Clark and Mike Macey and Mike Wang and Miquel Jubert Hermoso and Mo Metanat and Mohammad Rastegari and Munish Bansal and Nandhini Santhanam and Natascha Parks and Natasha White and Navyata Bawa and Nayan Singhal and Nick Egebo and Nicolas Usunier and Nikhil Mehta and Nikolay Pavlovich Laptev and Ning Dong and Norman Cheng and Oleg Chernoguz and Olivia Hart and Omkar Salpekar and Ozlem Kalinli and Parkin Kent and Parth Parekh and Paul Saab and Pavan Balaji and Pedro Rittner and Philip Bontrager and Pierre Roux and Piotr Dollar and Polina Zvyagina and Prashant Ratanchandani and Pritish Yuvraj and Qian Liang and Rachad Alao and Rachel Rodriguez and Rafi Ayub and Raghotham Murthy and Raghu Nayani and Rahul Mitra and Rangaprabhu Parthasarathy and Raymond Li and Rebekkah Hogan and Robin Battey and Rocky Wang and Russ Howes and Ruty Rinott and Sachin Mehta and Sachin Siby and Sai Jayesh Bondu and Samyak Datta and Sara Chugh and Sara Hunt and Sargun Dhillon and Sasha Sidorov and Satadru Pan and Saurabh Mahajan and Saurabh Verma and Seiji Yamamoto and Sharadh Ramaswamy and Shaun Lindsay and Shaun Lindsay and Sheng Feng and Shenghao Lin and Shengxin Cindy Zha and Shishir Patil and Shiva Shankar and Shuqiang Zhang and Shuqiang Zhang and Sinong Wang and Sneha Agarwal and Soji Sajuyigbe and Soumith Chintala and Stephanie Max and Stephen Chen and Steve Kehoe and Steve Satterfield and Sudarshan Govindaprasad and Sumit Gupta and Summer Deng and Sungmin Cho and Sunny Virk and Suraj Subramanian and Sy Choudhury and Sydney Goldman and Tal Remez and Tamar Glaser and Tamara Best and Thilo Koehler and Thomas Robinson and Tianhe Li and Tianjun Zhang and Tim Matthews and Timothy Chou and Tzook Shaked and Varun Vontimitta and Victoria Ajayi and Victoria Montanez and Vijai Mohan and Vinay Satish Kumar and Vishal Mangla and Vlad Ionescu and Vlad Poenaru and Vlad Tiberiu Mihailescu and Vladimir Ivanov and Wei Li and Wenchen Wang and Wenwen Jiang and Wes Bouaziz and Will Constable and Xiaocheng Tang and Xiaojian Wu and Xiaolan Wang and Xilun Wu and Xinbo Gao and Yaniv Kleinman and Yanjun Chen and Ye Hu and Ye Jia and Ye Qi and Yenda Li and Yilin Zhang and Ying Zhang and Yossi Adi and Youngjin Nam and Yu and Wang and Yu Zhao and Yuchen Hao and Yundi Qian and Yunlu Li and Yuzi He and Zach Rait and Zachary DeVito and Zef Rosnbrick and Zhaoduo Wen and Zhenyu Yang and Zhiwei Zhao and Zhiyu Ma},
  year = {2024},
  eprint = {2407.21783},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.21783v3}
}
```

## Other paper commentary

- [Gemma: Open Models Based on Gemini Research and Technology](https://refivu.com/en/papers/e2b5810b-65da-4a36-9bd2-a17a9a6f8512-gemma-open-models-based-on-gemini-research-and.md)
- [Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone](https://refivu.com/en/papers/1ae6b2e4-9099-4676-8fc3-523fa63b6919-phi-3-technical-report-a-highly-capable-language.md)
- [BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models](https://refivu.com/en/papers/3bd907be-414a-4e3b-b195-d25379e2be77-blip-2-bootstrapping-language-image-pre-training-with.md)
- [Visual Instruction Tuning](https://refivu.com/en/papers/760eaf17-9dbc-40d5-afee-d36c375c59e3-visual-instruction-tuning.md)
- [Qwen2.5 Technical Report](https://refivu.com/en/papers/bbe09642-acbf-4c8a-ac5f-c376606e8d8b-qwen2-5-technical-report.md)
- [Evaluating Large Language Models Trained on Code](https://refivu.com/en/papers/10d79a8a-e539-4768-b215-b5af91ac2dbf-evaluating-large-language-models-trained-on-code.md)
- [Linformer: Self-Attention with Linear Complexity](https://refivu.com/en/papers/470ce67a-0f79-4a06-ae89-f26384095187-linformer-self-attention-with-linear-complexity.md)
- [DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning](https://refivu.com/en/papers/2227da56-269c-4116-84dc-2bc76bf3e6c7-deepseek-r1-incentivizing-reasoning-capability-in-llms-via.md)
- [RT-2: Vision-Language-Action Models Transfer Web Knowledge to Robotic Control](https://refivu.com/en/papers/01f24caf-5337-46f9-abb9-a961b79018a1-rt-2-vision-language-action-models-transfer-web.md)
- [Reformer: The Efficient Transformer](https://refivu.com/en/papers/0dd490a3-709f-4bac-ae3f-de0bc9e197db-reformer-the-efficient-transformer.md)
- [Decision Transformer: Reinforcement Learning via Sequence Modeling](https://refivu.com/en/papers/386e76e8-fee6-4cba-84e8-0ef90a33b3b6-decision-transformer-reinforcement-learning-via-sequence.md)
- [A Generalist Agent](https://refivu.com/en/papers/890475cb-e797-43df-8de3-0d0eb9ed882e-a-generalist-agent.md)

## Terms in this paper

- [MMLU](https://refivu.com/en/terms/3036c0ba5adb-mmlu)
- [Reward model](https://refivu.com/en/terms/76346da527c5-reward-model)
- [RoPE](https://refivu.com/en/terms/e4cc5cfc6ebf-rope)
- [Direct Preference Optimization](https://refivu.com/en/terms/81ed2010f707-direct-preference-optimization)
- [Rejection Sampling](https://refivu.com/en/terms/40f65d094f14-rejection-sampling)
- [Grouped Query Attention](https://refivu.com/en/terms/a767540ddcc5-grouped-query-attention)
- [model averaging](https://refivu.com/en/terms/1f014d7fd28e-model-averaging)
- [Needle in a Haystack](https://refivu.com/en/terms/af6fdf647f90-needle-in-a-haystack)
- [violation rate](https://refivu.com/en/terms/27a75214fcc5-violation-rate)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/27985e84-42ca-486e-8e0e-2fa739789ab4-the-llama-3-herd-of-models)
