Can I run Llama 3.1 8B at home?
8.03 billion parameters. At Q4 it needs about 6.5 GB of GPU memory; the cheapest tracked hardware that fits is Tesla P100 16GB (used) at about $267 today.
Needs about 6.5 GB
Tesla P100 16GB (used)
The usual choice for running at home. Small quality loss.
Needs about 9.9 GB
Tesla P100 16GB (used)
Close to full quality, about twice the memory of Q4.
Needs about 17.0 GB
Tesla P40 (used)
Full size, as released. Mostly for fine-tuning and research.
Hardware that fits
Single GPUs and Macs first, cheapest first, then multi-GPU setups (slower, more setup). Today's typical prices. ✓ means the estimate fits in usable memory. Extra cards that wouldn't fit anything more are left out.
| Hardware | Price today | Q4 | Q8 | FP16 | Price check | |
|---|---|---|---|---|---|---|
| Tesla P100 16GB (used) 16 GB VRAM · 15.5 GB usable | $267 | ✓ fits | ✓ fits | ✗ | Still learning this price | View on eBay |
| Tesla P40 (used) 24 GB VRAM · 23.5 GB usable | $318 | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| RTX 3060 12GB (used) 12 GB VRAM · 11.5 GB usable | $340 | ✓ fits | ✓ fits | ✗ | Still learning this price | View on eBay |
| RTX 2080 Ti 11GB (used) 11 GB VRAM · 10.5 GB usable | $370 | ✓ fits | ✓ fits | ✗ | Still learning this price | View on eBay |
| RTX 3080 10GB (used) 10 GB VRAM · 9.5 GB usable | $500 | ✓ fits | ✗ | ✗ | Still learning this price | View on eBay |
| Tesla T4 16GB (used) 16 GB VRAM · 15.5 GB usable | $725 | ✓ fits | ✓ fits | ✗ | Still learning this price | View on eBay |
| Mac mini M4 16GB 16 GB unified · 10.7 GB usable | $735 | ✓ fits | ✓ fits | ✗ | Still learning this price | View on eBay |
| Radeon RX 7900 XT 20GB 20 GB VRAM · 19.5 GB usable | $850 | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| RTX 3090 (used) 24 GB VRAM · 23.5 GB usable | $930 | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| RTX 4090 (used) 24 GB VRAM · 23.5 GB usable | $3,199 | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| RTX A6000 48GB (used) 48 GB VRAM · 47.5 GB usable | $4,350 | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| 2× Nvidia Quadro P2000 5GB (used) 10 GB VRAM · 9.0 GB usable | $180 $89.99 each | ✓ fits | ✗ | ✗ | Still learning this price | View on eBay |
| 3× Nvidia Quadro P2000 5GB (used) 15 GB VRAM · 13.5 GB usable | $270 $89.99 each | ✓ fits | ✓ fits | ✗ | Still learning this price | View on eBay |
| 2× Nvidia T400 4GB 8 GB VRAM · 7.0 GB usable | $350 $175 each | ✓ fits | ✗ | ✗ | Still learning this price | View on eBay |
| 4× Nvidia Quadro P2000 5GB (used) 20 GB VRAM · 18.0 GB usable | $360 $89.99 each | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| 3× Nvidia T400 4GB 12 GB VRAM · 10.5 GB usable | $525 $175 each | ✓ fits | ✓ fits | ✗ | Still learning this price | View on eBay |
| 2× Tesla P100 16GB (used) 32 GB VRAM · 31.0 GB usable | $534 $267 each | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| 2× RTX 3060 12GB (used) 24 GB VRAM · 23.0 GB usable | $680 $340 each | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| 2× RTX 2080 Ti 11GB (used) 22 GB VRAM · 21.0 GB usable | $740 $370 each | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| 2× RTX 3080 10GB (used) 20 GB VRAM · 19.0 GB usable | $1,000 $500 each | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| 2× Tesla T4 16GB (used) 32 GB VRAM · 31.0 GB usable | $1,450 $725 each | ✓ fits | ✓ fits | ✓ fits | Still learning this price | View on eBay |
| Mac Studio M3 Ultra 256GB 256 GB unified · 192 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| Mac Studio M2 Ultra 192GB (used) 192 GB unified · 144 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| Mac Studio M4 Max 128GB 128 GB unified · 96.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| Mac mini M4 Pro 64GB 64 GB unified · 48.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| RTX 5090 32 GB VRAM · 31.5 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| Radeon Instinct MI50 32GB (used) 32 GB VRAM · 31.5 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| Radeon RX 7900 XTX (used) 24 GB VRAM · 23.5 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| RTX A5000 24GB (used) 24 GB VRAM · 23.5 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| RTX 3090 Ti (used) 24 GB VRAM · 23.5 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| RTX 4060 Ti 16GB 16 GB VRAM · 15.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| RTX 4070 Ti Super 16GB 16 GB VRAM · 15.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| RTX 5070 Ti 16GB 16 GB VRAM · 15.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| RTX 5080 16GB 16 GB VRAM · 15.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| Radeon RX 9070 XT 16 GB VRAM · 15.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| RTX A4000 16GB (used) 16 GB VRAM · 15.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| RTX 4080 Super 16GB 16 GB VRAM · 15.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| Intel Arc A770 16GB 16 GB VRAM · 15.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| RTX 4070 Super 12 GB VRAM · 11.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| RTX 5070 12GB 12 GB VRAM · 11.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| Intel Arc B580 12GB 12 GB VRAM · 11.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| RTX 4060 8GB 8 GB VRAM · 7.5 GB usable | … | ✓ fits | ✗ | ✗ | No price yet | |
| 2× RTX 4060 Ti 16GB 32 GB VRAM · 31.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× RTX 4070 Ti Super 16GB 32 GB VRAM · 31.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× RTX 5070 Ti 16GB 32 GB VRAM · 31.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× RTX 5080 16GB 32 GB VRAM · 31.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× Radeon RX 9070 XT 32 GB VRAM · 31.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× RTX A4000 16GB (used) 32 GB VRAM · 31.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× RTX 4080 Super 16GB 32 GB VRAM · 31.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× Intel Arc A770 16GB 32 GB VRAM · 31.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× RTX 4070 Super 24 GB VRAM · 23.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× RTX 5070 12GB 24 GB VRAM · 23.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 2× Intel Arc B580 12GB 24 GB VRAM · 23.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 3× RTX 4060 8GB 24 GB VRAM · 22.5 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 4× Intel Arc A380 6GB 24 GB VRAM · 22.0 GB usable | … | ✓ fits | ✓ fits | ✓ fits | No price yet | |
| 3× Intel Arc A380 6GB 18 GB VRAM · 16.5 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| 2× RTX 4060 8GB 16 GB VRAM · 15.0 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet | |
| 2× Intel Arc A380 6GB 12 GB VRAM · 11.0 GB usable | … | ✓ fits | ✓ fits | ✗ | No price yet |
Memory needed
Estimate for each quantization. Model numbers from its published config.
| Quantization | Weights | KV cache (8,192 tokens) | Overhead | Total |
|---|---|---|---|---|
| Q4 (Q4_K_M) | 4.5 GB | 1.0 GB | 1.0 GB | 6.5 GB |
| Q8 (Q8_0) | 7.9 GB | 1.0 GB | 1.0 GB | 9.9 GB |
| FP16 (unquantized) | 15.0 GB | 1.0 GB | 1.0 GB | 17.0 GB |
Longer chats need more memory
| Quantization | 4K context | 8K context | 32K context |
|---|---|---|---|
| Q4 (Q4_K_M) | 6.0 GB | 6.5 GB | 9.5 GB |
| Q8 (Q8_0) | 9.4 GB | 9.9 GB | 12.9 GB |
| FP16 (unquantized) | 16.5 GB | 17.0 GB | 20.0 GB |
Total memory at each chat length (tokens the model keeps in view). The cards above use 8,192. Pick a different length in the build planner.
How we estimate memory
This is an estimate, worked out by code from each model's published size. Real use varies by app (llama.cpp, Ollama, LM Studio, vLLM), settings and context length.
- Weights = parameters × bits per weight ÷ 8.
- KV cache (the model's short-term memory of your chat) = 2 × layers × KV heads × head size × 8,192 tokens of context × 2 bytes. Longer chats need more.
- Overhead = 1 GB for the app and its working buffers.
- Usable memory: each GPU keeps 0.5 GB back for the driver. On a Mac, macOS lets the GPU use about 67% of memory on models with 36 GB or less and about 75% on bigger ones.
- Several GPUs: apps like llama.cpp and vLLM can split a model across cards. You need a motherboard, power supply and case that can hold them, which isn't in the price.
Worked example, Llama 3.1 8B at Q4: 8.03 billion weights × 4.85 bits ÷ 8 = 4.5 GB of weights. KV cache: 2 × 32 layers × 8 KV heads × 128 × 8,192 tokens × 2 bytes = 1.0 GB. Plus 1 GB overhead = about 6.5 GB.
GB here are the same gigabytes GPU makers use for VRAM. Prices are today's typical price from our tracker (for eBay, the median of matching Buy It Now listings); a multi-GPU price is that times the number of cards. We don't show speed (tokens per second) because we don't have benchmark numbers we can stand behind.