The best coding model you can run on one GPU is Qwen3.8 27B, on a 24GB card. On our VRAM numbers it fits an RTX 3090, 4090 or any 24GB card at Q5_K_M with 32K tokens of context in about 21.2 GB, and Qwen's own model card reports 61.7 on SWE-bench Pro and 73.0 on Terminal Bench 2.1 for it. If you want faster replies, run a 30B mixture-of-experts coder instead: Qwen3-Coder 30B-A3B or Cohere's North Mini Code. On 16GB, Qwen3.8 27B only fits at a 3-bit quant. Every fact here was re-read on the vendor's own page on Nov 6, 2026.
What is the best coding model you can run on one GPU? On 24GB, Qwen3.8 27B
The short answer for a 3090, 4090 or any 24GB card, what changes on 16GB and 12GB, the fast MoE alternatives, and the honest limits of every benchmark number, re-checked on each vendor's own page Nov 6, 2026.

This page has referral links: we earn a commission if you buy, at no cost to you.
Our Vast referral code: 623346 (link: https://cloud.vast.ai/?ref_id=623346). New users get no bonus from it; we earn 3% of what referred users spend (Vast's referral program docs).
Our Runpod referral code: nuninlts (link: https://console.runpod.io/signup?ref=nuninlts). A new account that signs up with Google through it and loads $10 gets a one-time bonus credit, a fixed $5 for European customers and a random $5 to $500 elsewhere (Runpod says most get $5), valid 90 days; we earn 3% of Pod and 5% of Serverless spend for the first 6 months (Runpod's referral docs).
What is the best coding model for a 24GB GPU?
Qwen3.8 27B. It is the newest Qwen dense model in the size that fits a single 24GB card with room for real context, and Qwen's own benchmark table puts it ahead of its previous 27B by a clear margin on agentic coding.
What Qwen's model card says, read Nov 6, 2026:
- Size and licence. "Number of Parameters: 27B", "Context Length: 262,144 natively and extensible up to 1,000,000 tokens", "License: apache-2.0".
- What it's built for. "Qwen3.8 delivers substantial gains across coding, professional work, research, and long-horizon agentic tasks."
- Thinking. "Thinking mode is on by default and can be disabled per request". It also reads images and video.
- The coding scores. 61.7 on SWE-bench Pro and 73.0 on Terminal Bench 2.1 (Terminus), against 53.5 and 63.4 for Qwen3.6 27B in the same table. If you already run the older model, our Qwen3.6 27B local guide has its setup. For SWE-bench Pro, the card's note says that except for Opus4.6 Max "all models are evaluated with the Claude Code harness at temp=1.0, top_p=0.95, and a 256K context window."

Why it fits: only 16 of its 64 layers keep a growing KV cache; the other 48 use linear attention with a small fixed state. So adding context costs little memory for a model this size. Full numbers by quant are on cost to run Qwen3.8 27B and in our Qwen3.8 27B hardware guide.
The easiest way to run it is Ollama. Its qwen3.8 library page lists qwen3.8:27b as the latest tag, an 18GB download with a 256K context window, labelled for tools, thinking and vision. Set the context length yourself: Ollama's OpenCode page says "OpenCode requires a context length of 64k or higher."

Is there a faster coding model that still fits one GPU?
Yes: a mixture-of-experts coder. Qwen3.8 27B is dense, so every token reads all 27B weights, which makes it accurate but not instant. A mixture-of-experts model keeps all its weights in memory but reads only a few billion per token, so it generates much faster on the same card.
Two are worth knowing:
- Qwen3-Coder 30B-A3B. Qwen's card lists "30.5B in total and 3.3B activated" and a 262,144-token native context, under Apache-2.0. It "supports only non-thinking mode", so it answers straight away, and Qwen says it "excels in tool calling capabilities." It is the older model: its Hugging Face repo was created on Jul 31, 2025. On our numbers: Q4_K_M with 32K context, about 21.0 GB.
- North Mini Code 1.0 (Cohere). Cohere's card says "Model Size: 30B total; 3B active", a 256K context with 64K max output, Apache 2.0, and lists 67.6 on SWE-Bench Verified and 40.2 on SWE-Bench Pro. Three of every four layers use sliding-window attention, so long context is cheap. On our numbers: Q4_K_M with 32K context, about 19.4 GB, plus roughly 0.6 GB for the sliding-window cache. Cohere publishes an official 4-bit build (w4a16); its card's vLLM example uses two GPUs, and it asks for vLLM main and OpenCode main "until a new release is available", so expect some setup work.

Qwen3.8 27B
Dense · 27B
Qwen3-Coder 30B-A3B
MoE · 3.3B active
What about Devstral Small 2 for coding agents?
Devstral Small 2 is the pick if you live in an agent tool and want a dense model a size below Qwen3.8. Mistral's card says it is "designed to excel at agentic coding tasks", has "A 256k context window", is Apache 2.0, and lists 68.0 on SWE-bench Verified. On our numbers it fits at Q4_K_M with 32K context in about 19.3 GB, or Q6_K with 8K in about 20.4 GB. Its KV cache is heavier than Qwen3.8's (all 40 layers keep one), so long context costs more memory.

Can I compare these benchmark scores?
Not directly. Each lab ran its own harness: Qwen used the Claude Code harness for Qwen3.8, Cohere used SWE-agent v1.1.0, and Mistral says its table uses "publicly reported values for competitor models". Some report SWE-bench Verified, some SWE-bench Pro, which is harder. So 61.7 on Pro for Qwen3.8 27B and 67.6 on Verified for North Mini Code are not on the same scale. The one clean comparison is inside a single table: on Qwen's own page, Qwen3.8 27B beats Qwen3.6 27B on every coding row shown. Qwen3.6 27B itself lists 77.2 on SWE-bench Verified on its card, so it remains a solid choice if your tools already work with it.
We did not run any of these models ourselves. The VRAM figures are estimates from our engine, not measurements, and we have no speed tests of our own.
Which coding model should I run on 16GB or 12GB?
On 16GB, you trade quality for fit. Qwen3.8 27B fits only at Q3_K_M with 8K context (about 13.9 GB on our numbers), which is fine for single-file work but short for an agent. gpt-oss-20b at Q4_K_M with 32K context (about 14.1 GB) is the long-context option, and Devstral Small 2 at Q4_K_M with 8K (about 15.6 GB) is tight. The 30B MoE coders need part of the model in system RAM on 16GB; our MoE offloading guide shows how. More detail: what fits a 16GB card.
On 12GB, drop to the 9B to 14B tier: Qwen3.5 9B at Q6_K fits with 32K context in about 9.2 GB, and Qwen2.5-Coder 14B at Q4_K_M with 8K in about 10.6 GB. Both are useful for completions and single files; neither matches a 27B on multi-file changes. Our best local LLM for 12GB VRAM guide covers that tier beyond coding.
24GB
- Best pick (our numbers)
- Qwen3.8 27B
- Faster option
- Qwen3-Coder 30B-A3B, North Mini Code
- Fits at
- Q5_K_M 32K ~21.2 GB; MoE Q4_K_M 32K ~19.4-21.0 GB
16GB
- Best pick (our numbers)
- Qwen3.8 27B (3-bit)
- Faster option
- gpt-oss-20b
- Fits at
- Q3_K_M 8K ~13.9 GB; Q4_K_M 32K ~14.1 GB
12GB
- Best pick (our numbers)
- Qwen2.5-Coder 14B
- Faster option
- Qwen3.5 9B
- Fits at
- Q4_K_M 8K ~10.6 GB; Q6_K 32K ~9.2 GB
Size any other model or context length in the VRAM calculator.
Should I rent a GPU before buying one for coding?
If you don't own a 24GB card yet, renting one for an hour is the cheapest way to see whether Qwen3.8 27B is good enough on your own code. On Nov 17, 2026 our tracker read an RTX 3090 on Vast.ai from $0.12/hr on-demand and on Runpod at $0.50/hr. An RTX 4090 read from $0.27/hr on Vast and $0.89/hr on Runpod (checked Nov 17, 2026). Prices move hourly; today's are on our cloud GPU page. If the test convinces you, a used RTX 3090 is the cheapest 24GB card to own.
For a deeper look at the rental side, see the cheapest RTX 4090 rental.
Verdict
Qwen3.8 27B on a 24GB card
Best for: 24GB: Qwen3.8 27B (best answers) or a 30B MoE coder (speed). 16GB: Qwen3.8 27B at 3-bit or gpt-oss-20b. 12GB: Qwen2.5-Coder 14B or Qwen3.5 9B.
Ready to wire a model into your tools? Our guides to using Ollama with Claude Code and coding agents on local models cover terminal agents, and the local AI coding assistant for VS Code guide covers the editor route. Wondering how a local coder stacks up against the paid default? Read Qwen3-Coder vs GitHub Copilot.
This guide is part of our Which local AI model fits my GPU's VRAM? The 8GB to 32GB chart, model by model guide. Related guides: Best local LLM for 8GB VRAM: what fits (moved to our fuller guide), Is the DGX Spark worth it in November 2026, Which Gemma 4 size fits your GPU? Match E4B up to 31B to your VRAM.
The questions people actually ask
What is the best local LLM for coding on an RTX 3090 or 4090?
Is Qwen3-Coder 30B still worth running?
Can I run Qwen3-Coder-Next 80B on one GPU?
Do I need 24GB, or will 16GB work for coding?
How much context does a local coding agent need?
Is local coding private enough for company code?
For a general model alongside your coding one, see what else fits in 24GB, and for agent setups, the best local coding model for OpenCode.
Found this useful? Share it
Sources
What this guide was researched from. How we check facts and compute numbers: methodology.
- Qwen, Qwen3.8-27B model card (vendor page: 27B, 262,144-token native context, Apache-2.0, coding benchmark table, thinking on by default; read Nov 6, 2026)
- Ollama library, qwen3.8 (tags, 18GB download, 256K context, tools/thinking/vision labels; read Nov 6, 2026)
- Qwen, Qwen3.6-27B model card (vendor page: SWE-bench Verified table; read Nov 6, 2026)
- Qwen, Qwen3-Coder-30B-A3B-Instruct model card (vendor page: 30.5B total, 3.3B activated, non-thinking only; read Nov 6, 2026)
- Mistral AI, Devstral Small 2 24B model card (vendor page: 24B, 256k context, SWE-bench Verified 68.0, single RTX 4090 statement; read Nov 6, 2026)
- Cohere, North Mini Code 1.0 model card (vendor page: 30B total, 3B active, 256K context, Apache 2.0, SWE-Bench Verified 67.6, Pro 40.2; read Nov 6, 2026)
- Cohere, North Mini Code 1.0 w4a16 (official 4-bit build, Hugging Face; read Nov 6, 2026)
- Ollama docs, OpenCode integration ("OpenCode requires a context length of 64k or higher"; read Nov 6, 2026)
- aliteq cloud GPU tracker (Vast and Runpod single-GPU prices, reading of Nov 6, 2026, 21:20 UTC)
Founder & chief editor
Ari Vale
Founder and chief editor of Aliteq (a PC hardware shop from 2019, now a US-based publication). Ari Vale is my pen name: I stay anonymous, the work doesn't. I research the questions people actually ask, check every price and limit against the vendor's own pages, and write down what I'd choose and why. I use the cloud-GPU and AI-video services I write about.
Work out the hardware
Best local LLM for 16GB
Exactly which models fit a 16GB card — and the tier to skip.
VRAM calculator
See exactly which models fit your card, at any context length.
RTX 5080 vs RTX 4090
Why 16GB loses to 24GB for local AI, newer card or not.
What it costs to run
Live rent-vs-buy economics for running a model on real hardware.
GPUs in this article
Specs, the AI models each one runs, and where to buy or rent it.
Email list
Local AI, only the changes that matter
A new model your GPU can actually run, a GPU price move worth acting on, or a fix that saves you an evening. Nothing in between.
Written and sent by hand. One-click unsubscribe in every email. Emails may contain referral links.
Keep reading

Run a 120B MoE on an 8-24GB GPU with llama.cpp --n-cpu-moe
Moving MoE experts into system RAM can make a model five times faster, or noticeably slower. Both are true. With Qwen3.8 Flash Next now running on 8GB and 12GB cards, here is what the flag moves, where your RAM becomes the limit, and which speed tricks quietly change the answers.
Ari Vale · · 12 min

Got a 16GB GPU? Here are the local AI models that fit, from gpt-oss-20b to Qwen3.8 27B
16GB used to stop at 14B models. Now gpt-oss-20b runs in about 14 GB in its own 4-bit format, and Qwen3.8 27B fits at a 3-bit quant. Here is what runs on an RTX 5060 Ti, 4060 Ti or 5070 Ti, on our numbers, and when system RAM takes you further.
Ari Vale · · 8 min

Run Qwen3.8 27B at home with no graphics card? AMD just showed it works
Day-zero support for the new Qwen3.8 27B just landed on two AMD boxes — one needs a graphics card, one doesn't — and the tokens-per-second numbers are real.
Ari Vale · · 6 min

What's the best model for a 24GB RTX 3090 or 4090? Usually Qwen3.8 27B
Short answer: Qwen3.8 27B. On our VRAM numbers it fits a 24GB card at Q5_K_M with 32K of context, and Ollama's default download is 18 GB. Gemma 4 and Qwen3.6 MoE models are faster, gpt-oss-20b leaves the most room, and NVIDIA's 24GB Nemotron comes with a runtime catch.
Ari Vale · · 9 min