Llama 3.1 8B
8B parameters · 128k context · llama3.1 · released 2024-07-18
chat
What to run it on in the US
Fully in memory at 128k context, priced at retailers today.
Cheapest
AMD Radeon RX 7900 XTX23tok/sest.Q5_K_M
$1,533
Best value
NVIDIA GeForce RTX 309025tok/sest.Q5_K_M
$1,660
Fastest
NVIDIA GeForce RTX 509047tok/sest.Q6_K
$7,200
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 Pro B60 | Q5_K_M | fits | 10 tok/s | $650 | 15.4 |
| AMD Radeon RX 7900 XTX | Q5_K_M | fits | 23 tok/s | $1,533 | 15.0 |
| NVIDIA GeForce RTX 3090 | Q5_K_M | fits | 25 tok/s | $1,660 | 15.2 |
| AMD Radeon AI PRO R9700 | Q6_K | fits | 15 tok/s | $1,700 | 8.7 |
| NVIDIA GeForce RTX 3090 Ti | Q5_K_M | fits | 27 tok/s | $2,060 | 13.3 |
| NVIDIA GeForce RTX 4090 | Q5_K_M | fits | 27 tok/s | $3,280 | 8.3 |
| NVIDIA GeForce RTX 5090 | Q6_K | fits | 47 tok/s | $7,200 | 6.5 |
| Mac Studio M4 Max 128GB | Q6_K | fits | 15 tok/s | – | – |
| Mac mini M4 Pro 64GB | Q6_K | fits | 8 tok/s | – | – |
| Framework Desktop Ryzen AI Max+ 395 128GB | Q6_K | fits | 6 tok/s | – | – |
| Mac Studio M3 Ultra 512GB | Q6_K | fits | 22 tok/s | – | – |
| NVIDIA DGX Spark 128GB | Q6_K | fits | 7 tok/s | – | – |
| GMKtec EVO-X2 Ryzen AI Max+ 395 128GB | Q6_K | fits | 6 tok/s | – | – |
| Mac Studio M3 Ultra 256GB | Q6_K | fits | 22 tok/s | – | – |
| Mac mini M4 Pro 48GB | Q6_K | fits | 8 tok/s | – | – |
| Mac Studio M4 Max 64GB | Q6_K | fits | 15 tok/s | – | – |
| Mac Studio M3 Ultra 96GB | Q6_K | fits | 22 tok/s | – | – |
| NVIDIA RTX PRO 6000 Blackwell | Q6_K | fits | 47 tok/s | – | – |
| ASUS Ascent GX10 128GB | Q6_K | fits | 7 tok/s | – | – |
| Framework Desktop Ryzen AI Max+ 395 64GB | Q6_K | fits | 6 tok/s | – | – |
| NVIDIA Tesla P40 | Q5_K_M | fits | 9 tok/s | – | – |
| NVIDIA GeForce RTX 3060 12GB | Q4_K_M | offload | 4 tok/s | $360 | 10.6 |
| Intel Arc B580 | Q4_K_M | offload | 4 tok/s | $370 | 10.3 |
| Intel Arc A770 16GB | Q4_K_M | offload | 5 tok/s | $400 | 13.0 |
| NVIDIA GeForce RTX 3080 10GB | Q4_K_M | offload | 4 tok/s | $469 | 7.9 |
| AMD Radeon RX 9060 XT 16GB | Q4_K_M | offload | 5 tok/s | $543 | 8.3 |
| AMD Radeon RX 7800 XT | Q4_K_M | offload | 6 tok/s | $599 | 9.2 |
| AMD Radeon RX 7600 XT | Q4_K_M | offload | 4 tok/s | $695 | 6.2 |
| NVIDIA GeForce RTX 4070 Super | Q4_K_M | offload | 4 tok/s | $699 | 5.9 |
| NVIDIA GeForce RTX 4060 Ti 16GB | Q4_K_M | offload | 5 tok/s | $770 | 6.0 |
| NVIDIA GeForce RTX 5060 Ti 16GB | Q4_K_M | offload | 5 tok/s | $772 | 7.0 |
| NVIDIA GeForce RTX 5070 | Q4_K_M | offload | 4 tok/s | $776 | 5.4 |
| AMD Radeon RX 7900 XT | Q4_K_M | offload | 10 tok/s | $800 | 12.3 |
| AMD Radeon RX 9070 XT | Q4_K_M | offload | 6 tok/s | $815 | 6.9 |
| NVIDIA GeForce RTX 4070 Ti Super | Q4_K_M | offload | 6 tok/s | $1,013 | 5.8 |
| NVIDIA GeForce RTX 5070 Ti | Q4_K_M | offload | 6 tok/s | $1,144 | 5.5 |
| NVIDIA GeForce RTX 4080 Super | Q4_K_M | offload | 6 tok/s | $1,199 | 5.0 |
| NVIDIA GeForce RTX 5080 | Q4_K_M | offload | 6 tok/s | $1,738 | 3.6 |
2 other cards and machines we price cannot hold it at this context.
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