Best Local AI Models for RTX 4090 (24GB)

The RTX 4090 pairs 24GB of GDDR6X with 1,008 GB/s of memory bandwidth. It runs 8B chat models at est. 133 tok/s, typical error 5% and 32B reasoning models at est. 39 tok/s. Only the RTX 5090 is faster among consumer cards.

Compare with another device
Quick answer

The best local LLM for the RTX 4090 is Qwen3.8 27B (est. 51 tok/s, typical error 5%) on its 24GB VRAM. It uses ~16.5GB of VRAM; the RTX 4090 handles up to 32B parameter models at Q4. A 32B model at Q4 runs at est. 39 tok/s, typical error 5%. (ModelFit, 2026)

Sizing rule: a Q4 model needs about 0.6 GB of VRAM per billion parameters, and ModelFit budgets 90% of this card's 24GB for weights, context, and KV-cache. The per-size table below uses that same budget. Other strong fits: Gemma 4 26B-A4B (26B, ~16GB) and Gemma 4 12B (Q8) (12B, ~12.8GB). On this card Qwen3.8 27B runs at est. 51 tok/s, typical error 5%. What it will not run: a 35B MoE (3B active) model does not fit in VRAM alone, so it spills to system RAM over PCIe and slows sharply.

$ollama run qwen3.8:27b
Top pick
Qwen3.8 27B
Decode speed
est. 51 tok/s, typical error 5%
VRAM needed
~16.5 GB

Speeds are ModelFit estimates from memory bandwidth and model size, not measured benchmarks. Typical error: the median gap between the ModelFit speed model and measured runs on hardware the model was not fitted on, for this backend and model size.

Cite this page: ModelFit, RTX 4090 24GB Local LLM (2026): Runs 32B at est. 39 tok/s, https://modelfit.io/gpu/rtx-4090/, updated October 2026, CC BY 4.0.

Specs
VRAM
24 GB GDDR6X
Speed (8B Q4)
est. 133 tok/stypical error 5%
Bandwidth
1008 GB/s
Architecture
Ada Lovelace
Max model size
Up to 32B parameter models
Compatibility
10 excellent, 0 workable
Table 1

RTX 4090 estimated tokens/sec by model size

Q4_K_M · ModelFit estimate
Model sizeEst. speedFit on 24GB
7Best. 150 tok/stypical error 5%Fits in VRAM
14Best. 84 tok/stypical error 15%Fits in VRAM
20B MoE (3.6B active)est. 172 tok/stypical error 15%Fits in VRAM
32Best. 39 tok/stypical error 5%Fits in VRAM
35B MoE (3B active)est. 148 tok/stypical error 15%CPU offload (slow)
70Best. 2 tok/stypical error 10%CPU offload (slow)
120B MoE (5.1B active)est. 46 tok/stypical error 15%CPU offload (slow)

ModelFit estimates, not measured benchmarks: decode speed of a generic Q4_K_M model of each size at 4K context on the RTX 4090's 1008 GB/s bandwidth. MoE rows scale by active parameters (decode reads only the active experts), so a 35B MoE runs far faster than a dense 32B. "CPU offload" sizes exceed the 24GB VRAM; dense models slow to a crawl there, MoE models degrade less because hot experts stay GPU-resident. What typical error means.

Fig. 2

Context costs VRAM too.

Qwen3.8 27B loads ~16.5 GB of weights; at 16k context the KV cache adds ~1.0 GB (still fits the ~22 GB usable VRAM), and at 64k it adds ~4.0 GB (still fits).

Weights 17 GBKV cache · 16k context 1.0 GBHeadroom 4.1 GBRuntime reserve 2.4 GB

The model leaves about 4.1 GB of the usable VRAM budget free after weights and 16k context.

KV-cache figures assume an fp16 cache, the llama.cpp/Ollama default. Standard GQA models use a size-class estimate (8 KV heads x 128 head dim class); hybrid linear-attention models (Qwen3.5/3.6, Qwen3-Next) use the exact per-token cost from their published config, since only their sparse full-attention layers cache KV. A q8_0 KV cache roughly halves either figure. Estimates, not measurements.

RTX 4090 VRAM for AI: what actually fits?

