Llama 2-7B
by Meta · Jul 18, 2023
Llama 2-7B is an open-weight chat llm from Meta, released Jul 18, 2023. It has 6.7B parameters. It scores 83.2 on the Epoch Capabilities Index.
- Provider
- Meta
- Released
- Jul 18, 2023
- Type
- Chat LLM
- Parameters
- 6.7B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- llama2
- Knowledge cutoff
- —
- Status
- Open weights
- Training compute
- 8.4e+22 FLOP
- Training data
- 2000B tokens/words
- HF downloads (30d)
- 171.5K
About Llama 2-7B
In this work, we develop and release Llama 2, a collection of pretrained and fine-tuned large language models (LLMs) ranging in scale from 7 billion to 70 billion parameters. Our fine-tuned LLMs, called Llama 2-Chat, are optimized for dialogue use cases. Our models outperform open-source chat models on most benchmarks we tested, and based on our human evaluations for helpfulness and safety, may be a suitable substitute for closedsource models.
Llama 2-7B benchmarks
All benchmarks →- Epoch Capabilities Index83.2
- MMLU45.8%
- GSM8K16.7%
- HellaSwag77.2%
Scores from the Epoch AI Benchmarking Hub (best reported setting). ECI = Epoch Capabilities Index.
How to run Llama 2-7B
Llama 2-7B is an open-weight model published on Hugging Face as meta-llama/Llama-2-7b-hf. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 6.7B parameters it needs roughly 4 GB of memory at 4-bit quantization.
Llama 2-7B vs alternatives
- Llama 2-7B vs INTELLECT-1
- Llama 2-7B vs vicuna-13b-v1.1
- Llama 2-7B vs Falcon-7B
- Llama 2-7B vs Baichuan2-13B
- Llama 2-7B vs Falcon-40B
- Llama 2-7B vs Gemma 2B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| INTELLECT-1 | Hugging Face | Nov 2024 | 10B | — | — | — | 83.3 |
| vicuna-13b-v1.1open | LMSYS | Apr 2023 | 13B | — | — | — | 76.1 |
| Falcon-7Bopen | Technology Innovation Institute | Apr 2023 | 7.2B | — | — | — | 73.1 |
| Baichuan2-13Bopen | Baichuan | Sep 2023 | 13B | — | — | — | 91.8 |
| Falcon-40Bopen | Technology Innovation Institute | Mar 2023 | 40B | — | — | — | 90.7 |
| Gemma 2Bopen | Google DeepMind | Feb 2024 | 2.5B | — | — | — | 75.7 |
| deepseek-coder-6.7b-baseopen | DeepSeek | Oct 2023 | 6.7B | — | — | — | — |
| Mistral-7B-Instruct-v0.2open | Mistral AI | Dec 2023 | 7.2B | — | — | — | — |
More models from Meta
All Meta models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Muse Spark 1.3 Contributor | Sep 2026 | — | 1M | $0.1 | $0.2 |
| Llama-3.3-70B-Instructopen | Dec 2024 | 71B | 128K | $0.71 | $0.71 |
| Muse Spark Openopen | Oct 2026 | 816B | 1M | $1.25 | $4.25 |
| Muse Spark 1.2 | Aug 2026 | — | 1M | $0.1 | $0.2 |
| Muse Wonder | Oct 2026 | — | 1M | $4 | $20 |
| Muse Spark 1.1 | Apr 2026 | — | 1M | $1.25 | $4.25 |
| Llama 4 Maverickopen | Apr 2025 | 402B | 512K | $0.35 | $1 |
| Llama 4 Scoutopen | Apr 2025 | 109B | 320K | $0.1 | $0.3 |
Frequently asked questions
Who made Llama 2-7B?
Llama 2-7B was developed by Meta (United States of America). It was released on Jul 18, 2023.
Is Llama 2-7B open source?
Yes. Llama 2-7B's weights are publicly available under the llama2 license on Hugging Face (meta-llama/Llama-2-7b-hf), so you can download and run it yourself.
How many parameters does Llama 2-7B have?
Llama 2-7B has 6.7B parameters.
How does Llama 2-7B perform on benchmarks?
Llama 2-7B scores 45.8% on MMLU, 16.7% on GSM8K and 77.2% on HellaSwag.
Sources: epoch, huggingface · paper · huggingface. Last updated 2026-11-22.