Skip to main content
Browse Models

Meta

Llama 3.1 8B

Released

2024-07-14

Family

Llama 3

Type

Foundation Model

Downloads

External Download

You are about to open a link to an external source. Verify the URL before continuing.

Download

Instruct model, 4-bit GGUF (Q4_K_M)

GGUF · Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf

Instruct model, 5-bit GGUF (Q5_K_M)

GGUF · Meta-Llama-3.1-8B-Instruct-Q5_K_M.gguf

Instruct model, 6-bit GGUF (Q6_K)

GGUF · Meta-Llama-3.1-8B-Instruct-Q6_K.gguf

Instruct model, 8-bit GGUF (Q8_0)

GGUF · Meta-Llama-3.1-8B-Instruct-Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

Llama 3.1 8B is a multilingual large language model developed by Meta as part of the Llama 3.1 series of generative AI models. Released on July 23, 2024, Llama 3.1 8B is designed for advanced text generation and dialogue tasks, with a focus on multilingual performance and broad coverage across reasoning, code generation, and instruction-following capabilities. The model is part of a family that also includes 70B and 405B parameter versions, offering researchers and developers a range of model scales and capabilities for commercial and research applications. The Llama 3.1 models introduce several architectural and training advances over previous iterations, targeting both practical deployment and scientific utility through open-source distribution under the Llama 3.1 Community License.

Benchmark comparison table for Llama 3.1 and competing models

Figure 1. Benchmark table comparing Llama 3.1 8B to other contemporary large language models across tasks including general knowledge, code, math, reasoning, tool use, long context, and multilingual benchmarks.

Model Architecture and Training

Llama 3.1 8B is based on an optimized transformer architecture utilizing a decoder-only design. This approach emphasizes stability and efficiency, enabling effective scaling across parameter sizes. The model incorporates Grouped-Query Attention (GQA) to enhance inference scalability and support large context lengths, with Llama 3.1 models offering a context window of up to 128,000 tokens, suitable for tasks such as long-form summarization and extended dialogue. The model is pretrained on a corpus of approximately 15 trillion tokens sourced from publicly available data, with a knowledge cutoff date of December 2023.

Post-pretraining, the Llama 3.1 8B Instruct variant undergoes supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to better align responses with human preferences for helpfulness and safety. Techniques such as iterative SFT, Rejection Sampling, Direct Preference Optimization (DPO), and the utilization of over 25 million synthetically generated instruction-following examples are employed to improve the model’s alignment and usability, as detailed in Meta’s research publication.

The pretraining and alignment processes benefit from updated data curation and filtering pipelines, emphasizing rigorous quality assurance for both the initial training and the fine-tuning stages. Training for the 8B model specifically involved an estimated 1.46 million GPU hours, accumulating to a total of 39.3 million GPU hours across all Llama 3.1 models.

Technical Capabilities and Multilingual Support

Llama 3.1 8B supports both multilingual input and output, optimized for natural language understanding and generation across eight explicitly supported languages, including English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai. While the model’s instruction-tuned version is designed for assistant-style conversational interactions, the base model can be further adapted for a wide range of use cases, such as code generation, long text synthesis, summarization, and agentic system deployments.

A distinguishing feature of the Llama 3.1 series is the use of model outputs—including synthetic data generation and model distillation—to further improve performance, particularly in instruction-following and coding tasks. This bootstrapped approach allows the generation of large, high-quality datasets that augment supervised alignment with human feedback.

Benchmark Performance

Llama 3.1 8B demonstrates competitive results across numerous benchmarks commonly used for evaluating large language models. For general domain knowledge, the base pretrained model achieves a score of 66.7 in 5-shot MMLU, 47.8 in AGIEval English, and 75.0 in CommonSenseQA. On reasoning and reading comprehension, the model reaches 77.6 on TriviaQA-Wiki, 77.0 on SQuAD, and 75.0 on BoolQ.

The instruction-tuned variant, Llama 3.1 8B Instruct, shows further improvements, with scores such as 69.4 on MMLU 5-shot, 73.0 on zero-shot MMLU with chain-of-thought, and 48.3 on MMLU-Pro. Notably, coding benchmarks are strong, with a 72.6 score on HumanEval and 72.8 on MBPP EvalPlus (base version) in the zero-shot setting. Math and reasoning are also well-represented, with the model obtaining 84.5 on GSM-8K (CoT, 8-shot) and 51.9 on MATH (CoT, 0-shot).

