Skip to main content
Browse Models

Meta

Llama 3 8B

Released

2024-04-17

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

Meta Llama 3 8B is a large language model (LLM) developed by Meta as part of the Llama 3 model family. Designed for advanced text and code generation, Llama 3 8B is available in both pretrained and instruction-tuned variants, supporting diverse use cases ranging from assistant-style dialogue to natural language processing research. The Llama 3 8B model emphasizes openness, scalability, and responsible AI deployment, incorporating developments in reasoning, code generation, and instruction following over previous Llama iterations, as detailed by Meta.

This introductory video provides a high-level overview of Llama 3, its design intent, and its uses across Meta's products. · Source

Model Architecture and Technical Innovations

Llama 3 8B employs a transformer-based, auto-regressive architecture tailored for efficient inference and scalability. It utilizes a grouped-query attention mechanism to enhance inference performance across both the 8B and 70B parameter model variants, as described in the technical documentation.

The architecture utilizes a 128,000-token vocabulary tokenizer. This larger, more efficient tokenizer improves language representation and ensures that the model matches the inference efficiency of the previous Llama 2 7B model, despite handling more parameters. Llama 3 models are trained with context lengths of 8,192 tokens, with explicit masking strategies to isolate document boundaries during training.

Developments in training infrastructure and software contributed to the scalability of Llama 3. Meta leveraged its Research SuperCluster and large-scale production clusters, automating training validation and improving infrastructure reliability. The largest-scale training runs utilized up to 24,000 GPUs simultaneously, reaching over 400 TFLOPS per GPU, according to Meta's published benchmarks.

Training Data and Alignment Methods

Llama 3 8B is pretrained on a corpus exceeding 15 trillion tokens, drawn from publicly available sources. This dataset is considerably larger than those used for previous Llama models and contains approximately four times more code-related data, as documented in the Llama 3 blog post. Data curation involved heuristic filtering, semantic deduplication, and classifier-based prediction of data quality, with earlier Llama models aiding the curation process.

For multilingual capabilities, over 5% of pretraining data was sourced from high-quality datasets in more than 30 languages. However, English remains the primary language for optimal performance unless further fine-tuning is performed in other languages.

Fine-tuning employed supervised datasets and over ten million human-annotated examples, focusing instruction-tuned variants for chat and dialogue. For alignment, Llama 3 integrates supervised fine-tuning (SFT), reinforcement learning with human feedback (RLHF), and reward modeling. Post-training utilizes a mix of rejection sampling, proximal policy optimization, and direct preference optimization, combined with multiple rounds of manual quality assurance, as outlined by Meta.

System-level safety diagram for Llama 3

Figure 1. A system-level safety diagram depicting how Llama 3 models incorporate input and output safeguards with model-level mitigations to balance utility and safety in deployment.

Evaluation and Benchmark Performance

Llama 3 8B exhibits improved performance across a wide range of language understanding, reasoning, and code generation benchmarks when compared to earlier models such as Llama 2 and other contemporary LLMs.

According to Meta's test results, the instruction-tuned Llama 3 8B achieves scores on multiple industry benchmarks, including MMLU, HumanEval, and GSM-8K. The model exhibits notably reduced false refusal rates following enhancements in post-training alignment procedures, resulting in more compliant behavior on benign prompts.

Llama 3 performance comparison tables against peer models

Figure 2. Side-by-side performance tables comparing the Llama 3 8B and 70B models against other leading language models on benchmarks like MMLU, GPQA, HumanEval, GSM-8K, and MATH.

Human evaluation was conducted using a curated prompt set spanning common use cases, such as advice, brainstorming, coding, reasoning, and summarization. In human preference studies, the instruction-tuned Llama 3 70B model's performance was compared to other leading language models, as illustrated in aggregated comparisons.

Bar chart of human evaluation win/tie/loss rates

Figure 3. Aggregated human evaluation bar chart, highlighting Meta Llama 3 70B Instruct's win, tie, and loss rates compared with Claude Sonnet, Mistral Medium, GPT-3.5, and Llama 2.

Applications and Use Cases

Llama 3 8B is intended for a broad spectrum of research and commercial applications. The instruction-tuned models are specifically optimized for assistant-like chat and dialogue scenarios, while pretrained models can be adapted for various natural language processing tasks, including text generation, summarization, information extraction, and code completion.

The Llama 3 technology underpins Meta's assistant, Meta AI, which integrates these models across Meta products such as Facebook, Instagram, WhatsApp, Messenger, and the web. While Llama 3 8B's core strengths currently focus on English language capability, ongoing efforts aim for enhanced multilingual performance in future iterations.

Responsible Deployment, Limitations, and Licensing

Responsible AI use is central in Llama 3's design. Meta provides a comprehensive Responsible Use Guide advising developers on best practices, including input and output filtering, content moderation, and adherence to regulatory standards. The system-level approach outlined emphasizes layered safeguards at the input, model, and output stages.

Despite these efforts, residual risks remain typical of large generative language models, such as the potential for inaccurate, biased, or unpredictable outputs. The model is static and trained on a fixed dataset, with its knowledge limited to information available prior to March 2023 for the 8B variant.

Llama 3 is released under the Meta Llama 3 Community License Agreement, which includes provisions for attribution, acceptable use, and restrictions on leveraging the model to develop other LLMs outside the Llama 3 ecosystem. Commercial usage for organizations with very large user bases may require further licensing terms, and developers are expected to comply with Meta’s Acceptable Use Policy.

Release Information and Model Variants

The Llama 3 8B and 70B models were publicly released on April 18, 2024, as detailed in Meta's official announcement. These initial releases include both base and instruction-tuned variants. Meta has indicated plans for ongoing development, including models with even larger parameter counts and expanded multilingual and multimodal capabilities.

For model iteration comparisons, Llama 3 models present performance differences over their Llama 2 counterparts in both efficiency and benchmark performance. Updated and future model releases, such as the Llama 3.1-8B, are planned with ongoing research.

Helpful 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 70B

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

Llama 3.1 8B

Llama 3.1 is a new state-of-the-art large language model from Meta.
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.