24GB GDDR6X at 1,008 GB/s gives the RTX 4090 real headroom. 32B models at Q4 (~20GB) load fully with 3GB left for KV cache. 14B models at Q5 or Q6 fit easily for higher quality inference. At est. 133 tok/s, typical error 5% with 8B models, the 4090 delivers near-instant responses. The only consumer card faster is the RTX 5090 (est. 213 tok/s, 32GB). Among 24GB cards, its 1,008 GB/s bandwidth is the highest ModelFit tracks.

Table 2

RTX 4090 vs similar GPUs

HardwareMemorySpeedBandwidth
RTX 508016 GBest. 132 tok/stypical error 5%960 GB/s
RTX 309024 GBest. 117 tok/stypical error 5%936 GB/s
RTX 409024 GBest. 133 tok/stypical error 5%1008 GB/s
RTX 509032 GBest. 213 tok/stypical error 5%1792 GB/s

Recommended models

registry-verified10 models
01

Qwen3.8 27B

Qwen / 27B / Q4_K_M / ~16.5 GB

Local OKOKB · 24

Best for: Coding, Agent, Vision, Long context·Pop: 95/100

Perf: est. 51 tok/s, typical error 5% · first token ~0.3s

Fits in 24 GB VRAM with room to spare. Best for coding, agent, vision, long context on RTX 4090.

ollamaregistry-verified
02

Gemma 4 26B-A4B

Gemma / 26B / Q4_K_M / ~16 GB

Local OKOKB · 26

Best for: Chat, Coding, Multimodal·Pop: 86/100

Perf: est. 168 tok/s, typical error 15% · first token ~0.1s

Fits in 24 GB VRAM with room to spare. Best for chat, coding, multimodal on RTX 4090.

ollamaregistry-verified
03

Gemma 4 12B (Q8)

Gemma / 12B / Q8_0 / ~12.8 GB

Local OKExcellentA · 41

Best for: Chat, Coding, Multimodal·Pop: 80/100

Perf: est. 61 tok/s, typical error 15% · first token ~0.9s

Fits in 24 GB VRAM with room to spare. Best for chat, coding, multimodal on RTX 4090.

ollamaregistry-verified
04

Qwen3.5 35B-A3B Instruct

Qwen / 35B / Q4_K_M / ~20 GB

Local OKOKB · 7

Best for: Reasoning, Coding, Agent scenarios·Pop: 90/100

Perf: est. 242 tok/s, typical error 15% · first token ~0.1s

Fits in 24 GB VRAM with room to spare. Best for reasoning, coding, agent scenarios on RTX 4090.

ollamaregistry-verified
05

Nemotron 3.5 Lightning 30B-A3B (IQ4_XS)

Nemotron / 30B / IQ4_XS / ~18.9 GB

Local OKOKB · 13

Best for: Agentic, Coding, Long context·Pop: 78/100

Perf: est. 200 tok/s, typical error 15% · first token ~0.1s

Fits in 24 GB VRAM with room to spare. Best for agentic, coding, long context on RTX 4090.

06

LFM2 24B-A2B Instruct

LFM2 / 24B / Q4_K_M / ~14 GB

Local OKExcellentA · 35

Best for: Local AI agents, privacy-first tool calling, MCP workflows·Pop: 80/100

Perf: est. 257 tok/s, typical error 15% · first token ~0.1s

Fits in 24 GB VRAM with room to spare. Best for local ai agents, privacy-first tool calling, mcp workflows on RTX 4090.

ollamaregistry-verified
07

Gemma 4 31B

Gemma / 31B / Q4_K_M / ~20 GB

Local OKOKB · 7

Best for: Quality, Coding, Multimodal·Pop: 84/100

Perf: est. 41 tok/s, typical error 5% · first token ~0.4s

Fits in 24 GB VRAM with room to spare. Best for quality, coding, multimodal on RTX 4090.

ollamaregistry-verified
08

AREX-2 27B

AREX / 27.4B / Q4_K_M / ~17.2 GB

Local OKOKB · 20

Best for: Agents, Deep research, Coding·Pop: 60/100

Perf: est. 50 tok/s, typical error 5% · first token ~0.3s

Fits in 24 GB VRAM with room to spare. Best for agents, deep research, coding on RTX 4090.

09

GLM-4.7-Flash 30B-A3B

Zhipu / 30B / Q4_K_M / ~19 GB

Local OKOKB · 12

Best for: Coding, Agentic tasks, Reasoning·Pop: 78/100

Perf: est. 178 tok/s, typical error 15% · first token ~0.1s

