What can NVIDIA GeForce RTX 4090 run for coding?

Build: RTX 4090 + Ryzen 9 7950X + 64GB DDR5

Memory: 24 GB VRAM + 64 GB system RAM
Runner: llama.cpp / Ollama (CUDA)

Runs comfortably
143 models

Ranked by fit for coding use case + predicted speed. Click a row for VRAM breakdown.

#1CodeGemma 7B
7B
gemma
Commercial OK
Quant: Q4_K_MContext: 8,192VRAM: 9.7 GBHeadroom: 14.3 GBTTFT: fast
ollama run codegemma:7b
155
tok/s
Estimated
Weights
4.20 GB
KV cache
3.50 GB
Activations
0.22 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~217 ms (fast)
#2DeepSeek Coder V2 Lite (16B)
16B
deepseek
Commercial OK
Quant: Q4_K_MContext: 8,192VRAM: 19.8 GBHeadroom: 4.2 GBTTFT: fast
ollama run deepseek-coder-v2:16b
68
tok/s
Estimated
Weights
9.50 GB
KV cache
8.00 GB
Activations
0.48 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~496 ms (fast)
#3Codestral 22B
22B
mistral
Quant: Q4_K_MContext: 2,048VRAM: 18.2 GBHeadroom: 5.8 GBTTFT: noticeable
ollama run codestral:22b
49
tok/s
Estimated
Weights
13.00 GB
KV cache
2.75 GB
Activations
0.65 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~682 ms (noticeable)
#4Qwen 3 14B
14B
qwen
Commercial OK
Quant: Q4_K_MContext: 8,192VRAM: 17.6 GBHeadroom: 6.4 GBTTFT: fast
ollama run qwen3:14b
78
tok/s
Estimated
Weights
8.40 GB
KV cache
7.00 GB
Activations
0.43 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~434 ms (fast)
#5Qwen 2.5 14B Instruct
14B
qwen
Commercial OK
Quant: Q5_K_MContext: 8,192VRAM: 19.8 GBHeadroom: 4.2 GBTTFT: fast
ollama run qwen2.5:14b
68
tok/s
Estimated
Weights
10.50 GB
KV cache
7.00 GB
Activations
0.53 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~434 ms (fast)
#6Qwen 2.5 7B Instruct
7B
qwen
Commercial OK
Quant: Q8_0Context: 8,192VRAM: 10.8 GBHeadroom: 13.2 GBTTFT: fast
ollama run qwen2.5:7b
88
tok/s
Estimated
Weights
8.10 GB
KV cache
0.47 GB
Activations
0.41 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~217 ms (fast)
#7Qwen 3 8B
8B
qwen
Commercial OK
Quant: Q8_0Context: 8,192VRAM: 14.4 GBHeadroom: 9.6 GBTTFT: fast
ollama run qwen3:8b
77
tok/s
Estimated
Weights
8.20 GB
KV cache
4.00 GB
Activations
0.42 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~248 ms (fast)
#8Mistral Small 3 24B
24B
mistral
Commercial OK
Quant: Q4_K_MContext: 2,048VRAM: 19.5 GBHeadroom: 4.5 GBTTFT: noticeable
ollama run mistral-small:24b
45
tok/s
Estimated
Weights
14.00 GB
KV cache
3.00 GB
Activations
0.70 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~744 ms (noticeable)
#9Llama 3.1 8B Instruct
8B
llama
Commercial OK
Quant: FP16Context: 8,192VRAM: 19.8 GBHeadroom: 4.2 GBTTFT: fast
ollama run llama3.1:8b
41
tok/s
Estimated
Weights
16.10 GB
KV cache
1.07 GB
Activations
0.81 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~248 ms (fast)
#10Gervásio 8B PTPT
8B
llama
Commercial OK
Quant: Q4_K_MContext: 4,096VRAM: 8.4 GBHeadroom: 15.6 GBTTFT: fast
136
tok/s
Estimated
Weights
4.40 GB
KV cache
2.00 GB
Activations
0.22 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~248 ms (fast)
#11StarCoder 2 7B
7B
other
Commercial OK
Quant: Q4_K_MContext: 8,192VRAM: 9.9 GBHeadroom: 14.1 GBTTFT: fast
155
tok/s
Estimated
Weights
4.40 GB
KV cache
3.50 GB
Activations
0.23 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~217 ms (fast)
#12StarCoder 2 3B
3B
other
Commercial OK
Quant: Q4_K_MContext: 8,192VRAM: 5.4 GBHeadroom: 18.6 GBTTFT: instant
362
tok/s
Estimated
Weights
2.00 GB
KV cache
1.50 GB
Activations
0.11 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~93 ms (instant)

