How much VRAM do I need to run an LLM?
Short answer: at the common Q4_K_M format, plan for about 0.7 GB of VRAM per billion parameters plus 0.5–4 GB for the conversation: an 8B model needs about 6 GB, a 14B model about 10 GB and a 27B model about 19 GB.
Quick table
| Model size | Q4_K_M | Q8_0 | BF16 |
|---|---|---|---|
| 3B | ≈2.5 GB | ≈4.0 GB | ≈7.1 GB |
| 8B | ≈5.8 GB | ≈9.9 GB | ≈18 GB |
| 14B | ≈10 GB | ≈17 GB | ≈32 GB |
| 27B | ≈19 GB | ≈33 GB | ≈60 GB |
| 32B | ≈22 GB | ≈38 GB | ≈71 GB |
| 70B | ≈49 GB | ≈84 GB | ≈156 GB |
| 120B | ≈82 GB | ≈142 GB | ≈266 GB |
The formula
Memory ≈ parameters (in billions) × bits per weight ÷ 8 × 1.1, plus the conversation cache. So at Q4 you need about 0.7 GB per billion parameters, at Q8 about 1.2 GB and at BF16 about 2.2 GB, plus 0.5–4 GB for an 8K-token conversation. Long documents need more.
What that means for common cards
- 8 GB (RTX 4060 (8 GB VRAM), Radeon RX 7600 (8 GB VRAM)): 7–9B models at Q4–Q6.
- 12 GB (RTX 3060 12 GB, Radeon RX 7700 XT (12 GB VRAM)): up to about 14B at Q4.
- 16 GB (RTX 4060 Ti 16 GB, Radeon RX 9070 XT (16 GB VRAM)): about 20B at Q4, e.g. gpt-oss-20b.
- 24 GB (RTX 4090 (24 GB VRAM), Radeon RX 7900 XTX (24 GB VRAM)): 27–32B at Q4.
- 32 GB (RTX 5090 (32 GB VRAM)): 27B at Q6 or a 35B mixture-of-experts model at Q5.
Mixture-of-experts models need memory for all their parameters, even though only a few are active per word.
Questions
How much VRAM for a 7B or 8B model?
About 6 GB at Q4_K_M and about 10 GB at Q8 by our estimate, so an 8 GB card runs it at Q4–Q6.
How much VRAM for a 70B model?
About 49 GB at Q4_K_M by our estimate: two 24 GB cards are not quite enough with a long conversation; a 64 GB Mac is.
Can I use system RAM if VRAM is not enough?
Yes, llama.cpp-based apps can keep part of the model in normal RAM, but answers get much slower.
Memory figures are our estimates (parameters × bits ÷ 8, plus overhead and an 8K-token cache; method). Facts about apps come from their official documentation, checked November 30, 2026.
More local-AI guides
- Q4_K_M vs Q5_K_M vs Q8: which quantization should you use?
- Ollama vs LM Studio vs llama.cpp
- How to run local LLMs on an AMD GPU (Windows and Linux)
- Best local LLM for coding, by how much memory you have
- How to run an LLM on a laptop without a graphics card
- Mac or NVIDIA graphics card for local AI?
Which LLM runs on my GPU, Mac or laptop? · All open-source models