Contact Support
    Meta/
    Llama-3.1-8B-Instruct
    License

    Model Card

    Here’s a table summarizing the comparison between different Llama models against various benchmarks: (for more details read here)

    Base Pretrained Models

    Category: General

    Benchmark# ShotsMetricLlama 3 8BLlama 3.1 8BLlama 3 70BLlama 3.1 70BLlama 3.1 405B
    MMLU5macro_avg/acc_char66.766.779.579.385.2
    MMLU-Pro (CoT)5macro_avg/acc_char36.237.155.053.861.6
    AGIEval English3-5average/acc_char47.147.863.064.671.6
    CommonSenseQA7acc_char72.675.083.884.185.8
    Winogrande5acc_char-60.5-83.386.7
    BIG-Bench Hard (CoT)3average/em61.164.281.381.685.9
    ARC-Challenge25acc_char79.479.793.192.996.1

    Category: Knowledge Reasoning

    Benchmark# ShotsMetricLlama 3 8BLlama 3.1 8BLlama 3 70BLlama 3.1 70BLlama 3.1 405B
    TriviaQA-Wiki5em78.577.689.789.891.8

    Category: Reading Comprehension

    Benchmark# ShotsMetricLlama 3 8BLlama 3.1 8BLlama 3 70BLlama 3.1 70BLlama 3.1 405B
    SQuAD1em76.477.085.681.889.3
    QuAC (F1)1f144.444.951.151.153.6
    BoolQ0acc_char75.775.079.079.480.0
    DROP (F1)3f158.459.579.779.684.8

    Instruction-Tuned Models

    Category: General

    Benchmark# ShotsMetricLlama 3 8B InstructLlama 3.1 8B InstructLlama 3 70B InstructLlama 3.1 70B InstructLlama 3.1 405B Instruct
    MMLU5macro_avg/acc68.569.482.083.687.3
    MMLU (CoT)0macro_avg/acc65.373.080.986.088.6
    MMLU-Pro (CoT)5micro_avg/acc_char45.548.363.466.473.3
    IFEval--76.880.482.987.588.6

    Category: Reasoning

    Benchmark# ShotsMetricLlama 3 8B InstructLlama 3.1 8B InstructLlama 3 70B InstructLlama 3.1 70B InstructLlama 3.1 405B Instruct
    ARC-C0acc82.483.494.494.896.9
    GPQA0em34.630.439.541.750.7

    Category: Code

    Benchmark# ShotsMetricLlama 3 8B InstructLlama 3.1 8B InstructLlama 3 70B InstructLlama 3.1 70B InstructLlama 3.1 405B Instruct
    HumanEval0pass@160.472.681.780.589.0
    MBPP ++ base version0pass@170.672.882.586.088.6
    Multipl-E HumanEval0pass@1-50.8-65.575.2
    Multipl-E MBPP0pass@1-52.4-62.065.7

    Category: Math

    Benchmark# ShotsMetricLlama 3 8B InstructLlama 3.1 8B InstructLlama 3 70B InstructLlama 3.1 70B InstructLlama 3.1 405B Instruct
    GSM-8K (CoT)8em_maj1@180.684.593.095.196.8
    MATH (CoT)0final_em29.151.951.068.073.8

    Category: Tool Use

    Benchmark# ShotsMetricLlama 3 8B InstructLlama 3.1 8B InstructLlama 3 70B InstructLlama 3.1 70B InstructLlama 3.1 405B Instruct
    API-Bank0acc48.382.685.190.092.0
    BFCL0acc60.376.183.084.888.5
    Gorilla Benchmark API0acc1.78.214.729.735.3
    Nexus (0-shot)0macro_avg/acc18.138.547.856.758.7

    Category: Multilingual

    Benchmark# ShotsMetricLlama 3 8B InstructLlama 3.1 8B InstructLlama 3 70B InstructLlama 3.1 70B InstructLlama 3.1 405B Instruct
    Multilingual MGSM (CoT)0em-68.9-86.991.6

    Multilingual Benchmarks

    Category: General

    BenchmarkLanguageLlama 3.1 8BLlama 3.1 70BLlama 3.1 405B
    MMLU (5-shot, macro_avg/acc)Portuguese62.1280.1384.95
    MMLU (5-shot, macro_avg/acc)Spanish62.4580.0585.08
    MMLU (5-shot, macro_avg/acc)Italian61.6380.4085.04
    MMLU (5-shot, macro_avg/acc)German60.5979.2784.36
    MMLU (5-shot, macro_avg/acc)French62.3479.8284.66
    MMLU (5-shot, macro_avg/acc)Hindi50.8874.5280.31
    MMLU (5-shot, macro_avg/acc)Thai50.3272.9578.21

    Benchmarks and Metrics Glossary

    • MMLU (Massive Multitask Language Understanding): A benchmark designed to measure a model's performance across a wide range of tasks, focusing on its ability to handle diverse and complex language tasks.
    • MMLU-Pro (CoT) (Massive Multitask Language Understanding - Chain of Thought): A variant of MMLU where the model is expected to generate reasoning chains (step-by-step explanations) for solving tasks.
    • AGIEval: A benchmark designed to measure a model's performance on English language tasks.
    • CommonSenseQA: A benchmark that tests a model's ability to answer questions requiring common sense reasoning.
    • Winogrande: A commonsense reasoning benchmark focusing on resolving ambiguity in sentences.
    • BIG-Bench (Beyond the Imitation Game Benchmark): A comprehensive benchmark covering a wide array of language tasks. The "Hard" subset focuses on more challenging tasks.
    • ARC (AI2 Reasoning Challenge) - Challenge: A benchmark designed to measure a model's ability to answer challenging science questions.
    • TriviaQA-Wiki: A benchmark for evaluating the model's ability to answer trivia questions, using Wikipedia as the source of truth.
    • SQuAD (Stanford Question Answering Dataset): A reading comprehension benchmark where models must answer questions based on a given text passage.
    • QuAC (Question Answering in Context): A benchmark for evaluating a model's ability to answer questions based on a dialogue context.
    • BoolQ (Boolean Questions): A yes/no question-answering benchmark, testing the model’s ability to provide accurate binary answers.
    • DROP (Discrete Reasoning Over Paragraphs): A reading comprehension benchmark focusing on discrete reasoning over paragraphs.
    • IFEval: A benchmark designed to test a model’s understanding and performance across various English tasks.
    • GPQA (Generalized Professional QA): A benchmark that tests a model's ability to answer professional-level questions across various domains.
    • HumanEval: A benchmark designed to evaluate the model’s ability to write correct code based on problem descriptions.
    • MBPP (MultiPL-E Benchmark for Programming Proficiency): A benchmark that tests a model's proficiency in writing code across multiple languages.
    • GSM-8K (Grade School Math 8K): A benchmark focusing on the model’s ability to solve grade-school-level math problems.
    • MATH: A benchmark evaluating a model’s ability to solve complex mathematical problems.
    • API-Bank: A benchmark testing the model's accuracy in using APIs to solve tasks.
    • BFCL (Benchmark for Commonsense Language): A benchmark designed to measure a model’s ability to understand and use commonsense knowledge.
    • Gorilla Benchmark API Bench: A benchmark testing the model’s ability to work with APIs, focusing on more complex or rare tasks.
    • Nexus: A benchmark testing the model's macro-average accuracy in performing zero-shot tasks.
    • Multilingual MGSM (CoT): A multilingual version of the GSM-8K benchmark, testing the model’s ability to solve math problems in multiple languages.

    Metrics:

    • macro_avg/acc (Macro Average Accuracy): A metric that averages the accuracy of a model across all classes or tasks.
    • acc_char (Accuracy Character): A measure of how accurately a model performs at the character level, typically used in text-based benchmarks.
    • em (Exact Match): A metric that measures how often the model's output exactly matches the correct answer.
    • f1 (F1 Score): A metric that considers both precision and recall to measure a model's accuracy, particularly useful for imbalanced classes.
    • pass@1: A coding metric that measures the model's ability to generate correct code on the first attempt.
    • em_maj1@1: A measure of exact match accuracy, focusing on the first major attempt at a task, particularly in complex reasoning or math problems.
    • final_em: Final exact match score, often used in more challenging benchmarks like MATH.

    Meta data

    131,072 tokens
    $0.2 per million
    $0.2 per million
    Dec 2023
    Create an agent Pipe