Reproduce “The Llama 3 Herd of Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur and 552 more

Llama 3 presents a dense Transformer family with pretrained and instruction-tuned weights, scaling to 405 billion parameters and 128K-token context. It uses curated multilingual data and repeated supervised fine-tuning and preference optimization. On HumanEval, its 405B model scores 89.0, versus GPT-4’s 86.6, but GPT-4o and Claude 3.5 Sonnet score higher; this single Python benchmark does not establish overall parity.

Key insights

  • High-quality, large-scale pre-training data and rigorous curation are crucial for achieving state-of-the-art model performance, exemplified by the 15T token multilingual corpus.
  • Compute-optimal scaling laws, extending beyond negative log-likelihood to task accuracy, effectively guide model size selection for desired performance within a given compute budget.
  • A combination of Supervised Finetuning (SFT) and Direct Preference Optimization (DPO) with high-quality human preference data effectively aligns models with human preferences and safety.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.