What LLMs can I run on RTX 4090 (24GB)?

✅ Biggest comfortable fit: GLM-4.7-Flash (31.2B) at ~4-bit — recommended max ~9K context

Computed with the open FitLLM engine — accurate per-layer KV-cache modeling, not a naive estimate. Updated 2026-10-29.

Every row is computed by the open FitLLM engine from the model's official config.json — sorted so models that fit come first, biggest first. ~4-bit ≈ Q4_K_M (GGUF) / 4-bit (MLX) · ~8-bit ≈ Q8_0 / 8-bit · KV cache F16 at 8K context. Lower quants free memory at some output-quality cost.

Every tracked model on the RTX 4090, ranked

ModelParams~4-bit~8-bit
GLM-4.7-Flash31.2B 3B act✅ rec. max 9K❌ won't fit
Gemma 4 26b A4B25.5B 4B act✅ rec. max 52K❌ won't fit
gpt-oss-20b20.9B 3.6B act✅ rec. max 128K✅ rec. max 128K
Gemma 4 12b11.95B✅ rec. max 255K✅ rec. max 147K
Llama-3.1-8B-Instruct8B✅ rec. max 89K✅ rec. max 68K
Llama-3.2-3B-Instruct3.2B✅ rec. max 119K✅ rec. max 110K
MiniCPM5-1B1.081B✅ rec. max 128K✅ rec. max 128K
Qwen 3.8 27B27.781B⚠️ rec. max 7K❌ won't fit
Qwen 3.6 27B27.2B⚠️ rec. max 7K❌ won't fit
Qwen 3.8 2.4T-A95B2446.183B 95B act❌ won't fit❌ won't fit
GLM-5.2753B 40B act❌ won't fit❌ won't fit
Hy3298.8B 21B act❌ won't fit❌ won't fit
Laguna S 2.1117.562B 8B act❌ won't fit❌ won't fit
gpt-oss-120b116.8B 5.1B act❌ won't fit❌ won't fit
Qwen 3.6 35B-A3B35B 3B act❌ won't fit❌ won't fit
Qwen-AgentWorld-35B-A3B34.7B 3B act❌ won't fit❌ won't fit
Laguna XS 2.133.443B 3B act❌ limit 7K, no headroom❌ won't fit
Gemma 4 31b30.7B❌ limit 5K, no headroom❌ won't fit

rec. max = recommended max, the longest context that keeps headroom (GPU 5% · Mac 20%) · limit = the longest that fits at all. Click a model for its full memory breakdown on this hardware.

▶ Open the calculator with GLM-4.7-Flash on the RTX 4090

Why this list is different

Most "what can I run" guides use a uniform KV formula that ignores sliding-window attention, hybrid/linear layers and MLA compressed KV. The estimates above model those architecture-specific paths and publish reproducible receipts. See the methodology.

About FitLLM: a free, open-source calculator that checks whether a local LLM fits your GPU or Mac — no ads, no login, no affiliate links (about). All numbers are computed by the open-source fitllm-engine v2.22.0 (MIT, revision 5aa318a) from official model config.json values — reproduce or audit them yourself; how the math works. Estimates; real usage varies with runtime (llama.cpp / MLX / Ollama), driver and display. Found a mismatch? Report it. · FitLLM home