Llama-2-7b-chat-hf
Llama-2-7b-chat-hf is an open-weight language model from Meta with 6.7B parameters. At 4-bit it needs about 4.8 GB of memory, so the smallest current device that fits it is the Mac mini M6 (16GB).
Overview
Includes room for an 8k context and runtime overhead. More context needs more memory.
Key information
- Lab
- Meta
- Released
- 13 Jul 2023
- Parameters
- 6.7B
- Type
- Language
- Context
- Unknown
- License
- Llama 2 license
- HF downloads, 30 days
- 126,817
- Repository
- meta-llama/Llama-2-7b-chat-hf
More from Meta
View allWill it run on your hardware?
How we estimate| Estimate or device | Memory |
|---|---|
| Q4 | 4.8 GB |
| Q8 | 8.5 GB |
| BF16 | 16 GB |
| RTX 5060 Ti 16 GB | 16 GB usable |
| RTX 5090 32 GB | 32 GB usable |
| DGX Spark 128 GB | 108.8 GB usable |
| Mac Studio M5 Ultra 256 GB | 192 GB usable |
Single-device memory estimate. Pick a device to update the On your device column.
36 GB usable memory
| Format | Memory needed | On your device | Example hardware |
|---|---|---|---|
| 4-bit (Q4) | ≈ 4.8 GB | Fits 13% | Mac mini M6 (16GB)16 GB memory |
| 8-bit (Q8) | ≈ 8.5 GB | Fits 24% | Mac mini M6 (16GB)16 GB memory |
| 16-bit (BF16) | ≈ 16 GB | Fits 44% | Arc Pro B6024 GB memory |
Fits means the estimate stays within 90% of usable memory. Tight is above 90% and up to 100%. Too big is above 100%. These are memory checks, not speed or compatibility tests.
Mac allowances are 66% of total RAM up to 36 GB, and 75% above. AI boxes allow 85% because their memory is shared with the operating system.
Where to run it
Through an API
No hosted API found.
More about this model
Frequently asked questions
How much memory does Llama-2-7b-chat-hf need? At an 8k context, about 4.8 GB at 4-bit, 8.5 GB at 8-bit and 16 GB at 16-bit (BF16). A longer context needs more.
Can I run Llama-2-7b-chat-hf on a Mac? The smallest current Mac that fits the 4-bit estimate of 4.8 GB is the Mac mini M6 (16GB). We have not found a trusted MLX or GGUF build yet.
Does the full context fit? We do not have a context length for this model. Our memory estimates use 8k, so long prompts need more memory than shown.
What does it cost through an API? We did not find a hosted API for this model.
License in plain English
Llama 2 license. Meta's community license for Llama. It allows commercial use with conditions, including an acceptable use policy and extra terms for very large services. This summary is not legal advice.
OMHQ RigBench
Not yet tested. We show no speed or quality score without a measurement.
Revision history and sources
Last updated . Sources:Hugging Face model card.