Blog/Best LLMs for RTX 5090
Models · November 2026

Best LLMs for an RTX 5090: what fits in 32 GB and what to run, November 2026

By Samuel Seidel · Published November 7, 2026 · Sources checked November 7, 2026

For one RTX 5090 in November 2026, I would run Qwen3.8-27B at Q5_K_M for coding, chat and images (18.4 GiB of weights, about 28 GiB with a 128k context), and Qwen3.6-35B-A3B or Nemotron 3.5 Lightning when speed matters (271 and 377 tok/s reported on llama.cpp). By my calculation from each model's config.json, 11 of 15 current open-weight models fit in the card's 31.8 GiB with a 32k context; gpt-oss-120b, Qwen3.8-Flash-Next, Mistral Small 4 and Ornith-1.5-122B need experts in system RAM.

UsePickQuant, weightsReported decode on a 5090
Coding, agents, visionQwen3.8-27BUD-Q5_K_M, 18.41 GiB78.9 tok/s (Q4_K_M); 119.8 with MTP
Fast general chatQwen3.6-35B-A3BUD-Q4_K_M, 20.61 GiB271.0 tok/s
Long contextNemotron 3.5 Lightning 30B-A3BUD-Q4_K_M, 23.53 GiB377.4 tok/s
Small and fastestgpt-oss-20bQ4_K_M, 10.83 GiB367.9 tok/s
Agent model to test nextNemotron 3.5 Bolt 74B-A9B-24GBIQ2 QAT, 20.51 GiBnone published

Decode figures from the witcheer/rtx-5090-benchmarks dataset (llama.cpp tg128 and vLLM 0.25.1, May to August 2026), read 7 November 2026. File sizes from the Hugging Face repos, checked the same day. Full table and method below.

How much VRAM does a model need on a 32 GB card?

