Modern artificial intelligence (AI) systems are powered by foundation models. This paper presents a new set of foundation models, called Llama 3. It is a herd of language models that natively support multilinguality, coding, reasoning, and tool usage. Our largest model is a dense Transformer with 405B parameters and a context window of up to 128K tokens. This paper presents an extensive empirical evaluation of Llama 3. We find that Llama 3 delivers comparable quality to leading language models such as GPT-4 on a plethora of tasks. We publicly release Llama 3, including pre-trained and post-trained versions of the 405B parameter language model and our Llama Guard 3 model for input and output safety. The paper also presents the results of experiments in which we integrate image, video, and speech capabilities into Llama 3 via a compositional approach. We observe this approach performs competitively with the state-of-the-art on image, video, and speech recognition tasks. The resulting models are not yet being broadly released as they are still under development.
核心贡献 · Key contributions
推出 Llama 3 系列模型,包括 8B、70B 和 405B 参数的稠密语言模型,上下文窗口高达 128K。 Introduce Llama 3 herd of 8B, 70B, and 405B dense language models with up to 128K context window.
开发了一种数据整理流程,使用 15T 词元进行训练,提高了数据质量与多样性。 Develop a data curation pipeline that trains on 15T tokens, improving quality and diversity.
建立了能够准确预测下游基准性能的缩放定律,为模型规模选择提供指导。 Establish scaling laws that accurately predict downstream benchmark performance, guiding model size selection.
采用监督微调(SFT)、拒绝采样(RS)和直接偏好优化(DPO)的后训练方案,使模型性能与 GPT-4 相当。 Post-training recipe using SFT, rejection sampling, and DPO yields competitive performance with GPT-4.
公开了预训练和后训练版本的 405B 模型,以及用于输入输出安全的 Llama Guard 3 模型。 Release pre-trained and post-trained 405B models plus Llama Guard 3 safety model.