What is the Best Local LLM for RTX 5090 Coding and App Development?
Problem
When I got my RTX 5090 with 32GB VRAM, I wanted to run local LLMs for coding. But I was confused about which models actually work well for software development.
I saw people talking about 480B models, MoE architectures, and different quantization levels. I wasn’t sure what would actually fit on my GPU and give me good results for:
- Code generation
- Debugging
- Refactoring
- App architecture
- Working with larger codebases
What I Found
After researching r/LocalLLaMA discussions, I found clear recommendations for RTX 5090 owners.
The Consensus Picks
Qwen3-coder-30B at Q4 is the community’s top pick for pure coding tasks. It fits cleanly in 32GB VRAM with headroom for context.
One user put it simply: “Qwen3-coder-30B at Q4 from unsloth is the current consensus pick for coding tasks at 32GB VRAM.”
For general reasoning plus coding, Qwen3.5 27B got strong praise. One developer called it “by far the best model I’ve used.”
Model Comparison Table
| Model | Size | Quantization | VRAM | Best For ||--------------------|------|--------------|-------|----------------------------|| Qwen3-coder-30B | 30B | Q4 | ~18GB | Pure coding tasks || Qwen3.5 27B | 27B | Q4 | ~16GB | General coding + reasoning || DeepSeek R1 32B | 32B | Q4 | ~19GB | Complex reasoning, debug || Qwen3.5 35B A3B | 35B | Q4 | ~21GB | Faster, lighter tasks |Why These Models Work
All four models fit within 32GB VRAM with room left for context window. Here’s what makes each special:
Qwen3-coder-30B: Optimized specifically for code generation. If you’re primarily writing code, this is your pick.
Qwen3.5 27B: Dense model where all 27B parameters are active during inference. This gives consistent reasoning quality for coding tasks.
DeepSeek R1 32B: Excels at step-by-step reasoning. When you’re debugging complex issues, this model shines.
Qwen3.5 35B A3B: Uses Mixture of Experts (MoE) architecture. It’s faster but “doesn’t have the grunt of 27B” for complex coding tasks.
What Doesn’t Work
I learned that 480B coder models are not realistic for single GPU setups. They require 200GB+ VRAM. One user noted these are “multi-GPU or API territory only.”
If you see a 480B model, you’ll need either:
- Multiple GPUs with NVLink
- Cloud API access
- Significant quantization (which defeats the purpose)
How to Set Up
Here’s how I run Qwen3-coder-30B on my RTX 5090:
# Download from HuggingFace using the -hf flagllama-server \ --host 0.0.0.0 \ --port 8080 \ -hf unsloth/Qwen3-coder-30B-GGUF:Q4_K_M \ --ctx-size 32768 \ --temp 0.6The -hf flag pulls the model directly from HuggingFace. No manual download needed.
VRAM Estimation
I use this formula to check if a model will fit:
def estimate_vram(params_b: float, quantization: str) -> float: """Estimate VRAM in GB for a quantized model""" bits_per_weight = { "Q4": 4.5, "Q5": 5.5, "Q6": 6.5, "Q8": 8.5 } # Model weights + KV cache + activations return (params_b * bits_per_weight[quantization] / 8) + 2
# Check if Qwen3-coder-30B fitsvram = estimate_vram(30, "Q4") # ~18.9 GBprint(f"VRAM needed: {vram:.1f} GB")With 32GB VRAM, Qwen3-coder-30B at Q4 leaves about 13GB for context and other overhead. That’s plenty for most coding tasks.
Common Mistakes I Almost Made
-
Expecting 480B models to work on single GPU - They won’t. Save yourself the frustration.
-
Using default quantization - Always check VRAM requirements. A Q8 version might not fit.
-
Ignoring model-specific optimizations - The unsloth quantizations for Qwen models are optimized and recommended.
-
Overlooking context window - Your model needs VRAM for context too, not just weights.
-
Not matching model to task - A reasoning model (DeepSeek R1) for simple autocomplete is overkill. A small model for complex debugging won’t cut it.
Summary
In this post, I found the best local LLMs for RTX 5090 coding. The key point is Qwen3-coder-30B at Q4 is the consensus pick for pure coding, while Qwen3.5 27B offers the best all-around experience. DeepSeek R1 32B complements these for complex reasoning tasks.
All three fit comfortably within 32GB VRAM, give you privacy for your code, and eliminate API costs.
Final Words + More Resources
My intention with this article was to help others share my knowledge and experience. If you want to contact me, you can contact by email: Email me
Here are also the most important links from this article along with some further resources that will help you in this scope:
- 👨💻 Reddit: RTX 5090 + local LLM for app dev
- 👨💻 HuggingFace GGUF Models
- 👨💻 Unsloth Qwen3-coder GGUF
Oh, and if you found these resources useful, don’t forget to support me by starring the repo on GitHub!
Comments