Fits comfortably
Running Llama 3.1 8B Instruct on NVIDIA GeForce RTX 4090
NVIDIA GeForce RTX 4090 runs Llama 3.1 8B Instruct comfortably at FP16 with 6 GB of headroom for context.
Model size
8B params
Llama 3.1 8B Instruct →Memory available
Recommended quant
FP16
Highest quality that fits
Quick start with Ollama
1. Install
ollama pull llama3.1:8b2. Run
ollama run llama3.1:8bDefault quant in Ollama is Q4_K_M. To use a different quant, append it: llama3.1:8b-q5_K_M.
Variants and what fits
| Quantization | File size | VRAM required | Fits on NVIDIA GeForce RTX 4090? |
|---|---|---|---|
| Q4_K_M | 4.9 GB | 6 GB | Yes |
| Q5_K_M | 5.7 GB | 7 GB | Yes |
| Q8_0 | 8.5 GB | 10 GB | Yes |
| FP16 | 16.1 GB | 18 GB | Yes |
Real benchmarks
| Tool | Quant | Context | tok/s | VRAM used | Source |
|---|---|---|---|---|---|
| Ollama | Q4_K_M | 8,192 | 104.7 tok/s | 5.4 GB | owner |
Frequently asked
Can NVIDIA GeForce RTX 4090 run Llama 3.1 8B Instruct?
NVIDIA GeForce RTX 4090 runs Llama 3.1 8B Instruct comfortably at FP16 with 6 GB of headroom for context.
What quantization should I use?
FP16 is the highest-quality variant of Llama 3.1 8B Instruct that fits in 24 GB VRAM. Lower-bit quants will be smaller but lose some quality.
How fast will it be?
Measured at 104.7 tok/s on this combination in our testing.
See also: Llama 3.1 8B Instruct, NVIDIA GeForce RTX 4090, all benchmarks.
Reviewed by RunLocalAI Editorial. See our editorial policy.