Best LLMs for 24GB VRAM
22 of 30 models fit on a 24GB card. The biggest with real headroom is Gemma 4 31B at Q4_K_M, though Cohere Command R 35B (35.0B) will also load if you keep the context short. Below is every model scored against the ~23GB a 24GB card realistically gives you, with the best quantization each one can use.
Every model, scored for 24GB
Showing the best quantization each model can use at this capacity — higher precision first, dropping to Q4_K_M only where it has to.
| Model | Best quant | Needs | Headroom | Fit |
|---|---|---|---|---|
| Gemma 4 31B31.3B · Google DeepMind | Q4_K_M | 22.1 GB | +0.9 GB | Comfortable |
| Qwen3-Coder 30B-A3B Instruct30.5B (3.3B active) · Alibaba Qwen | Q4_K_M | 21.6 GB | +1.4 GB | Comfortable |
| Qwen3.8 27B27.8B · Alibaba Qwen | Q4_K_M | 20 GB | +3 GB | Comfortable |
| Google Gemma 2 27B27.2B · Google DeepMind | Q4_K_M | 20 GB | +3 GB | Comfortable |
| Gemma 4 26B-A4B (MoE)26.5B (3.8B active) · Google DeepMind | Q4_K_M | 19.2 GB | +3.8 GB | Comfortable |
| Mistral Small 3 24B24.0B · Mistral AI | Q4_K_M | 18 GB | +5 GB | Comfortable |
| Mistral Codestral 22B22.2B · Mistral AI | Q4_K_M | 16 GB | +7 GB | Comfortable |
| OpenAI gpt-oss-20b20.9B (3.6B active) · OpenAI | Q4_K_M | 17.1 GB | +5.9 GB | Comfortable |
| DeepSeek R1 Distill Qwen 14B14.8B · DeepSeek AI | Q8_0 | 20 GB | +3 GB | Comfortable |
| Qwen 2.5 Coder 14B Instruct14.7B · Alibaba Cloud | Q8_0 | 20 GB | +3 GB | Comfortable |
| Microsoft Phi-4 14B14.7B · Microsoft | Q8_0 | 20 GB | +3 GB | Comfortable |
| Mistral NeMo 12B Instruct12.2B · Mistral AI & NVIDIA | Q8_0 | 16 GB | +7 GB | Comfortable |
| Gemma 4 12B12B · Google DeepMind | Q8_0 | 17.1 GB | +5.9 GB | Comfortable |
| Google Gemma 2 9B9.24B · Google DeepMind | Q8_0 | 14 GB | +9 GB | Comfortable |
| Qwen3 8B8.2B · Alibaba Qwen | BF16 / FP16 | 23 GB | +0 GB | Comfortable |
| Llama 3.1 8B Instruct8.03B · Meta AI | BF16 / FP16 | 20 GB | +3 GB | Comfortable |
| DeepSeek R1 Distill Llama 8B8.0B · DeepSeek AI | BF16 / FP16 | 20 GB | +3 GB | Comfortable |
| Qwen 2.5 Coder 7B Instruct7.6B · Alibaba Cloud | BF16 / FP16 | 20 GB | +3 GB | Comfortable |
| Meta Llama 3.2 3B Instruct3.21B · Meta AI | BF16 / FP16 | 8 GB | +15 GB | Comfortable |
| Cohere Command R 35B35.0B · Cohere | Q4_K_M | 24 GB | — | Tight fit |
| DeepSeek R1 Distill Qwen 32B32.5B · DeepSeek AI | Q4_K_M | 24 GB | — | Tight fit |
| Qwen 2.5 Coder 32B Instruct32.5B · Alibaba Cloud | Q4_K_M | 24 GB | — | Tight fit |
| DeepSeek V3 671B MoE671B (37B active) · DeepSeek AI | — | — | — | Will not fit |
| DeepSeek V4-Flash284B (13B active) · DeepSeek AI | — | — | — | Will not fit |
| OpenAI gpt-oss-120b116.8B (5.1B active) · OpenAI | — | — | — | Will not fit |
| Llama 4 Scout (17B active, 16 experts)109B (17B active) · Meta | — | — | — | Will not fit |
| Qwen 2.5 72B Instruct72.7B · Alibaba Cloud | — | — | — | Will not fit |
| DeepSeek R1 Distill Llama 70B70.6B · DeepSeek AI | — | — | — | Will not fit |
| Llama 3.3 70B Instruct70.6B · Meta AI | — | — | — | Will not fit |
| Qwen3.6 35B-A3B (MoE)36B (3B active) · Alibaba Qwen | — | — | — | Will not fit |
“Needs” is the recommended memory for that quantization, which leaves room for a working context. A 24GB card is treated as ~23GB usable, because the display, framework and CUDA or Metal context reserve roughly 1GB before your model loads.
Machines with about 24GB
We profile 4 machines at roughly this capacity. Their memory bandwidth ranges from 150 to 1008 GB/s — and since generation speed is bandwidth-bound, two machines with the same 24GB can differ by an order of magnitude in tokens per second. Capacity decides what fits; bandwidth decides how fast.
Image generation on 24GB
11 open image models run at 1024×1024 on a card this size — the best being FLUX.1 [dev] at FP8, peaking near 19.8GB. Diffusion pipelines load a large text encoder alongside the image model, so offloading it matters more here than it does for language models.
Size a diffusion model for 24GB →24GB VRAM: common questions
- What is the best LLM for 24GB of VRAM?
- Gemma 4 31B (31.3B) is the largest model with comfortable headroom, at Q4_K_M, needing about 22.1GB against the ~23GB usable on a 24GB card. Cohere Command R 35B (35.0B) is larger and will still load, but only as a tight fit with a short context. 22 of the 30 models in our directory fit at 24GB in some form.
- Why is only about 23GB of a 24GB card usable?
- The display output, the inference framework and the CUDA or Metal context all reserve memory before your model loads. Roughly 1GB is a realistic reservation, so a 24GB card gives you about 23GB to work with. Planning to the full 24GB is the most common reason a model that "should" fit fails to load.
- Should I run a bigger model at Q4 or a smaller one at Q8?
- Usually the bigger model at Q4_K_M. Above about 4 bits per weight, parameter count matters more than precision, so a larger model quantized harder generally beats a smaller model kept at full precision. Below Q4 that stops being true and quality falls away quickly.
- How fast will these run on 24GB?
- VRAM capacity decides what fits; memory bandwidth decides how fast it runs, and that varies by device. Among the 4 machines we profile at this capacity, bandwidth ranges from 150 to 1008 GB/s — which can mean an order-of-magnitude difference in tokens per second for the same model. The hardware matrix gives an estimate per device.
- Can I generate images with 24GB?
- Yes — 11 open image models run at 1024×1024 on a card this size, the best being FLUX.1 [dev] at FP8. Diffusion models load a large text encoder alongside the image model, so offloading that encoder to CPU matters more than it does for LLMs.
Guides behind these numbers
How memory requirements are calculated, and which cards give you this much.
- How Much RAM and VRAM Do You Need to Run Local LLMs?Model weights, KV cache and OS overhead, tier by tier.Read the guide
- Quantization Guide: Q4_K_M vs Q8_0 vs FP8What each quant level costs you in memory and quality.Read the guide
- Best Budget GPUs for Local LLMs16GB cards, used RTX 3090s and current street prices.Read the guide