Llama 3.1 8B
8B parameters · 128k context · llama3.1 · released 2024-07-18
chat
In short
Llama 3.1 8B is an open model from Meta with 8B parameters. At Q4_K_M, Llama 3.1 8B needs about 6 GB of memory at 8k context and 6 GB at 8k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in Germany that runs Llama 3.1 8B fully in memory at 8k context is the Intel Arc B570, 282 € at eBay, at about 25 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in Germany today
Intel Arc B570, new at eBay
Runs Llama 3.1 8B at Q6_K fully in memory at 8k context, about 25 tok/sest.
282 €
In stock, checked
What to run it on in Germany
Fully in memory at 8k context, priced at retailers today.
Cheapest
Intel Arc B57025tok/sest.Q6_K
282 €
Best value
NVIDIA GeForce RTX 3080 10GB61tok/sest.Q6_K
518 €
Fastest
NVIDIA GeForce RTX 5090145tok/sest.Q6_K
6.888 €
Mac
Mac mini M4 Pro 48GB23tok/sest.Q6_K
2.549 €
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
| Hardware | Quant | Fits | Decode | Price | tok/s per 1,000 |
|---|---|---|---|---|---|
| Intel Arc B570 | Q6_K | fits | 25 tok/s | 282 € | 88.0 |
| NVIDIA Tesla P40 | Q6_K | fits | 28 tok/s | 389 € | 72.0 |
| NVIDIA GeForce RTX 3060 12GB | Q6_K | fits | 29 tok/s | 415 € | 70.1 |
| NVIDIA GeForce RTX 5050 | Q5_K_M | fits | 29 tok/s | 428 € | 68.0 |
| NVIDIA GeForce RTX 5060 | Q5_K_M | fits | 41 tok/s | 469 € | 87.0 |
| Intel Arc B580 | Q6_K | fits | 30 tok/s | 498 € | 59.7 |
| NVIDIA GeForce RTX 3080 10GB | Q6_K | fits | 61 tok/s | 518 € | 118.6 |
| NVIDIA GeForce RTX 5060 Ti 8GB | Q5_K_M | fits | 41 tok/s | 520 € | 78.5 |
| NVIDIA GeForce RTX 4060 | Q5_K_M | fits | 25 tok/s | 556 € | 44.6 |
| NVIDIA GeForce RTX 4060 Ti 16GB | Q6_K | fits | 23 tok/s | 625 € | 37.3 |
| Intel Arc Pro B50 | Q6_K | fits | 15 tok/s | 648 € | 22.5 |
| AMD Radeon RX 9060 XT 16GB | Q6_K | fits | 23 tok/s | 650 € | 35.2 |
| Mac mini M4 16GB | Q6_K | fits | 10 tok/s | 690 € | 14.8 |
| NVIDIA GeForce RTX 4070 Super | Q6_K | fits | 41 tok/s | 700 € | 58.1 |
| Intel Arc A770 16GB | Q6_K | fits | 37 tok/s | 787 € | 46.4 |
| NVIDIA GeForce RTX 5060 Ti 16GB | Q6_K | fits | 36 tok/s | 799 € | 45.3 |
| AMD Radeon RX 9070 | Q6_K | fits | 46 tok/s | 807 € | 56.9 |
| AMD Radeon RX 7600 XT | Q6_K | fits | 21 tok/s | 833 € | 24.8 |
| NVIDIA GeForce RTX 4070 | Q6_K | fits | 41 tok/s | 843 € | 48.4 |
| NVIDIA GeForce RTX 5070 | Q6_K | fits | 54 tok/s | 877 € | 61.9 |
| NVIDIA GeForce RTX 4060 Ti 8GB | Q5_K_M | fits | 26 tok/s | 878 € | 29.8 |
| NVIDIA RTX PRO 2000 Blackwell | Q6_K | fits | 23 tok/s | 880 € | 26.5 |
| AMD Radeon RX 9070 XT | Q6_K | fits | 46 tok/s | 903 € | 50.8 |
| AMD Radeon RX 7900 XT | Q6_K | fits | 57 tok/s | 999 € | 57.5 |
| AMD Radeon RX 7800 XT | Q6_K | fits | 45 tok/s | 1.069 € | 41.8 |
| Intel Arc Pro B60 | Q6_K | fits | 30 tok/s | 1.184 € | 25.1 |
| Mac mini M4 32GB | Q6_K | fits | 10 tok/s | 1.330 € | 7.7 |
| NVIDIA GeForce RTX 5070 Ti | Q6_K | fits | 72 tok/s | 1.389 € | 52.1 |
| NVIDIA GeForce RTX 4070 Ti Super | Q6_K | fits | 54 tok/s | 1.500 € | 36.2 |
| AMD Radeon RX 7900 XTX | Q6_K | fits | 69 tok/s | 1.555 € | 44.2 |
| Intel Arc Pro B70 | Q6_K | fits | 40 tok/s | 1.749 € | 22.6 |
| NVIDIA GeForce RTX 5080 | Q6_K | fits | 78 tok/s | 1.889 € | 41.1 |
| AMD Radeon AI PRO R9700 | Q6_K | fits | 46 tok/s | 2.300 € | 20.0 |
| Mac mini M4 Pro 48GB | Q6_K | fits | 23 tok/s | 2.549 € | 9.1 |
| NVIDIA GeForce RTX 3090 | Q6_K | fits | 76 tok/s | 2.790 € | 27.1 |
| Mac mini M4 Pro 64GB | Q6_K | fits | 23 tok/s | 2.934 € | 7.9 |
| NVIDIA GeForce RTX 4080 Super | Q6_K | fits | 60 tok/s | 3.263 € | 18.2 |
| NVIDIA RTX PRO 4000 Blackwell | Q6_K | fits | 54 tok/s | 3.339 € | 16.3 |
| GMKtec EVO-X2 Ryzen AI Max+ 395 128GB | Q6_K | fits | 18 tok/s | 3.850 € | 4.8 |
| NVIDIA GeForce RTX 3090 Ti | Q6_K | fits | 82 tok/s | 4.284 € | 19.0 |
| Mac Studio M4 Max 64GB | Q6_K | fits | 46 tok/s | 4.299 € | 10.8 |
| NVIDIA GeForce RTX 4090 | Q6_K | fits | 82 tok/s | 4.790 € | 17.0 |
| NVIDIA RTX PRO 4500 Blackwell | Q6_K | fits | 72 tok/s | 4.878 € | 14.8 |
| Mac Studio M4 Max 128GB | Q6_K | fits | 46 tok/s | 5.499 € | 8.4 |
| Mac Studio M3 Ultra 96GB | Q6_K | fits | 69 tok/s | 5.999 € | 11.6 |
| NVIDIA GeForce RTX 5090 | Q6_K | fits | 145 tok/s | 6.888 € | 21.0 |
| ASUS Ascent GX10 128GB | Q6_K | fits | 22 tok/s | 7.306 € | 3.0 |
| Dell Pro Max with GB10 128GB | Q6_K | fits | 22 tok/s | 8.063 € | 2.7 |
| NVIDIA RTX PRO 5000 Blackwell 48GB | Q6_K | fits | 109 tok/s | 8.866 € | 12.2 |
| NVIDIA DGX Spark 128GB | Q6_K | fits | 22 tok/s | 9.091 € | 2.4 |
| Mac Studio M3 Ultra 256GB | Q6_K | fits | 69 tok/s | 15.555 € | 4.5 |
| Mac Studio M3 Ultra 512GB | Q6_K | fits | 69 tok/s | 17.995 € | 3.9 |
| NVIDIA RTX PRO 6000 Blackwell | Q6_K | fits | 145 tok/s | 18.327 € | 7.9 |
| Framework Desktop Ryzen AI Max+ 395 128GB | Q6_K | fits | 18 tok/s | – | – |
| Framework Desktop Ryzen AI Max+ 395 64GB | Q6_K | fits | 18 tok/s | – | – |
| NVIDIA RTX PRO 4000 Blackwell SFF Edition | Q6_K | fits | 35 tok/s | – | – |
| Minisforum MS-S1 Max Ryzen AI Max+ 395 128GB | Q6_K | fits | 18 tok/s | – | – |
| NVIDIA RTX 6000 Ada Generation | Q6_K | fits | 78 tok/s | – | – |
| NVIDIA RTX A6000 | Q6_K | fits | 62 tok/s | – | – |
| Lenovo ThinkStation PGX GB10 128GB | Q6_K | fits | 22 tok/s | – | – |
| NVIDIA RTX PRO 5000 Blackwell 72GB | Q6_K | fits | 109 tok/s | – | – |
| AMD Radeon PRO W7900 | Q6_K | fits | 62 tok/s | – | – |
| Beelink GTR9 Pro Ryzen AI Max+ 395 128GB | Q6_K | fits | 18 tok/s | – | – |
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| Q4_K_Mgguf | 4.6 GB | 6.3 GB | 9.5 GB | 13.7 GB | 22.0 GB |
| mlx-4bitmlx | 4.2 GB | 6.0 GB | 9.1 GB | 13.3 GB | 21.7 GB |
| Q5_K_Mgguf | 5.3 GB | 7.1 GB | 10.2 GB | 14.4 GB | 22.8 GB |
| Q6_Kgguf | 6.1 GB | 7.9 GB | 11.0 GB | 15.2 GB | 23.6 GB |
Run it
Copy a command for the runtime you use.
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/Llama-3.1-8B-Instruct-GGUF:Q4_K_M - LM Studio
lms get unsloth/Llama-3.1-8B-Instruct-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/Llama-3.1-8B-Instruct-GGUF:Q4_K_M
- Ollama
- mlx-4bit
- LM Studio
lms get mlx-community/Llama-3.1-8B-Instruct-4bit - MLX
mlx_lm.server --model mlx-community/Llama-3.1-8B-Instruct-4bit
- LM Studio
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/Llama-3.1-8B-Instruct-GGUF:Q5_K_M - LM Studio
lms get unsloth/Llama-3.1-8B-Instruct-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/Llama-3.1-8B-Instruct-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/unsloth/Llama-3.1-8B-Instruct-GGUF:Q6_K - LM Studio
lms get unsloth/Llama-3.1-8B-Instruct-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/Llama-3.1-8B-Instruct-GGUF:Q6_K
- Ollama
Questions
- How much VRAM does Llama 3.1 8B need?
- At Q4_K_M, Llama 3.1 8B needs about 6 GB of memory at 8k context and 6 GB at 8k, counting the weights, the KV cache and runtime buffers.
- What is the best GPU for running Llama 3.1 8B locally?
- The cheapest hardware in Germany that runs Llama 3.1 8B fully in memory at 8k context is the Intel Arc B570, 282 € at eBay, at about 25 tok/s (estimated). The best value is the NVIDIA GeForce RTX 3080 10GB (about 61 tok/s for 518 €). The fastest we price is the NVIDIA GeForce RTX 5090, at about 145 tok/s.
- What is the cheapest way to run Llama 3.1 8B in Germany today?
- The Intel Arc B570, 282 € new at eBay, in stock: it runs Llama 3.1 8B at Q6_K fully in memory at 8k context, at about 25 tok/s (estimated).
- Can I run Llama 3.1 8B on a 16 GB GPU?
- Yes: at Q6_K it fits fully in 16 GB at 8k context. On the NVIDIA GeForce RTX 5080 it runs at about 78 tok/s (estimated).
- Can I run Llama 3.1 8B on a 24 GB GPU?
- Yes: at Q6_K it fits fully in 24 GB at 8k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 82 tok/s (estimated).
- How do I run Llama 3.1 8B locally?
- With Ollama: ollama run hf.co/unsloth/Llama-3.1-8B-Instruct-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is Llama 3.1 8B released under?
- llama3.1, which allows commercial use.