Runs with tradeoffs
73 models

Tight VRAM, partial CPU offload, or context-limited.

Qwen 2.5 Coder 32B Instruct
32B
qwen
Commercial OK
Quant: Q4_K_MContext: 8,192VRAM: 23.9 GBHeadroom: 0.1 GBTTFT: noticeable
  • Tight VRAM fit — only 0.1 GB headroom left for context growth
ollama run qwen2.5-coder:32b
34
tok/s
Estimated
Weights
19.00 GB
KV cache
2.15 GB
Activations
0.96 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~992 ms (noticeable)
Muse Glimmer 30B
30B
other
Commercial OK
Quant: Q4_K_MContext: 8,192VRAM: 20.4 GBHeadroom: 3.6 GBTTFT: noticeable
  • Tight VRAM fit — only 3.6 GB headroom left for context growth
ollama run muse-glimmer
36
tok/s
Estimated
Weights
17.00 GB
KV cache
0.71 GB
Activations
0.86 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~930 ms (noticeable)
Qwen 3 30B-A3B
30B
qwen
Commercial OK
Quant: Q8_0Context: 8,192VRAM: 50.4 GBHeadroom: 12.0 GBTTFT: noticeable
  • Partial CPU offload: ~52% of layers run on CPU
  • CPU is the bottleneck — upgrading RAM bandwidth helps more than VRAM here
ollama run qwen3:30b
2
tok/s
Estimated
Weights
32.00 GB
KV cache
15.00 GB
Activations
1.61 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~930 ms (noticeable)
Gemma 4 31B Dense
31B
gemma
Commercial OK
Quant: Q8_0Context: 8,192VRAM: 52.0 GBHeadroom: 10.4 GBTTFT: noticeable
  • Partial CPU offload: ~54% of layers run on CPU
  • CPU is the bottleneck — upgrading RAM bandwidth helps more than VRAM here
ollama run gemma4:31b
2
tok/s
Estimated
Weights
33.00 GB
KV cache
15.50 GB
Activations
1.66 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~961 ms (noticeable)
Qwen 3 32B
32B
qwen
Commercial OK
Quant: Q8_0Context: 8,192VRAM: 53.5 GBHeadroom: 8.9 GBTTFT: noticeable
  • Partial CPU offload: ~55% of layers run on CPU
  • CPU is the bottleneck — upgrading RAM bandwidth helps more than VRAM here
ollama run qwen3:32b
2
tok/s
Estimated
Weights
34.00 GB
KV cache
16.00 GB
Activations
1.71 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~992 ms (noticeable)
Qwen 2.5 32B Instruct
32B
qwen
Commercial OK
Quant: Q8_0Context: 8,192VRAM: 53.5 GBHeadroom: 8.9 GBTTFT: noticeable
  • Partial CPU offload: ~55% of layers run on CPU
  • CPU is the bottleneck — upgrading RAM bandwidth helps more than VRAM here
ollama run qwen2.5:32b
2
tok/s
Estimated
Weights
34.00 GB
KV cache
16.00 GB
Activations
1.71 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~992 ms (noticeable)
Llama 3.1 70B Instruct
70B
llama
Commercial OK
Quant: Q4_K_MContext: 2,048VRAM: 52.6 GBHeadroom: 9.8 GBTTFT: slow
  • Partial CPU offload: ~54% of layers run on CPU
  • CPU is the bottleneck — upgrading RAM bandwidth helps more than VRAM here