On multilingual MMLU evaluations, the 8B model achieves macro average scores above 60 in several Romance and Germanic languages (e.g., 62.12 in Portuguese, 62.34 in French, 61.63 in Italian, 60.59 in German), while Hindi and Thai scores are around 50. These results reflect the deliberate multilingual optimization of the model, as documented in the Llama 3.1 paper.

Across instruction-tuned benchmarks, Llama 3.1 8B generally outperforms its predecessor, Llama 3 8B, with improvements on tasks such as MMLU (Instruct: 69.4 vs. 68.5), MMLU (CoT: 73.0 vs. 65.3), MMLU-Pro (CoT: 48.3 vs. 45.5), and HumanEval (72.6 vs. 60.4).

Applications and Use Cases

Llama 3.1 8B can be employed for both academic and commercial purposes. Its versatility enables a wide spectrum of applications, including multilingual conversational agents, code synthesis tools, knowledge retrieval systems, and content generation across supported languages. The instruction-tuned models are targeted toward assistant-style dialogue and chatbot services, providing robust instruction following and safe, helpful responses.

The base model serves as a foundation that can be fine-tuned or distilled for specific downstream tasks, from research exploration to customized enterprise workflows. Moreover, outputs from Llama 3.1 can be used in synthetic data pipelines or as a source for knowledge distillation, facilitating further model development and transfer learning scenarios, as described in the model documentation.

Limitations and Responsible Use

Despite extensive safety alignment and red teaming—addressing areas such as child safety and prevention of harmful code—the Llama 3.1 8B model inherits the general risks associated with large language models. These include the possibility of generating inaccurate, biased, or otherwise undesirable content, especially in scenarios not comprehensively covered during development and testing. Developers are advised to conduct thorough safety evaluations tailored to their specific deployment contexts, integrating additional safety guardrails as recommended in the Responsible Use Guide.

The model explicitly supports eight languages; usage in other languages without task-specific fine-tuning or additional controls is discouraged. Meta’s Acceptable Use Policy outlines restrictions, prohibiting deployment scenarios that violate applicable laws or risk user safety, and requiring clear end-user disclosures of known risks in AI-powered applications.

Licensing and Model Access

Llama 3.1 8B is distributed under the Llama 3.1 Community License, which permits use, reproduction, modification, and distribution, provided users adhere to provisions regarding attribution, responsible deployment, and license compliance. Key terms include non-exclusive, worldwide rights, attribution requirements ("Built with Llama"), and rules surrounding redistribution, trademark usage, and commercial scale thresholds. The model and associated materials are provided "as is" without warranty, with Meta retaining all intellectual property while derivative works remain with licensees, as detailed in the Community License documentation.

Related Models in the Llama Family

Llama 3.1 8B is part of a broader ecosystem that includes the Llama 3.1 70B and 405B parameter models. All leverage the Grouped-Query Attention (GQA) mechanism and share the architectural and alignment advances present in the Llama 3.1 series. The largest, 405B, is positioned as an open "frontier" model, while the 8B and 70B variants serve use cases requiring smaller model sizes and faster inference, as discussed in the Llama 3.1 release announcement.

External Resources

About Llama 3: The Llama 3 family of AI models, developed by Meta, represents a significant advancement in open-source large language models, offering parameter sizes up to 405 billion and supporting context windows of up to 128k tokens. Llama 3.1, 3.2, and 3.3 optimize this performance through distillation learning and improved multimodal capabilities.

More in the Llama 3 Family

Meta /

Llama 3 8B

Large language model with 8 billion parameters featuring transformer architecture, trained on 15 trillion tokens for text generation and coding tasks.
Meta /

Llama 3 70B

State-of-the-art 70B foundation model from Meta, trained on over 15 trillion tokens.
Sao10K /

Llama 3.1 8B Stheno v3.4

An 8-billion parameter language model fine-tuned for multi-turn dialogue, creative writing, and roleplaying using curated conversational datasets and synthetic data.
Deepseek AI /

DeepSeek R1 Distill Llama 8B

Distilled 8B-parameter model optimized for mathematical reasoning and code generation through knowledge transfer from larger reinforcement learning-trained teacher models.
Deep Cogito /

Cogito V1 Preview 8B

A Llama 3.1-based model trained with Iterated Distillation and Amplification, featuring dual reasoning modes and tool calling capabilities.
Meta /

Llama 3.1 70B

