How to run Llama 3.1 8B locally
Llama 3.1 8B is a 8B Llama model with a 128K context and Llama-3.1 license. Here's the VRAM it needs, which GPUs run it, and how fast.
At a glance
Memory needed per quantization
| Quant | Quality | Weights | Min VRAM |
|---|---|---|---|
| IQ3_M | 90.0% | 3.7 GB | ~6 GB |
| Q4_K_M | 97.5% | 4.8 GB | ~7 GB |
| Q5_K_M | 99.0% | 5.7 GB | ~8 GB |
| Q6_K | 99.7% | 6.6 GB | ~9 GB |
| Q8_0 | 99.9% | 8.5 GB | ~11 GB |
| FP16 / BF16 | 100.0% | 16 GB | ~18 GB |
Which GPUs run Llama 3.1 8B
| GPU | Fit | Quant | Speed |
|---|---|---|---|
| GeForce RTX 4060 8GB · 272 GB/s | Perfect | Q4_K_M | 41.7 tok/s |
| GeForce RTX 3060 12GB 12GB · 360 GB/s | Perfect | Q6_K | 41.7 tok/s |
| GeForce RTX 4070 12GB · 504 GB/s | Perfect | Q8_0 | 45.8 tok/s |
| Intel Arc B580 12GB · 456 GB/s | Perfect | Q8_0 | 41.4 tok/s |
| GeForce RTX 4070 Ti SUPER 16GB · 672 GB/s | Perfect | Q8_0 | 61.1 tok/s |
| GeForce RTX 5070 12GB · 672 GB/s | Perfect | Q8_0 | 61.1 tok/s |
| GeForce RTX 4080 SUPER 16GB · 736 GB/s | Perfect | Q8_0 | 66.9 tok/s |
| Radeon RX 7900 XTX 24GB · 960 GB/s | Perfect | FP16 / BF16 | 47.6 tok/s |
| GeForce RTX 3090 24GB · 936 GB/s | Perfect | FP16 / BF16 | 46.4 tok/s |
| GeForce RTX 4090 24GB · 1008 GB/s | Perfect | FP16 / BF16 | 50 tok/s |
| GeForce RTX 5090 32GB · 1792 GB/s | Perfect | FP16 / BF16 | 88.9 tok/s |
| Apple M4 16GB · 120 GB/s | Recommended | IQ4_XS | 20.6 tok/s |
| Apple M4 Pro 24GB · 273 GB/s | Perfect | Q4_K_M | 41.8 tok/s |
| Apple M3 Max (16c) 48GB · 400 GB/s | Perfect | Q6_K | 46.3 tok/s |
| Apple M2 Ultra 64GB · 800 GB/s | Perfect | Q8_0 | 72.7 tok/s |
Frequently asked
How much VRAM does Llama 3.1 8B need?
At the recommended Q4_K_M quantization, Llama 3.1 8B needs about 4.8GB for weights plus KV cache and overhead — roughly 7GB of VRAM total for a usable context. Drop to a 3-bit quant to squeeze it smaller, or go FP16 (16GB) for full quality.
What GPU do I need to run Llama 3.1 8B?
The most affordable GPU that runs it well is the Intel Arc B580 (12GB) at Q8_0, delivering about 41.4 tokens/sec. Anything with 7GB+ of VRAM will run it comfortably.
Which quantization should I use for Llama 3.1 8B?
Q4_K_M is the default sweet spot (~97.5% of full quality). If it fits, Q5_K_M or Q6_K give near-lossless output; only drop below Q4 when you must fit it into limited VRAM.
Is Llama 3.1 8B good for chat?
Yes — Llama 3.1 8B scores 78/100 for chat, one of its strongest areas. License: Llama-3.1.