ollama run llama3.1:70b
1
tok/s
Estimated
Weights
40.00 GB
KV cache
8.75 GB
Activations
2.00 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~2169 ms (slow)
Llama 3.3 70B Instruct
70B
llama
Commercial OK
Quant: Q5_K_MContext: 8,192VRAM: 53.8 GBHeadroom: 8.6 GBTTFT: slow
  • Partial CPU offload: ~55% of layers run on CPU
  • CPU is the bottleneck — upgrading RAM bandwidth helps more than VRAM here
ollama run llama3.3:70b
1
tok/s
Estimated
Weights
47.00 GB
KV cache
2.68 GB
Activations
2.36 GB
Runtime
1.80 GB
Time to first token (prefill, 512-token prompt): ~2169 ms (slow)

What if you upgraded?

Hypothetical scenarios. We re-ran the compatibility engine for each.

+32 GB system RAM

~$80–150

Doubles your CPU-offload working set. Helps when models don't quite fit in VRAM.

Unlocks: 41 new comfortable, 79 new tradeoff

  • Qwen 3 0.6B
  • Qwen 3 1.7B
  • Gemma 3 270M
  • SmolLM2 135M Instruct

Upgrade to NVIDIA RTX PRO 4500 Blackwell

see current pricing

32 GB VRAM (vs your 24 GB) plus a bandwidth jump from ~1008 GB/s to ~896 GB/s.

Unlocks: 80 new comfortable

  • Qwen 3 0.6B
  • Qwen 3 30B-A3B
  • Qwen 2.5 Coder 32B Instruct
  • Qwen3.6 27B

Add a second NVIDIA GeForce RTX 4090

~$1899

Tensor parallelism splits the model across both cards, effectively doubling VRAM. Bandwidth doesn't double — runs ~1.5× the single-card speed in practice.

Unlocks: 93 new comfortable

  • Qwen 3 0.6B
  • Qwen 3 30B-A3B
  • Qwen 2.5 Coder 32B Instruct
  • Qwen3.6 27B

Some links above are affiliate links. We may earn a commission at no extra cost to you. How we make money.

Won't run
top 5 popular models

Need more memory than you have. Shown for orientation.

DeepSeek V4 Pro (1.6T MoE)
1600B
deepseek
Commercial OK

Even with CPU offload, needs more memory than your VRAM (24 GB) + 60% of system RAM (38 GB) combined.

Qwen 3.5 235B-A17B (MoE)
397B
qwen
Commercial OK

Even with CPU offload, needs more memory than your VRAM (24 GB) + 60% of system RAM (38 GB) combined.

Qwen 3 235B-A22B
235B
qwen
Commercial OK

Even with CPU offload, needs more memory than your VRAM (24 GB) + 60% of system RAM (38 GB) combined.

DeepSeek R1 (671B reasoning)
671B
deepseek
Commercial OK

Even with CPU offload, needs more memory than your VRAM (24 GB) + 60% of system RAM (38 GB) combined.

Llama 4 Scout
109B
llama
Commercial OK

Even with CPU offload, needs more memory than your VRAM (24 GB) + 60% of system RAM (38 GB) combined.

How to read these numbers

Measured here
Measured here - RunLocalAI ran this exact combo on owner hardware with public evidence.

Source-backed
Source-backed / community - a reproduced public source supports the speed, but it is not labeled as owner-measured.

Extrapolated
Extrapolated - predicted from a measured benchmark on similar-bandwidth hardware.

Estimated
Estimated - formula based on VRAM bandwidth and model architecture; not a benchmark row.

RunLocalAI Will-It-Run Framework →

Want a specific benchmark we don't have? Email Contact support and we'll prioritize it.