Add three things: the weight file, the KV cache for your context, and about 1.5 GiB of runtime overhead, and keep the sum under the 31.8 GiB a 5090 actually reports (32,607 MiB in Atomic Chat's tests). The KV term is where 2026 models differ from older ones:

KV bytes per token = 2 (K and V) × attention layers × KV heads × head_dim × 2 bytes (FP16)

Qwen3.8-27B: 64 layers, but only 16 are full attention (full_attention_interval 4)
  2 × 16 × 4 × 256 × 2 = 65,536 bytes = 64 KiB per token
  32k tokens: 2.0 GiB      128k tokens: 8.0 GiB

QwQ-32B (2025, every layer full attention): 64 layers × 8 KV heads × 128
  2 × 64 × 8 × 128 × 2 = 262,144 bytes = 256 KiB per token
  32k tokens: 8.0 GiB      128k tokens: 32.0 GiB (does not fit)

The layer, head and dimension counts are read from each model's config.json on Hugging Face (Qwen3.8-27B); the arithmetic is mine. Three extra terms apply to some models. Gated DeltaNet and Mamba layers keep a fixed recurrent state per sequence instead of a cache, under 0.2 GiB for every model here (the config stores it in float32). Gemma 4's sliding-window layers cache only the last 1,024 tokens, a fixed 0.2 to 0.8 GiB. Vision models need a projector file when you load images, 1.6 GiB for Nemotron Bolt.

The 1.5 GiB overhead is my planning figure for CUDA context and compute buffers, and it checks out against measurements. Atomic Chat logged Gemma 4 31B Q4_K_M at 22,372 MiB (21.85 GiB) with a 32k context on llama.cpp b10988. The formula gives 17.07 GiB of weights, 3.28 GiB of cache and 1.5 GiB overhead: 21.85 GiB. For Gemma 4 26B-A4B and 12B it overestimates by 0.4 to 0.8 GiB, which is the safe side. A desktop session takes its share first: ai.rs saw 5.6 GB in use on an RTX 5090 before loading any model.

Which open models fit in 32 GB?

Eleven of the 15 models fit with a 32k context, and all eleven still fit at 128k, though Gemma 4 31B and the 2-bit Qwen3-Coder-Next leave under 2.5 GiB spare; the four above 46 GiB need their experts in system RAM. Totals include the 1.5 GiB overhead; a verdict of "fits" means under 31.8 GiB.

Model (type)Quant, fileKV per tokenTotal at 32kTotal at 128kVerdictReported tok/s
Qwen3.8-27B (dense, hybrid, vision)UD-Q5_K_M, 18.41 GiB64 KiB22.1 GiB28.1 GiBFits to 128k78.9 (Q4_K_M)
Qwen3.6-35B-A3B (MoE, hybrid, vision)UD-Q4_K_M, 20.61 GiB20 KiB22.8 GiB24.7 GiBFits; 262k at 27.2 GiB271.0
Ornith-1.5-35B-A3B (MoE, Qwen3.5 layout)Q4_K_M, 20.22 GiB20 KiB22.4 GiB24.3 GiBFits; 262k at 26.8 GiB303.2
Gemma 4 31B (dense, vision)Q4_K_M, 17.07 GiB80 KiB + 0.78 GiB window21.9 GiB29.4 GiBFits to 128k, tight68.5
Gemma 4 26B-A4B (MoE, vision)UD-Q4_K_M, 15.78 GiB20 KiB + 0.2 GiB window18.1 GiB20.0 GiBFits; 262k at 22.5 GiB248.6
Gemma 4 12B (dense, vision)Q6_K, 9.11 GiB16 KiB + 0.31 GiB window11.4 GiB12.9 GiBFits easily122.3
gpt-oss-20b (MoE, 3.6B active)Q4_K_M, 10.83 GiB24 KiB13.1 GiB15.3 GiBFits; max context 131,072367.9
Nemotron 3.5 Lightning 30B-A3B (Mamba hybrid)UD-Q4_K_M, 23.53 GiB6 KiB25.3 GiB25.8 GiBFits; 256k at 26.6 GiB377.4 (Q4_K_M)
Nemotron 3.5 Bolt 74B-A9B-24GB (Mamba hybrid, vision)IQ2 QAT, 20.51 GiB + 1.61 GiB projector8 KiB24.0 GiB24.8 GiBFits; 256k at 25.8 GiBnone published
Ornith-1.5-9B (dense, hybrid)Q6_K, 7.04 GiB32 KiB9.6 GiB12.6 GiBFits easily187.7
Qwen3-Coder-Next 80B-A3B (MoE, hybrid)UD-Q2_K_XL, 24.92 GiB24 KiB27.2 GiB29.5 GiBFits only at 2-bit; Q4_K_M is 45.2 GiB224.9
gpt-oss-120b (MoE, 5.1B active)Q4_K_M, 58.46 GiB36 KiB61.1 GiB64.5 GiBCPU MoE offload46.5 (offload)
Ornith-1.5-122B (MoE, hybrid)UD-IQ3_XXS, 46.10 GiB24 KiB48.5 GiB50.7 GiBCPU MoE offload47.6 (offload)
Mistral Small 4 119B (MoE, MLA)MXFP4_MOE, 66.88 GiB22.5 KiB (latent)69.1 GiB71.2 GiBCPU MoE offload35.9 (offload)
Qwen3.8-Flash-Next 125B-A6B (MoE, vision)UD-Q2_K_XL, 74.12 GiB24 KiB76.5 GiB78.7 GiBCPU MoE offload59.7 (offload)

My calculation, FP16 KV cache, one sequence, 1.5 GiB overhead. Architecture fields from each model's config.json; file sizes from Unsloth, NVIDIA and ornith-ai GGUF repos, checked 7 November 2026. Gemma 4 counts K and V separately on its full-attention layers; its config sets attention_k_eq_v, which Transformers documents as the key projection being reused as the value, so an engine that stores it once needs less. Reported tok/s: witcheer dataset (llama.cpp tg128; offload rows with 64 GB DDR5-5600) except Gemma 4 31B and 26B-A4B (Atomic Chat, llama.cpp b10988). The full speed table is in the RTX 5090 benchmarks.

Two cross-checks against measurements hold up. Hardware Corner's context sweep lists Qwen3 32B at a maximum of 32k on a 5090, Gemma 4 31B at 128k and a Qwen3.5 35B MXFP4 build at 256k, which is what the per-token figures above predict. Ollama is the outlier: kohei_wada measured Qwen3.8-27B at 29.2 GB with the full 262,144-token context, less than my FP16 formula gives, so Ollama is likely storing that cache more compactly; I could not confirm how. A q8_0 cache in llama.cpp (-ctk q8_0 -ctv q8_0) roughly halves every KV figure in the table. The KV cache size article covers the quality cost.

What is the best LLM for coding on an RTX 5090?

Qwen3.8-27B is my pick for coding on one 5090, with Ornith-1.5-35B-A3B as the faster alternative to test against it. Qwen's card reports 73.0 on Terminal-Bench 2.1 (Terminus), 61.7 on SWE-bench Pro and 90.3 on LiveCodeBench v6, all self-reported, under Apache 2.0. At UD-Q5_K_M it leaves room for a 128k context. The catch is speed: about 79 tok/s at 4-bit on llama.cpp. vLLM 0.25.1 with the model's MTP head and NVFP4 weights reached 119.8 tok/s in the witcheer runs, which is the setup I would use for an agent loop.

Ornith-1.5-35B-A3B is a 3B-active MoE under MIT that its card says extends Ornith-1.0, "developed on top of Qwen3.5 and Gemma4". It decodes at 303 tok/s, four times Qwen3.8-27B. Its card claims 79 on SWE-bench Verified, 59.6 on SWE-bench Pro and 67.8 on Terminal-Bench 2.1. NVIDIA's own measurement of the comparable Qwen3.6-35B-A3B on Terminal-Bench 2.1 is 44.38, so a 3B-active model at 67.8 is a large claim from a lab I know little about. Run your own repository tasks on both before choosing. If you need Qwen3-Coder-Next, its 2-bit file (24.92 GiB) fits at 224.9 tok/s, but the 4-bit build at 45.2 GiB does not. Agent setup is in coding agents against your own endpoint.

Which model is best for agents and tool calling?

For agents I would still start with Qwen3.8-27B, and test Nemotron 3.5 Bolt 74B-A9B-24GB next, because it is a 70B-class model NVIDIA built to fit a 24 GB card. NVIDIA's card dates the Hugging Face release to 15 October 2026 and describes a 74B-total, 9B-active Mamba-Transformer hybrid with quantization-aware 2-bit experts, packed into a 22.02 GB GGUF under the OpenMDW-1.1 license. Its card compares it with Qwen3.6-35B-A3B at BF16 under NVIDIA's own runs.

Benchmark (NVIDIA-measured)Nemotron 3.5 Bolt 24GBQwen3.6-35B-A3B BF16Gemma 4 26B-A4B BF16Nemotron 3.5 Lightning BF16
Terminal-Bench 2.150.9844.3837.2223.46
MCP-Atlas52.2051.2048.446.4
BrowseComp66.7548.7426.3036.81
Tau3 Banking17.0110.5214.029.48
PinchBench87.8288.0774.7083.43

From the Nemotron 3.5 Bolt model card, read 7 November 2026. Vendor-run comparison. The card notes Qwen3.6's own reported MCP-Atlas score is 62.8.

The friction is software. The card's only listed runtime is a specific vLLM nightly image plus a "b12x" backend, with SM120 (RTX 50) and SM121 (GB10) named as supported, and no 5090 speed is published anywhere I could find. Treat it as a model to benchmark, not one to deploy blind. Tool-call parsing is usually what breaks first with a new model; the function-calling guide lists the checks.

Which model is best for vision and for long context?

For images and video, Qwen3.8-27B again, since the card lists native image and video input; Gemma 4 31B and 12B are the alternatives with a vision tower. For long documents, Nemotron 3.5 Lightning: 6 KiB of KV cache per token means its full 256k context costs 1.5 GiB, and the witcheer runs show it keeping 94% of its decode speed at 32k. NVIDIA's card says Lightning supports up to 1M tokens and was validated to 256K on one H100. Qwen3.6-35B-A3B is the second choice, at 20 KiB per token and 27.2 GiB total at 262k. Older full-attention models cannot do this on 32 GB at all. More on running vision models is in the multimodal guide.

What about models bigger than 32 GB?

Mixture-of-experts models above 32 GB run at 35 to 80 tok/s on a 5090 if you keep the shared layers and some experts on the card and the rest in system RAM, but plan on 64 to 128 GB of fast DDR5. llama.cpp's --n-cpu-moe N keeps the expert weights of the first N layers on the CPU. With 64 GB of DDR5-5600, witcheer measured gpt-oss-120b at 46.5 tok/s, Qwen3.8-Flash-Next at 2-bit with --n-cpu-moe 22 at 59.7 tok/s and Ornith-1.5-122B with --n-cpu-moe 24 at 47.6 tok/s. Prefill suffers more than decode: 588 to 896 tok/s against several thousand when resident.

Engines that cache hot experts on the GPU do better. Seppe Gadeyne reports Qwen3.8-Flash-Next at UD-Q5_K_XL running at 78.8 tok/s and Ornith-1.5-122B at 46.4 tok/s on one RTX 5090 with 128 GB of DDR5-5600, using the Strata and TabbyAPI engines, measured 21 to 22 October 2026. Qwen describes Flash-Next as 125B with 6B active plus a 51B n-gram embedding, under a qwen-community-1.0 license whose terms the card does not state. The bandwidth math behind offload is in the sibling article on llama.cpp MoE offload. Dense models do not offload well; for a 70B dense model, more memory on one device is the answer, which is where the 128 GB memory calculator and the DGX Spark vs RTX 5090 comparison come in.

My verdict: on one RTX 5090, Qwen3.8-27B at Q5_K_M with MTP drafting is the default for work that needs quality, and Qwen3.6-35B-A3B or Nemotron 3.5 Lightning are the defaults when you want 270 to 380 tok/s or very long contexts. Skip 4-bit 70B dense models on this card. If the model you need is above 46 GiB, budget for 64 to 128 GB of DDR5 or for a machine with more memory.

FAQ

What is the best LLM for an RTX 5090?

For most single users in November 2026 I would run Qwen3.8-27B at Q5_K_M: 18.4 GiB of weights, about 28 GiB total with a 128k context by my calculation, Apache 2.0, with image and video input. Reported speed is 78.9 tok/s at Q4_K_M on llama.cpp and 119.8 tok/s with MTP drafting on vLLM 0.25.1 (witcheer dataset). For raw speed, Qwen3.6-35B-A3B runs at 271 tok/s.

Can an RTX 5090 run a 70B model?

Not fully on the card. A 70B dense model is about 37 GiB at 4-bit, more than the 31.8 GiB a 5090 reports. You can split it with system RAM, but every token then streams the overflow over PCIe and RAM, which is slow. Large mixture-of-experts models work better: gpt-oss-120b with experts partly on the CPU was reported at 46.5 tok/s with 64 GB of DDR5-5600 (witcheer, August 2026).

How much context fits in 32 GB of VRAM?

It depends on the model's attention design. By my calculation from config.json, Qwen3.8-27B needs 64 KiB of FP16 KV cache per token, so 128k tokens cost 8 GiB; Nemotron 3.5 Lightning needs 6 KiB per token, so 256k cost 1.5 GiB. An older full-attention 32B such as QwQ-32B needs 256 KiB per token, which caps it near 32k on a 5090, matching Hardware Corner's measured limit for Qwen3 32B.

Which models need CPU MoE offload on an RTX 5090?

Of the 15 models checked here, four do not fit in 32 GB at any sensible quant: gpt-oss-120b (about 58 GiB), Qwen3.8-Flash-Next (74 GiB at 2-bit), Mistral Small 4 119B (67 GiB at MXFP4) and Ornith-1.5-122B (46 GiB at 3-bit). With llama.cpp's --n-cpu-moe they were reported at 35.9 to 59.7 tok/s on a 5090 with 64 GB of DDR5, per the witcheer dataset.

Is 32 GB enough for local coding agents?

Yes for one user. Qwen3.8-27B at Q5_K_M with a 128k context needs about 28 GiB by my calculation, and the model card reports 73.0 on Terminal-Bench 2.1 and 61.7 on SWE-bench Pro (self-reported). Several agents sharing the card are harder, because each session adds its own KV cache: four 64k sessions on Qwen3.8-27B add about 16 GiB.

Sources

Every figure above is attributed to its source in the sentence or table where it appears. Pages were read on 7 November 2026 unless a date says otherwise.

Related pages

First top-up: pay $20, get $30 in credit

Try your shortlist on a real RTX 5090.

Rent the RTX 5090 by the minute at $0.89 an hour and load two or three of these models at the quant and context you plan to use before buying a card.

A dedicated RTX 5090 machine with 32 GB of GDDR7, $0.89/hour, billed per minute, one customer per machine.

Deploy now for an RTX 5090 Check models above 32 GB