Best Local LLMs for 24GB VRAM (RTX 3090 & RTX 4090)
24GB GDDR6X (~23.2 GiB usable, 936–1,008 GB/s) is the workhorse tier of local AI—running flagship 24B–32B dense models at 38–57 tok/s when paired with FP8 KV cache.
Pre-Loaded Interactive Calculator
Full LLM VRAM Fit →
Live Calculated Output
Primary Result
—
Pre-loaded from verified 2026 specs. Adjust any input live.
Recommended 2026 Models & Hardware Fit — 24GB 3090 / 4090
Verified binary GiB footprints and real-world local inference tradeoffs.
| Model / Hardware | Quant / Cost | Memory / Specs | Fit / Role | Expected Performance |
|---|---|---|---|---|
| Qwen3-32B | Q4_K_M (FP8 KV) | 22.36 GiB | Tight Fit (Safe w/ FP8 KV) | 37.9 tok/s (3090) / 40.8 (4090) |
| DeepSeek-R1 32B | Q4_K_M (FP8 KV) | 22.36 GiB | Tight Fit (Safe w/ FP8 KV) | 37.9 tok/s (3090) / 40.8 (4090) |
| Gemma 3 27B | Q4_K_M (FP8 KV) | 19.99 GiB | Fits Comfortably | 45.4 tok/s (3090) / 48.9 (4090) |
| Mistral Devstral 24B | Q6_K (6.56) | 22.09 GiB | Tight Fit (Q4_K_M 16.82 GiB) | 39.0 tok/s (3090) / 41.9 (4090) |
Engineering Tuning Notes & Formula Reference
- Always pass `--cache-type-k q8_0 --cache-type-v q8_0` (or vLLM FP8 KV) on 32B Q4_K_M models so total VRAM stays at 22.36 GiB instead of overflowing 23.2 GiB usable VRAM.
- Gemma 3 27B has 16 KV heads (2x the KV cache growth of Qwen3-32B), making FP8 KV mandatory past 8K context on 24GB GPUs.
weights_gib = (params_b * 1e9 * quant_bpw / 8) / 1073741824
kv_gib = (2 * layers * kv_heads * head_dim * context_len * batch_size * kv_bytes) / 1073741824
overhead_gib = (weights_gib + kv_gib) * (overhead_pct / 100) + 0.5
total_vram_gib = weights_gib + kv_gib + overhead_gib
Powered by LLM Inference VRAM & Hardware Fit Calculator with zero server roundtrips.
Frequently Asked Questions
Is a used RTX 3090 24GB nearly as fast as an RTX 4090 for local LLM inference?
For token generation decode speed, yes—936 GB/s vs 1,008 GB/s puts the 3090 within ~7% of the 4090! The 4090 pulls ahead primarily on prompt prefill (compute) and lower power draw.
Why does 32B Q4_K_M sometimes OOM on a 24GB GPU?
At 8K FP16 KV cache, 32.8B Q4_K_M uses ~23.48 GiB including CUDA overhead—just over ~23.2 GiB usable. Switching KV cache to FP8 (`q8_0`) drops it to 22.36 GiB.
Can a single 24GB card run Llama 3.3 70B?
Not natively at Q4 (47.95 GiB). You need either 2x 24GB GPUs (48GB) or heavy IQ2 quantization with steep quality loss.