The Llama 3.1 series of open models rivals top closed models in performance. It was trained on over 15 trillion tokens using over 16K H100 GPUs. These models display state-of-the-art capabilities in general knowledge, steerability, math, tool use, and translation.
Deep Cogito /

Cogito V1 Preview 70B

A 70B parameter instruction-tuned model based on Llama 3.1 architecture featuring dual reasoning modes and multilingual tool-calling capabilities.
Meta /

Llama 3.2 3B

The next iteration in the Llama series of open models. This lightweight model was designed to run on edge devices, even mobile.
Cognitive Computations /

Dolphin 3.0 Llama3.2 3B

An uncensored instruct-tuned 3.2B parameter language model that grants users full control over system prompts and behavioral alignment.
Deep Cogito /

Cogito V1 Preview 3B

A 3B-parameter multilingual instruction-tuned model based on Llama 3.2 that supports tool-calling and features dual operational modes for standard and extended reasoning.
Meta /

Llama 3.3 70B

Llama 3.3 is a text-only 70B instruction-tuned model that provides enhanced performance relative to Llama 3.1 70B and to Llama 3.2 90B when used for text-only applications. For some applications, Llama 3.3 70B approaches the performance of Llama 3.1 405B.
Sao10K /

L3.3 70B Euryale v2.3

A 70-billion parameter language model fine-tuned from Llama 3.3 for creative writing and role-playing applications using custom datasets.
Sao10K /

70B L3.3 Cirrus x1

A 70.6-billion parameter language model finetuned from Llama 3.3 using extended training and checkpoint merging techniques for improved output stability.
TheDrummer /

Anubis 70B v1

A 70.6-billion parameter text generation model fine-tuned from Llama 3.3, designed for creative writing and role-playing applications.
TheDrummer /

Anubis 70B v1.1

A 70.6 billion parameter Llama 3.3-based model fine-tuned for character consistency and dynamic dialogue in creative text generation applications.
LatitudeGames /

Wayfarer Large 70B Llama 3.3

A 70.6-billion parameter language model fine-tuned for adventure role-play scenarios, emphasizing conflict, tension, and narrative stakes in second-person storytelling.
Deepseek AI /

DeepSeek R1 Distill Llama 70B

A 70B parameter dense language model distilled from DeepSeek-R1 using Llama 3.3 architecture, optimized for mathematical and coding reasoning tasks.

More from Meta

Meta /

LLaMA 7B

A 7-billion parameter transformer language model trained on one trillion tokens from publicly available datasets for natural language processing research.
Meta /

LLaMA 13B

A 13-billion parameter transformer-based language model trained on 1.4 trillion tokens from publicly available datasets, demonstrating competitive performance on various benchmarks.
Meta /

LLaMA 33B

A 32.5 billion parameter transformer-based language model trained on 1.4 trillion tokens of publicly available data with competitive benchmark performance.
Meta /

LLaMA 65B

A 65.2-billion parameter transformer language model trained on 1.4 trillion tokens from publicly available datasets for research applications.
Meta /

Llama 2 7B

7 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
Meta /

Llama 2 13B

13 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
Meta /

CodeLlama 13B

Fine-tuned version of Llama 13b, with training data optimized for code generation and completion tasks.
Meta /

CodeLlama 34B

Fine-tuned version of unreleased Llama 2 34b, with training data optimized for code generation and completion tasks.
Meta /

Llama 2 70B

70 billion parameter version of the 2nd iteration in Meta's Llama series of open source models.
Meta /

CodeLlama 70B

Fine-tuned version of Llama 70b, with training data optimized for code generation and completion tasks.
Meta /

Llama 4 Scout (17Bx16E)

A natively multimodal transformer with mixture-of-experts architecture supporting 10 million token context and multilingual text-image understanding capabilities.
Meta /

Llama 4 Maverick (17Bx128E)

Multimodal instruction-tuned model with 17 billion active parameters from 400 billion total, trained on 22 trillion tokens across 200 languages.
Meta /

MusicGen

MusicGen is a text-to-music autoregressive transformer model capable of generating music samples conditioned on text descriptions or audio prompts.
Meta /

Magnet

Magnet is a single-stage, non-autoregressive transformer model for text-to-music and text-to-audio generation, with faster generation that MusicGen.
Meta /

Seamless

Seamless is a MMMMT (Massively Multilingual and Multimodal Machine Translation) model that can translate and generate audio in over 100 languages.