Best local LLMs for RTX 5090 32GB
GeForce RTX 5090. Memory-fit math with KV cache, speeds labelled by how they were obtained, and commands you can paste.
Best for Coding · 16k context
| Model | Quant | Fit | Memory | Speed (generation) |
|---|---|---|---|---|
| Nanbeige4.3 33B | Q5_K_M | fits fully | 28.6 GB | ~64 tok/s scaled from measured src |
| DeepSeek R1 Distill Qwen 32B | Q5_K_M | fits fully | 27.6 GB | ~246 tok/s scaled from measured src |
| Gemma 4 31B | Q6_K | fits fully | 27.4 GB | ~55 tok/s measured src |
| Qwen3.6 27B | Q8_0 | fits fully | 29.8 GB | ~52 tok/s measured src |
| Qwen3.8 27B | Q8_0 | fits fully | 30.3 GB | ~53 tok/s measured src |
llama-server -hf bartowski/Nanbeige_Nanbeige4.3-33B-GGUF:Q5_K_M -c 16384 -fa on --jinja -ngl 99
OLLAMA_CONTEXT_LENGTH=16384 ollama serve ollama run hf.co/bartowski/Nanbeige_Nanbeige4.3-33B-GGUF:Q5_K_M
Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).
Best for Chat / general · 16k context
| Model | Quant | Fit | Memory | Speed (generation) |
|---|---|---|---|---|
| Nanbeige4.3 33B | Q5_K_M | fits fully | 28.6 GB | ~64 tok/s scaled from measured src |
| DeepSeek R1 Distill Qwen 32B | Q5_K_M | fits fully | 27.6 GB | ~246 tok/s scaled from measured src |
| Gemma 4 31B | Q6_K | fits fully | 27.4 GB | ~55 tok/s measured src |
| Qwen3.6 27B | Q8_0 | fits fully | 29.8 GB | ~52 tok/s measured src |
| Qwen3.8 27B | Q8_0 | fits fully | 30.3 GB | ~53 tok/s measured src |
llama-server -hf bartowski/Nanbeige_Nanbeige4.3-33B-GGUF:Q5_K_M -c 16384 -fa on --jinja -ngl 99
OLLAMA_CONTEXT_LENGTH=16384 ollama serve ollama run hf.co/bartowski/Nanbeige_Nanbeige4.3-33B-GGUF:Q5_K_M
Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).
Best for Vision · 16k context
| Model | Quant | Fit | Memory | Speed (generation) |
|---|---|---|---|---|
| Gemma 4 31B | Q6_K | fits fully | 27.4 GB | ~55 tok/s measured src |
| Qwen3.6 27B | Q8_0 | fits fully | 29.8 GB | ~52 tok/s measured src |
| Qwen3.8 27B | Q8_0 | fits fully | 30.3 GB | ~53 tok/s measured src |
| Mistral Small 3.2 24B | Q8_0 | fits fully | 27.7 GB | ~64 tok/s measured src |
| Gemma 4 12B | Q8_0 | fits fully | 13.3 GB | ~104 tok/s measured src |
llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q6_K -c 16384 -fa on --jinja -ngl 99
OLLAMA_CONTEXT_LENGTH=16384 ollama serve ollama run hf.co/unsloth/gemma-4-31B-it-GGUF:Q6_K
Context length is an Ollama server setting: quit the Ollama app or stop the service first, or set it in its environment (launchctl on Mac, systemctl on Linux).
All 30 models that fit, fastest first · 16k context
Click a column header to sort. 27 of 30 speeds here are measured or scaled from measured; the rest are bandwidth estimates. Filter by use case, speed source, fit, license and more in the interactive advisor →
| Model | Params | Quant | Fit | Memory | Tok/s | Source |
|---|---|---|---|---|---|---|
| LFM3 1.7B | 1.73B | Q8_0 | fits fully | 2.1 GB | ~463 | scaled from measured |
| Flint 40B-A2.5B | 39.79B MoE | UD-Q5_K_XL | fits fully | 30.4 GB | ~391 | scaled from measured |
| gpt-oss 20B | 20.91B MoE | Q8_0 | fits fully | 12.5 GB | ~375 | measured |
| Mellum2.1 12B-A2.5B Instruct | 12.15B MoE | Q8_0 | fits fully | 13.2 GB | ~360 | estimated |
| Nemotron 3.5 Lightning 30B-A3B | 31.58B MoE | UD-Q5_K_M | fits fully | 30.4 GB | ~349 | measured |
| Laguna XS 2.1 | 33.44B MoE | Q6_K | fits fully | 29.8 GB | ~343 | scaled from measured |
| LFM2.5 24B-A2B | 23.97B MoE | Q8_0 | fits fully | 25.8 GB | ~343 | scaled from measured |
| Nemotron 3 Nano 30B-A3B | 31.58B MoE | Q5_K_M | fits fully | 26.3 GB | ~342 | scaled from measured |
| GLM-4.7-Flash | 31.22B MoE | Q6_K | fits fully | 25.6 GB | ~268 | scaled from measured |
| Qwen3.6 35B-A3B | 35.95B MoE | UD-Q6_K | fits fully | 29.7 GB | ~260 | measured |
| Nemotron 3 Nano 4B | 3.97B | Q8_0 | fits fully | 4.6 GB | ~258 | scaled from measured |
| Qwen3-Coder 30B-A3B | 30.53B MoE | Q6_K | fits fully | 26.7 GB | ~256 | scaled from measured |
| DeepSeek R1 Distill Qwen 32B | 32.76B | Q5_K_M | fits fully | 27.6 GB | ~246 | scaled from measured |
| Qwen3.5 4B | 4.66B | Q8_0 | fits fully | 5.1 GB | ~245 | measured |
| Gemma 4 26B-A4B | 25.81B MoE | Q8_0 | fits fully | 27.4 GB | ~217 | measured |
| Ornith 1.5 35B-A3B | 35.95B MoE | Q6_K | fits fully | 30.9 GB | ~216 | scaled from measured |
| DeepSeek R1 Distill Qwen 7B | 7.62B | Q8_0 | fits fully | 9.0 GB | ~179 | scaled from measured |
| Gemma 4 E4B | 8B | Q8_0 | fits fully | 8.5 GB | ~177 | scaled from measured |
| Qwen3-VL 8B | 8.77B | Q8_0 | fits fully | 11.1 GB | ~167 | measured |
| Qwen3.5 9B | 9.65B | Q8_0 | fits fully | 10.1 GB | ~156 | measured |
| Inkling 2 Mini | 26.39B MoE | Q8_0 | fits fully | 28.5 GB | ~151 | scaled from measured |
| Ornith 1.5 9B | 9.65B | Q8_0 | fits fully | 10.1 GB | ~145 | scaled from measured |
| Gemma 4 12B | 11.96B | Q8_0 | fits fully | 13.3 GB | ~104 | measured |
| Mistral Small 3.2 24B | 24.01B | Q8_0 | fits fully | 27.7 GB | ~64 | measured |
| Nanbeige4.3 33B | 33.12B | Q5_K_M | fits fully | 28.6 GB | ~64 | scaled from measured |
| Gemma 4 31B | 31.27B | Q6_K | fits fully | 27.4 GB | ~55 | measured |
| Qwen3.8 27B | 27.78B | Q8_0 | fits fully | 30.3 GB | ~53 | measured |
| Qwen3.6 27B | 27.78B | Q8_0 | fits fully | 29.8 GB | ~52 | measured |
| Ripple 65B Preview | 64.78B | Q4_K_M | partial offload | 40.1 GB | ~5 | estimated |
| Llama 3.3 70B | 70.55B | Q4_K_M | partial offload | 47.9 GB | ~3 | estimated |
Long context on this hardware · up to 1M tokens
Largest context whose KV cache still fits next to the weights (same placement as the 16k result, KV types f16 / q8_0 / q4_0). Models are capped at their verified maximum; extended means beyond the native maximum using YaRN, only listed where the model card documents it. Long context needs flash attention (-fa on, already in the commands) and a lot of memory; a quantized KV cache saves memory but can cost accuracy. Speed at depth is an estimate (penalty fitted to measured depth runs up to 128k).
Try it in the advisor: 128k · 256k · 512k · 1M
| Model | Native max | Max ctx f16 | Max ctx q8_0 | Max ctx q4_0 | Est. tok/s at max f16 ctx |
|---|---|---|---|---|---|
| Qwen3.5 4B Q8_0 | 256k | 512k extended | 1M extended | 1M extended | ~64 estimated |
| Qwen3.5 9B Q8_0 | 256k | 512k extended | 1M extended | 1M extended | ~67 estimated |
| LFM3 1.7B Q8_0 | 256k | 256k | 256k | 256k | ~202 estimated |
| Nemotron 3 Nano 30B-A3B Q5_K_M | 256k | 256k | 256k | 256k | ~242 estimated |
| Nemotron 3 Nano 4B Q8_0 | 256k | 256k | 256k | 256k | ~148 estimated |
| Ornith 1.5 9B Q8_0 | 256k | 256k | 256k | 256k | ~87 estimated |
| Gemma 4 12B Q8_0 | 256k | 256k | 256k | 256k | ~82 estimated |
| gpt-oss 20B Q8_0 | 128k | 128k | 128k | 128k | ~175 estimated |
| Mellum2.1 12B-A2.5B Instruct Q8_0 | 128k | 128k | 128k | 128k | ~234 estimated |
| LFM2.5 24B-A2B Q8_0 | 128k | 128k | 128k | 128k | ~194 estimated |
| Gemma 4 26B-A4B Q8_0 | 256k | 128k | 256k | 256k | ~141 estimated |
| DeepSeek R1 Distill Qwen 7B Q8_0 | 128k | 128k | 128k | 128k | ~106 estimated |
| Gemma 4 E4B Q8_0 | 128k | 128k | 128k | 128k | ~148 estimated |
| Qwen3-VL 8B Q8_0 | 256k | 128k | 256k | 512k extended | ~63 estimated |
| Ripple 65B Preview Q4_K_M | 2M | 128k | 256k | 512k | ~4 estimated |
| Nemotron 3.5 Lightning 30B-A3B UD-Q5_K_M | 256k | 64k | 128k | 256k | ~316 estimated |
| GLM-4.7-Flash Q6_K | 198k | 64k | 128k | 128k | ~127 estimated |
| Qwen3.6 35B-A3B UD-Q6_K | 256k | 64k | 128k | 256k | ~185 estimated |
| Inkling 2 Mini Q8_0 | 1M | 64k | 128k | 256k | ~116 estimated |
| Flint 40B-A2.5B UD-Q5_K_XL | 256k | 32k | 64k | 128k | ~282 estimated |
| Laguna XS 2.1 Q6_K | 256k | 32k | 64k | 128k | ~245 estimated |
| Qwen3-Coder 30B-A3B Q6_K | 256k | 32k | 64k | 128k | ~136 estimated |
| Mistral Small 3.2 24B Q8_0 | 128k | 32k | 64k | 64k | ~55 estimated |
| Gemma 4 31B Q6_K | 256k | 32k | 64k | 128k | ~50 estimated |
| Qwen3.6 27B Q8_0 | 256k | 32k | 32k | 64k | ~50 estimated |
| Llama 3.3 70B Q4_K_M | 128k | 32k | 64k | 128k | ~3 estimated |
| DeepSeek R1 Distill Qwen 32B Q5_K_M | 128k | 16k | 32k | 64k | ~217 estimated |
| Ornith 1.5 35B-A3B Q6_K | 256k | 16k | 32k | 64k | ~196 estimated |
| Nanbeige4.3 33B Q5_K_M | 512k | 16k | 32k | 64k | ~58 estimated |
| Qwen3.8 27B Q8_0 | 256k | 16k | 32k | 64k | ~52 estimated |
FAQ
What is the best local LLM for RTX 5090 32GB?
Of the 28 models that fit fully at 16k context, LFM3 1.7B Q8_0 is the fastest at ~463 tok/s (scaled from measured); the largest is Flint 40B-A2.5B UD-Q5_K_XL.
How much memory can RTX 5090 32GB use for a model?
About 31.0 GB usable for the model and KV cache, with 1792 GB/s memory bandwidth.
Can RTX 5090 32GB run long contexts?
See the long-context table above: it lists the largest context whose KV cache fits next to the weights for every model, up to 1M tokens where the model supports it.
Open the interactive advisor with this hardware →
Speeds marked measured are medians of real runs (short-context generation) from these sources; scaled from measured means a measurement of a same-size or same-model-different-quant run, scaled by bytes read; estimated comes from memory bandwidth (spec source: https://www.techpowerup.com/gpu-specs/geforce-rtx-5090.c4216) × an efficiency factor of 0.71 calibrated to measured runs on this hardware. 53 measured data points on file for this hardware · submit your benchmark. System RAM here is an example (32 GB, ddr5-5600). Model data last verified 2026-11-30. Ranking = fits and fast enough first, then larger; not a quality benchmark.
Page generated 2026-11-30 by tools/generate_pages.js