Home/Hardware/24GB VRAM
Qwen ยท 24GB VRAM

Best Qwen Model for 24GB VRAM (24GB VRAM)

The Qwen family at full strength on an RTX 3090/4090

๐Ÿ“… Published: July 7, 2026๐Ÿ”„ Last Updated: August 2026โœ“ Manually Reviewed
Short answer

The best Qwen model for 24GB VRAM in 2026 is Qwen3.6 27B โ€” ~17GB at Q4_K_M and ~30 tok/s on an RTX 4090 or 3090, with a 68.9% SWE-bench Verified score that beats Qwenโ€™s own 397B MoE on agentic coding. For pure code quality run Qwen 2.5 Coder 32B (~20GB, 92.7% HumanEval); for fast agent loops, the MoE Qwen3-Coder 30B (~50 tok/s). 24GB is the tier where the Qwen family stops asking for compromises.

Models that fit in 24GB VRAM

Tested reference: RTX 4090 / RTX 3090 (24GB). Figures are for Q4_K_M with a modest context window.

ModelSizeBuildVRAM usedSpeed
WINNERQwen3.6 27B
The familyโ€™s current headline act โ€” agentic coding and reasoning that embarrasses much larger models, with ~7GB left for context.
ollama pull qwen3.6:27b
27B (dense)Q4_K_M~17GB~30 tok/s
Qwen 2.5 Coder 32B
Still the SOTA dense local coder (92.7% HumanEval) โ€” the pick when the work is code and only code.
ollama pull qwen2.5-coder:32b
32BQ4_K_M~20GB~27 tok/s
Qwen 2.5 32B
The proven generalist โ€” chat, RAG and multilingual work at full Q4 quality.
ollama pull qwen2.5:32b
32BQ4_K_M~20GB~28 tok/s
Qwen3-Coder 30B
A 256K native context at small-model speed โ€” built for agent loops that make many calls.
ollama pull qwen3-coder:30b
30B (MoE, ~3B active)Q4_K_M~18GB~50 tok/s
Qwen 3 14B (Q8)
The near-lossless option โ€” Q8 fidelity plus a huge context often beats more parameters at Q4.
ollama pull qwen3:14b-q8_0
14BQ8_0~16GB~32 tok/s

What won't fit in 24GB

  • โœ—Qwen 2.5 72B (needs ~42GB) โ€” Needs 48GB โ€” two 24GB cards.
  • โœ—Qwen3-Coder-Next 80B (needs ~52GB (Q4)) โ€” The bigger MoE coder wants an H100 or 2ร—RTX 5090 โ€” and the 27B dense scores within 2 points of it on SWE-bench anyway.
  • โœ—Qwen 2.5 Coder 32B (Q8) (needs ~35GB) โ€” Q8 of the 32B coder does not fit; at Q4 the quality loss on code is small.

How to fit more in 24GB

  • โ†’Decide by the benchmark that matches your day: SWE-bench (multi-step, agentic) favours Qwen3.6 27B; HumanEval (single-file correctness) favours Coder 32B. They measure different skills.
  • โ†’Only one 17โ€“20GB Qwen fits at a time โ€” but pulling several costs disk, not VRAM. Let Ollama swap models per task instead of hunting for one Qwen that does everything.
  • โ†’The 27B leaves ~7GB of KV headroom, the 32Bs only ~4GB. If your prompts run long โ€” RAG, agents with history โ€” that difference is the real argument for the 27B.

Quick start

Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
Run the winner
ollama run qwen3.6:27b
Once your hardware is sorted

Go from "it runs" to actually building

All 519 chapters โ€” running local models, RAG, agents, fine-tuning โ€” plus the Python Lab and every course added later.

$149 once unlocks everything, forever โ€” about $0.29/chapter for life. Prefer to spread it out? Pro is $79/year (saves 27%) or $8.99/month.
Secure checkout by Lemon Squeezy โ€” your card never touches this siteInstant access the moment you payFirst chapter of every course is free โ€” try before you buy

Frequently asked questions

Which Qwen model is best for a 24GB GPU?

Qwen3.6 27B for most people โ€” ~17GB at Q4, ~30 tok/s on an RTX 4090, 68.9% SWE-bench Verified. Choose Qwen 2.5 Coder 32B for maximum single-file code quality, or Qwen3-Coder 30B (MoE) when agent speed matters more than depth.

Qwen3.6 27B vs Qwen 2.5 32B โ€” which should I run?

The 27B, unless you have a reason not to: it is newer, scores higher on coding and reasoning, runs slightly faster, and its ~17GB footprint leaves nearly twice the context headroom of the ~20GB 32B. The 32B remains a fine generalist if your workflows are already tuned to it.

Can 24GB run Qwen 2.5 72B or Qwen3-Coder-Next?

No โ€” the 72B needs ~42GB and Qwen3-Coder-Next ~52GB at Q4. Both are 48GB-plus territory (two 24GB cards or datacenter hardware). The 27โ€“32B picks above are the honest single-card ceiling.

Related guides

Ready to Go Beyond Tutorials?

20 structured courses with hands-on chapters - build RAG chatbots, AI agents, and ML pipelines on your own hardware.

Was this helpful?

Free Tools & Calculators