Fits in 24 GB VRAM with room to spare. Best for coding, agentic tasks, reasoning on RTX 4090.

ollamaregistry-verified
10

Laguna XS 2.1

Laguna / 33B / Q4_K_M / ~20.3 GB

Local OKOKB · 6

Best for: Agentic coding, Long-horizon tasks·Pop: 72/100

Perf: est. 226 tok/s, typical error 15% · first token ~0.1s

Fits in 24 GB VRAM with room to spare. Best for agentic coding, long-horizon tasks on RTX 4090.

ollamaregistry-verified

Video and image models on the RTX 4090

Runs · Stated: the linked source says a GPU with that much VRAM runs the model. Runs · Published: a dated run on the named card with that much VRAM. unknown: no source yet. Every VRAM tier: video · image.

Video
Local models for this machine
ModelFitsQualityApp
HunyuanVideo-1.5Tencent Hunyuan Community LicenseRuns · Stated24 GB VRAM · ComfyUI native workflow · ComfyUI docs: HunyuanVideo 1.5#38 of 48 in text to video4,292 votessnapshot 2026-09-22ComfyUI
LTX-2.3LTX-2 Community License AgreementRuns · Stated24 GB VRAM · two-stage production at 720p to 1080p · LTX blog: hardware for AI video modelsNo independent score yetLightricks/LTX-2 ltx-pipelines, ComfyUI
LTX-2.5LTX-2.x Community License AgreementRuns · Stated24 GB VRAM · LTX Desktop app, 32 GB system RAM · LTX Desktop README (Lightricks)No independent score yetLightricks/LTX-2 ltx-pipelines, ComfyUI
MiniMax H3MiniMax H3 Community License AgreementRuns · Stated24 GB VRAM · Diffusers int8 with streamed blocks, about 75 GB system RAM · Diffusers docs: MiniMax-H3 memory#8 of 48 in text to video11,417 votessnapshot 2026-09-22stable-diffusion.cpp, ComfyUI
Mochi 1 previewApache License 2.0Runs · Stated22 GB VRAM · Diffusers bf16 variant with CPU offload · Mochi 1 model cardComplete: Official Diffusers BF16 variant40.0 GB download#48 of 48 in text to video5,893 votessnapshot 2026-09-22Diffusers, ComfyUI
Wan2.1Apache License 2.0Runs · Stated13 GB VRAM · T2V 14B in Diffusers, bf16 with group offloading to system RAM · Diffusers docs: Wan pipelineNo independent score yetComfyUI
Wan2.2 A14BApache License 2.0Runs · PublishedRTX 5060 Ti · 16 GB VRAM · ComfyUI fp16 I2V with 4-step LoRAs, 64 GB system RAM · ComfyUI issue #10662#42 of 48 in text to video10,458 votessnapshot 2026-09-22ComfyUI
Wan2.2 TI2V 5BApache License 2.0Runs · Stated24 GB VRAM · official generate.py at 1280x704 with offload flags · Wan2.2-TI2V-5B model cardNo independent score yetComfyUI

Quality: blind human votes from Arena (arena.ai), CC BY 4.0, snapshot 2026-09-22. Scores are for the Arena checkpoint, not your local quantized build.

