Skip to main content
Browse Models

Meta

Llama 2 70B

Released

2023-07-18

Family

Llama 2

Type

Foundation Model

Downloads

External Download

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

Download

Chat model, 4-bit GGUF (Q4_K_M)

GGUF · llama-2-70b-chat.Q4_K_M.gguf

Chat model, 5-bit GGUF (Q5_K_M)

GGUF · llama-2-70b-chat.Q5_K_M.gguf

Chat model, 6-bit GGUF (Q6_K)

GGUF · llama-2-70b-chat.Q6_K.gguf

Chat model, 8-bit GGUF (Q8_0)

GGUF · llama-2-70b-chat.Q8_0.gguf

4-bit GGUF (Q4_K_M)

GGUF · llama-2-70b.Q4_K_M.gguf

5-bit GGUF (Q5_K_M)

GGUF · llama-2-70b.Q5_K_M.gguf

6-bit GGUF (Q6_K)

GGUF · llama-2-70b.Q6_K.gguf

8-bit GGUF (Q8_0)

GGUF · llama-2-70b.Q8_0.gguf

Ollama Model (q4_K_M)

Ollama

Model Report

Overview

Llama 2 70B is a generative large language model developed by Meta as part of the Llama 2 family, designed for advanced natural language understanding and generation. Released in July 2023, Llama 2 70B is notable for its scale—comprising 70 billion parameters—and serves as both a foundational pretrained model and the basis for further fine-tuned conversational systems. The Llama 2 models are distributed under a specialized commercial and research license, emphasizing openness alongside responsible use and safety guidelines, according to the official model overview.

Llama 2 model family stylized graphic with model names

Figure 1. Stylized graphic representing the Llama 2 family, including the 7B, 13B, and 70B parameter variants, highlighting its research and commercial availability.

Architecture and Training

Llama 2 70B is built upon a transformer-based, auto-regressive architecture with optimizations for efficient large-scale training and inference. It introduces Grouped-Query Attention (GQA) in its larger variants, such as 70B, to accelerate inference and enhance scalability without compromising accuracy. The context window has been expanded to 4096 tokens, twice the context length of the Llama 1 models, allowing for better handling of longer text sequences and more complex prompts, as described in the Llama 2 research publication.

Pretraining utilized 2 trillion tokens from publicly available online sources, exceeding the Llama 1 family's dataset by 40%. The primary language of the training data is English, with supplementary data from 27 other languages, although performance in languages other than English is comparatively limited. The pretraining data cutoff is September 2022.

Llama 2 training data and model parameter infographic

Figure 2. Infographic highlighting Llama 2’s scale, including 2 trillion pretraining tokens, expanded context length, and detailed parameters for each model size.

For fine-tuned conversational models, such as Llama-2-Chat 70B, additional training was performed using supervised fine-tuning and reinforcement learning from human feedback (RLHF), leveraging over one million human preference annotations and more than 100,000 supervised examples to align model outputs with human preferences for helpfulness and safety.

Fine-tuning and RLHF pipeline diagram

Figure 3. Flow chart illustrating the supervised and reinforcement learning from human feedback (RLHF) framework used to fine-tune Llama 2 for conversational safety and helpfulness.

Performance and Benchmarking

Llama 2 70B demonstrates robust performance across a spectrum of academic language model benchmarks, outperforming both prior Llama 1 models and many contemporary open models. On code generation tasks such as HumanEval and MBPP, it achieves a pass@1 score of 37.5. In commonsense reasoning, spanning metrics like PIQA, SIQA, and HellaSwag, it records an average score of 71.9. For world knowledge benchmarks, including NaturalQuestions and TriviaQA, it attains a score of 63.6.

Other notable benchmark scores include a reading comprehension average of 69.4 (across SQuAD, QuAC, and BoolQ), a math benchmark average of 35.2 (across GSM8K and MATH), a MMLU score of 68.9, and a 51.2 on the "Big Bench Hard" (BBH) tasks. On AGIEval assessments—designed to probe aspects of artificial general intelligence—Llama 2 70B scores 54.2. These results are consistently higher than those of corresponding Llama 1 models and other open-source LLMs in similar parameter ranges, as detailed in the Llama 2 technical documentation.

Comprehensive benchmark results for Llama 2 and competitors

Figure 4. Benchmark comparison chart showcasing Llama 2 model’s performance across diverse NLP evaluation tasks relative to other leading open LLMs.

Regarding safety, Llama 2 70B achieves a TruthfulQA performance of 50.18% as a pretrained model, which rises to 64.14% in the fine-tuned chat variant. Toxic content generation, as measured by Toxigen, is reduced drastically in Llama-2-Chat 70B to 0.01%, underscoring the impact of RLHF and supervised alignment processes.

Alignment, Safety, and Responsible Use

Meta emphasizes safety and responsible development in Llama 2, with particular attention to alignment for conversational applications. Fine-tuning with RLHF incorporates explicit human feedback to optimize for both helpful and safe responses. The RLHF process in Llama 2 involves a combination of supervised fine-tuning, reward modeling for safety and helpfulness, and iterative policy optimization through rejection sampling and proximal policy optimization.

Cover page for the Llama 2 Responsible Use Guide

Figure 5. Visual display of the Responsible Use Guide provided to developers for best practices in deploying LLM-powered products with Llama 2.

Developers are encouraged to conduct additional safety evaluations tailored to their deployment scenarios. The model’s Responsible Use Guide and Acceptable Use Policy provide detailed resources to help ensure legal and ethical integration, as the Llama 2 models are not exhaustively evaluated in every context and remain an evolving technology.

Applications, Limitations, and Licensing

Llama 2 70B is designed for use as a foundational model in research, commercial applications, and a wide range of natural language processing tasks. The model serves as the baseline for Llama-2-Chat, which is optimized for dialogue and assistant use cases. General pretrained versions are suitable for further adaptation to specific tasks including document summarization, question answering, and more, as outlined in the model’s documentation.

However, Llama 2 70B’s strongest performance is in English, given the composition of the training data. Its capabilities in other languages are comparatively limited. As a static, pretrained model with a training data cutoff in September 2022, it is not aware of more recent world events or facts. As with all large language models, Llama 2 70B may produce inaccurate, biased, or otherwise unsuitable outputs, and its deployment requires careful consideration and ongoing evaluation.

The Llama 2 Community License permits free use for research and commercial purposes under specified terms. Redistribution and derivative works are allowed with appropriate attribution and adherence to responsible use guidelines, but the license prohibits using Llama 2 outputs to improve other large language models (apart from Llama 2 and its derivatives), and enforces compliance with the Acceptable Use Policy.

Model Family and Community

The Llama 2 family encompasses several parameter sizes: 7B, 13B, and 70B. Each model is available in both pretrained and chat-optimized versions, enabling different use cases and computational footprints. Compared to Llama 1, the Llama 2 family offers expanded datasets, longer context length, and enhanced alignment through RLHF.

Llama 2’s release is supported by a network of research and commercial partners who contribute to its ecosystem and promote open, safe research and innovation. The broad support from the community is visible through collaborations, contributions, and adoption across research, academia, and industry.

Helpful Links

About Llama 2: The Llama 2 family, developed by Meta, comprises large language models ranging from 7 billion to 70 billion parameters, trained on 40% more data than their predecessors and featuring a doubled context length of 4,096 tokens.

More in the Llama 2 Family

Meta /

Llama 2 7B

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

CodeLlama 7B

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

Vicuna 7B

Llama 7B fine-tuned on 125k GPT-4 conversations, with strong performance in chatbot and instruction following use-cases.
PygmalionAI /

Pygmalion 2 7B

Llama 7B fine-tuned for conversation, roleplaying, and storywriting.
openchat /

OpenChat 3.5 7B

Llama 2 7B fine-tuned using the C-RLFT strategy, with performance surpassing GPT 3.5 on some benchmarks.
Xwin-LM /

Xwin LM 7B

Llama 2 7B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
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.
NousResearch /

Nous Hermes 13b

Llama 13b fine-tuned on over 300k curated GPT-4 outputs, known long high-quality outputs.
lmsys /

Vicuna 13B

Llama 13B fine-tuned on 125k GPT-4 conversations, with strong performance in chatbot and instruction following use-cases.
Gryphe /

MythoMax L2

An improved variant of MythoMix (MythoLogic-L2 and Huginn merge) using an experimental tensor-type merge technique. Originally a merge of multiple popular Llama 2 fine-tunes, including Hermes, Chronos, and Airoboros. Very popular for rich descriptions, storywriting, and roleplay.
WizardLM /

WizardLM 13B

Llama 2 13B model fine-tuned to follow complex instructions using the WizardLM training methodology.
PygmalionAI /

Pygmalion 2 13B

Llama 13B fine-tuned for conversation, roleplaying, and storywriting.
PygmalionAI /

Mythalion 13B

Merge of two popular fine-tunes: Pygmalion and Mythomax L2, resulting in a model that is good at roleplaying and instruction-following.
Xwin-LM /

Xwin LM 13B

Llama 2 13B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
Meta /

CodeLlama 34B

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

CodeLlama 70B

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

Xwin 70B

Llama 2 70B fine-tune using numerous emerging techniques including SFT, RM, and RLHF, achieving top results on AlpacaEval.
WizardLM /

WizardLM 70B

Llama 2 70B model fine-tuned to follow complex instructions using the WizardLM training methodology.
NousResearch /

Nous Hermes Llama 2 70B

Llama 2 70B fine-tuned on over 300k curated GPT-4 outputs.

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 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 /

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.
Meta /

Llama 3.1 8B

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