Image
Local models for this machine
ModelFitsQualityApp
FLUX 3 Image KleinFLUX Kommunity License v1.0Runs · Stated8 GB VRAM · official ComfyUI int8 files · FLUX 3 Image Klein README (Black Forest Labs)No independent score yetDiffusers
FLUX.1 [dev]FLUX.1 [dev] Non-Commercial License v1.1.1Runs · Stated6 GB VRAM · stable-diffusion.cpp with GGUF weights · stable-diffusion.cpp FLUX docs#78 of 82 in text to image49,221 votessnapshot 2026-10-07Diffusers, ComfyUI
FLUX.2 [dev]FLUX Non-Commercial LicenseRuns · Stated24 GB VRAM · 4-bit quantization in Diffusers · FLUX.2 dev Diffusers guide (Black Forest Labs)#38 of 82 in text to image77,988 votessnapshot 2026-10-07Diffusers, ComfyUI, stable-diffusion.cpp
FLUX.2 [klein]Apache 2.0 (4B), FLUX Non-Commercial License (9B)Runs · Stated13 GB VRAM · Klein 4B · FLUX.2 [klein] 4B model cardComplete: Klein 4B BF1616.0 GB downloadNo independent score yetDiffusers, stable-diffusion.cpp
Krea 2 TurboKrea 2 Community License Agreement v.1Runs · PublishedRTX 4070 · 12 GB VRAM · ComfyUI fp8, dynamic VRAM paging, 8 steps · ComfyUI issue #15365No independent score yetDiffusers, stable-diffusion.cpp
Qwen-Image-2.1Qwen Research License AgreementRuns · PublishedRTX 4090 · 24 GB VRAM · Diffusers bf16 with model CPU offload, 1024x1024, 50 GB free system RAM required · MindrLabs Qwen-Image-2.1 README#19 of 82 in text to image11,441 votessnapshot 2026-10-07Diffusers, stable-diffusion.cpp
SDXL Base 1.0CreativeML Open RAIL++-M LicenseRuns · Stated8 GB VRAM · SDXL 1.0, no app named · SDXL 1.0 announcement (Stability AI)No independent score yetComfyUI, stable-diffusion.cpp
Stable Diffusion 3.5 LargeStability AI Community LicenseRuns · Stated11 GB VRAM · FP8 TensorRT build on RTX 40 and 50 · Stability AI: SD3.5 TensorRT models#81 of 82 in text to image23,396 votessnapshot 2026-10-07ComfyUI
Z-Image-TurboApache 2.0Runs · Stated16 GB VRAM · stated for consumer GPUs · Z-Image-Turbo model card#59 of 82 in text to image24,808 votessnapshot 2026-10-07Diffusers, stable-diffusion.cpp

Quality: blind human votes from Arena (arena.ai), CC BY 4.0, snapshot 2026-10-07. Scores are for the Arena checkpoint, not your local quantized build.

Can I run it on the RTX 4090?

Per-model verdict pages for this exact card: weights, KV cache by context length, and estimated tok/s, each derived from the same engine the recommendations above use.

Speeds are estimates for Qwen3 8B Q4_K_M, typical error 5%.

Compatible model families

RTX 4090 FAQ: common questions

How much VRAM does the RTX 4090 have for LLMs?

The RTX 4090 has 24GB GDDR6X VRAM with 1,008 GB/s bandwidth. About 23GB is usable for models. It runs 32B models at Q4 with room for 8K+ context windows.

What size LLM can I run on an RTX 4090?

Up to 32B parameter models at Q4 quantization. This includes DeepSeek-R1 32B, Qwen 2.5 32B, and larger reasoning models. For 70B models, you need Q2 or dual GPUs, or step up to the RTX 5090.

Is the RTX 4090 worth its 2026 price for AI?

Rarely. The card is discontinued and its street price has climbed well past launch MSRP, while it is only 14% faster than a used RTX 3090, which has the same 24GB VRAM for a fraction of the money. The 4090 is worth it if you also game at 4K or need the absolute fastest 24GB card. For pure AI value, the 3090 wins.

RTX 4090 vs RTX 5090 for AI: which is better?

The RTX 5090 is 60% faster on 8B models (est. 213 tok/s, typical error 5% vs est. 133 tok/s) with 8GB more VRAM (32 vs 24GB), enabling 70B models. The 5090 also costs more in 2026 now that the 4090 is discontinued and only scalped stock remains. If buying new, the 5090 is the clear choice.

Can the RTX 4090 run 70B models?

Not at full quality. A 70B Q4 model needs ~42GB VRAM. The 4090 has 24GB, so you would need Q2 quantization (lower quality) or run with partial CPU offloading (much slower). For 70B, the RTX 5090 (32GB) is recommended.

How fast is a 27B-class model like Qwen3.8 27B on the RTX 4090?

ModelFit estimates a 32B model on the RTX 4090 at Q4_K_M runs at est. 39 tok/s, typical error 5%. The current 27B-class pick in the catalog is Qwen3.8 27B (ollama run qwen3.8:27b).

Related guides & benchmarks

More local AI guides

Browse all NVIDIA GPUs for AI

Real-world calibration

Have this hardware? Share a measured run.

Time a model that fits your machine with Ollama, using the same prompts as every other run. The CLI shows your result and asks before it sends anything; your machine then joins the speed test leaderboard. It does not change the quality benchmark.

Want personalized recommendations?

Use our interactive wizard to compare models across Apple Silicon and NVIDIA GPUs.