# How much VRAM do you need to run Qwen3-Coder? 24 GB for the 30B, 48 GB for Next, a server for the 480B

Qwen3-Coder comes in three sizes, not five. The 30B-A3B is a 19 GB download and fits a 24 GB card, Qwen3-Coder-Next (80B) needs about 48 GB, and the 480B flagship is a 290 GB server model. Exact sizes from Ollama and Hugging Face, how much context adds, and what to do on 8 to 16 GB.

Updated Nov 17, 2026 · By Ari Vale

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: https://docs.vast.ai/guides/reference/referral-program?ref_id=623346).

**How much VRAM do you need for Qwen3-Coder? It depends on which of the three variants you mean.** The **30B-A3B** is a 19 GB download at Q4_K_M on Ollama and runs fully on a **24 GB GPU** at a 32K context. **Qwen3-Coder-Next** (80B total, 3B active) is a 52 GB download on Ollama and wants a **48 GB card** or a Mac with 64 GB or more of unified memory. The **480B-A35B** flagship is 290 GB at Q4_K_M, so it's a **multi-GPU server** model. Sizes read November 3, 2026 on Ollama's library and Qwen's own Hugging Face pages.

## The short answer (read Nov 3, 2026)

Qwen3-Coder has three sizes on Qwen's Hugging Face page and Ollama's library, read November 3, 2026. Qwen3-Coder-30B-A3B is 19 GB at Q4_K_M, 32 GB at Q8_0 and 61 GB at FP16, so a 24 GB GPU runs the 4-bit version with room for about 32K tokens of context. Qwen3-Coder-Next has 80B total and 3B active parameters; its Q4_K_M file is 52 GB on Ollama (48.4 GB on Qwen's GGUF repo), so it needs a 48 GB card or a 64 GB+ Mac; two 24 GB cards are a tight fit. Qwen3-Coder-480B-A35B is 290 GB at Q4_K_M and is a server model. Every variant supports 256K context, and long context adds VRAM on top of the file size. There is no 8B or 32B Qwen3-Coder; those are Qwen2.5-Coder sizes.

- **30B-A3B:** 19 GB file, fits a **24 GB** GPU (RTX 3090, 4090)
- **Next (80B-A3B):** 52 GB file, needs **48 GB** or a 64 GB+ Mac
- **480B-A35B:** 290 GB file, a **multi-GPU server**
- **Context costs extra:** about 3 GB per 32K tokens on the 30B
- **8 to 16 GB:** offload experts to system RAM, or run Qwen2.5-Coder

### Qwen3-Coder download sizes at 4-bit (Ollama, Nov 3, 2026)

- **19 GB** Qwen3-Coder 30B-A3B (qwen3-coder:30b-a3b-q4_K_M)
- **52 GB** Qwen3-Coder-Next (80B) (qwen3-coder-next:q4_K_M)
- **290 GB** Qwen3-Coder 480B-A35B (qwen3-coder:480b-a35b-q4_K_M)
- **256K** Native context (K tokens) (All three variants)

## How much VRAM does each Qwen3-Coder variant need?

Start from the file size, then add room for context. These are the published file sizes for each variant and quantization, read November 3, 2026. The GPU column is our read of those sizes plus a 32K context; check your own card in the [VRAM calculator](https://aliteq.com/tools/vram-calculator).

|   | Total / active params | Q4_K_M file | Q8_0 file | GPU that fits it at 32K context |
| --- | --- | --- | --- | --- |
| Qwen3-Coder-30B-A3B | 30.5B / 3.3B | 19 GB | 32 GB | 24 GB (RTX 3090, 4090) |
| Qwen3-Coder-Next | 80B / 3B | 52 GB (Ollama), 48.4 GB (Qwen GGUF) | 85 GB | 48 GB (RTX A6000, 6000 Ada) or 64 GB+ Mac |
| Qwen3-Coder-480B-A35B | 480B / 35B | 290 GB | 510 GB | Multi-GPU server |

Parameter counts are from each model card on Qwen's Hugging Face page. File sizes are Ollama's tag list, except the 48.4 GB figure, which is the sum of the Q4_K_M files in Qwen's own [Qwen3-Coder-Next-GGUF](https://huggingface.co/Qwen/Qwen3-Coder-Next-GGUF) repo.

![Screenshot of Ollama's qwen3-coder tag list: qwen3-coder:30b and latest at 19GB, 30b-a3b-q8_0 at 32GB, 30b-a3b-fp16 at 61GB, 480b-a35b-q4_K_M at 290GB, q8_0 at 510GB and fp16 at 960GB, all with 256K context. The 30b-a3b-q4_K_M row is outlined.](https://media.aliteq.com/media/ai/qwen3-coder/ollama-qwen3-coder-tags-2026-11-03.jpg)
Ollama's own qwen3-coder tag list, read November 3, 2026. The default tag (latest = 30b) is the 19 GB Q4_K_M build. · Screenshot of ollama.com by aliteq

### Is there a Qwen3-Coder 8B or 32B?

No. Qwen's [Qwen3-Coder repo](https://github.com/QwenLM/Qwen3-Coder) lists three model families: Qwen3-Coder-Next, Qwen3-Coder-480B-A35B and Qwen3-Coder-30B-A3B, plus their FP8, GGUF and base builds. The 7B, 14B and 32B coding models are **Qwen2.5-Coder**, the previous generation. If a guide tells you to run "Qwen3-Coder 32B", it's mixing the two up. An earlier version of this page did too; we corrected it on November 3, 2026.

## Does Qwen3-Coder-30B-A3B fit on a 24 GB GPU?

Yes, at 4-bit with a sensible context. The Q4_K_M file is 19 GB. On top of that sits the KV cache, which grows with every token of context. From the model's own config.json (48 layers, 4 KV heads, head size 128), that's about 96 KB per token, or roughly **3 GB per 32K tokens**.

|   | Weights (Q4_K_M) | KV cache | About this much VRAM |
| --- | --- | --- | --- |
| 16K | 17.2 GB | 1.5 GB | 19.5 GB |
| 32K | 17.2 GB | 3.0 GB | 21 GB |
| 64K | 17.2 GB | 6.0 GB | 24 GB |
| 128K | 17.2 GB | 12 GB | 30 GB |
| 256K | 17.2 GB | 24 GB | 42 GB |

Weights and the 16K row are from our [cost-to-run page for this model](https://aliteq.com/cost-to-run/qwen3-coder-30b-a3b), which adds about 0.8 GB of runtime overhead; the longer rows apply the same KV formula. So a 24 GB card holds the 30B at 32K comfortably and tops out around 64K. For the full 256K window you'd need about 42 GB, or a quantized KV cache. Qwen's own model card says: "If you encounter out-of-memory (OOM) issues, consider reducing the context length to a shorter value, such as `32,768`."

The 30B-A3B is a [mixture-of-experts](https://aliteq.com/moe-vs-dense-ai-models-explained) model: only 3.3B parameters work on each token, which is why it's quick, but all 30.5B still have to sit in memory. That's why the file is 19 GB even though it "thinks" like a much smaller model. Our [best GPU for Qwen3-Coder 30B](https://aliteq.com/cost-to-run/qwen3-coder-30b-a3b#best-gpu) page compares the 24 GB cards, and the [best local LLMs for a 24 GB GPU](https://aliteq.com/best-local-llm-24gb-gpu-qwen-gemma-gptoss) shows what else fits that tier.

### Watch out: Ollama gives you 4K or 32K context unless you change it

Ollama picks a default context from your VRAM. Its docs list "< 24 GiB VRAM: 4k context", "24-48 GiB VRAM: 32k context" and ">= 48 GiB VRAM: 256k context", and add: "Tasks which require large context like web search, agents, and coding tools should be set to at least 64000 tokens." A coding agent that seems to forget your files after a few turns is often running at 4K.

![Screenshot of Ollama's Context length docs: Ollama defaults to the following context lengths based on VRAM: under 24 GiB VRAM 4k context, 24-48 GiB VRAM 32k context, 48 GiB or more 256k context. Coding tools should be set to at least 64000 tokens. The 4k row is outlined.](https://media.aliteq.com/media/ai/qwen3-coder/ollama-context-default-2026-11-03.jpg)
Ollama's Context length page, read November 3, 2026. Set it with the app's slider or OLLAMA_CONTEXT_LENGTH when you serve. · Screenshot of docs.ollama.com by aliteq

## How much VRAM does Qwen3-Coder-Next need?

About 48 GB for the 4-bit build. Qwen describes Qwen3-Coder-Next as "an open-weight language model designed specifically for coding agents and local development", with "80B in total and 3B activated" parameters. Ollama's q4_K_M tag is 52 GB and its q8_0 tag is 85 GB; Qwen's own GGUF repo lists 48.4 GB for Q4_K_M and 84.8 GB for Q8_0.

![Screenshot of the Qwen3-Coder-Next model card on Hugging Face: Number of Parameters: 80B in total and 3B activated, 79B non-embedding, hidden dimension 2048, 48 layers in a hybrid layout of Gated DeltaNet and Gated Attention, 16 query heads and 2 KV heads, head dimension 256. The parameter line is outlined.](https://media.aliteq.com/media/ai/qwen3-coder/hf-qwen3-coder-next-2026-11-03.jpg)
Qwen's Qwen3-Coder-Next model card on Hugging Face, read November 3, 2026. · Screenshot of huggingface.co by aliteq

The good news is context. Only 12 of its 48 layers use full attention (the rest are linear-attention layers with a small fixed state), so its KV cache is about a quarter of the 30B's per token: roughly 0.75 GB per 32K tokens, about 6 GB for the full 256K. So once the 45 to 52 GB of weights fit, the full 256K window adds only about 6 GB more. Two 24 GB cards (48 GB total) are tight: our [cost-to-run page for Qwen3-Coder-Next](https://aliteq.com/cost-to-run/qwen3-coder-next) puts the Q4_K_M build at 46.1 GB with just 16K of context.

![Screenshot of Ollama's qwen3-coder-next tag list: latest and q4_K_M at 52GB, q8_0 at 85GB, all with 256K context. The q8_0 row is outlined.](https://media.aliteq.com/media/ai/qwen3-coder/ollama-qwen3-coder-next-tags-2026-11-03.jpg)
Ollama's qwen3-coder-next tag list, read November 3, 2026. · Screenshot of ollama.com by aliteq

## Can you run Qwen3-Coder-480B at home?

Not on a normal desktop. The Q4_K_M build is 290 GB on Ollama, the Q8_0 is 510 GB and the FP16 is 960 GB. Its KV cache is also the biggest: from its config.json (62 layers, 8 KV heads), about 248 KB per token, or close to 8 GB per 32K tokens. At 4-bit and 32K context that's roughly 300 GB of memory, which means several 80 GB data-center GPUs or a 512 GB Mac Studio-class machine. For most people, the 480B is something you call through an API, not something you host. Teams that do want to host it rent a multi-GPU node of 80 GB cards such as the [H100 SXM](https://aliteq.com/gpus/h100-sxm); our [cheapest H100 rental](https://aliteq.com/cheapest-h100-rental) guide compares where to get one.

## Can you run Qwen3-Coder on 8 GB, 12 GB or 16 GB of VRAM?

Not fully on the GPU. The smallest Qwen3-Coder is 19 GB at 4-bit, so on 8 to 16 GB you have three honest options:

- **Offload the experts to system RAM.** Because the 30B-A3B is a mixture-of-experts model, llama.cpp can keep the attention layers on the GPU and put expert weights in system RAM. It runs slower than fully on the GPU, and you need enough RAM for the rest of the 19 GB plus your OS. How it works: [--n-cpu-moe explained](https://aliteq.com/n-cpu-moe-llama-cpp-what-it-actually-does).
- **Drop to a smaller quant.** Our [cost-to-run page](https://aliteq.com/cost-to-run/qwen3-coder-30b-a3b) shows Q2_K at about 14 GB with 16K context, which squeezes into 16 GB, but with heavy quality loss. See [what quantization does](https://aliteq.com/what-is-quantization-llm-explained).
- **Run Qwen2.5-Coder instead.** The 7B and 14B fit 8 to 16 GB cards. See [best GPU for Qwen2.5-Coder 14B](https://aliteq.com/cost-to-run/qwen2.5-coder-14b#best-gpu).

## Should you buy a GPU or rent one to try Qwen3-Coder?

Try first if you're unsure. A 24 GB card is the floor for the 30B and a 48 GB card for Next, and both are cheap to rent by the hour. On Vast.ai on Nov 17, 2026, on-demand rentals started at $0.12/hr for an [RTX 3090](https://aliteq.com/gpus/rtx-3090) (24 GB) and $0.32/hr for an [RTX A6000](https://aliteq.com/gpus/rtx-a6000) (48 GB) (checked Nov 17, 2026). Listings change by the hour; [see today's prices on our cloud GPU page](https://aliteq.com/cloud-gpu).

**Try Qwen3-Coder 30B on a rented 24 GB card first** Pull qwen3-coder:30b on a rented 24 GB card, point your editor at it, and see if it's good enough before you buy hardware. This link opens Vast.ai with Ollama and Open WebUI ready to use; pick a verified host. [Rent a 24 GB GPU for an hour](https://cloud.vast.ai/?template_id=26e7446a7d6906ee366b620c84e1e422&ref_id=623346) (Referral link: we earn a commission if you buy.) Live RTX 3090 prices on Vast.ai, from and typical: https://aliteq.com/vast-ai-pricing

If you're buying, a [used RTX 3090](https://aliteq.com/used-rtx-3090-buying-guide-local-ai) is the usual cheapest route to 24 GB. For Qwen3-Coder-Next, compare a 48 GB card against a high-memory Mac on the [best GPU for Qwen3-Coder-Next](https://aliteq.com/cost-to-run/qwen3-coder-next#best-gpu) page.

**Want Qwen3-Coder-Next? Rent a 48 GB card** Qwen3-Coder-Next's 4-bit build is about 48 to 52 GB, so it needs a 48 GB GPU. Start an RTX A6000 from a one-click template in Runpod's Secure Cloud, run your own repo through it, and stop it when you're done. [Rent a 48 GB A6000 on Runpod](https://console.runpod.io/signup?ref=nuninlts) (Referral link: we earn a commission if you buy.) Live RTX A6000 prices on Runpod, from and typical: https://aliteq.com/runpod-pricing

## Which Qwen3-Coder should you run?

Match it to your memory:

- **24 GB GPU (RTX 3090, [RTX 4090](https://aliteq.com/gpus/rtx-4090)) or 32 GB ([RTX 5090](https://aliteq.com/gpus/rtx-5090)):** Qwen3-Coder-30B-A3B at Q4_K_M, context set to 32K to 64K. A 32 GB card fits Q6_K at 16K context per our [cost-to-run page](https://aliteq.com/cost-to-run/qwen3-coder-30b-a3b).
- **48 GB GPU or a 64 GB+ Mac (two 24 GB GPUs are tight):** Qwen3-Coder-Next at Q4_K_M. Its small KV cache leaves room for long context.
- **8 to 16 GB:** the 30B with expert offload to system RAM, or Qwen2.5-Coder 7B/14B.
- **480B:** use it through an API; it isn't a home model.

Then set it up in your editor: [local AI coding assistant in VS Code](https://aliteq.com/local-ai-coding-assistant-vs-code) or [Ollama with OpenCode](https://aliteq.com/how-to-use-ollama-with-opencode). Wondering whether it can replace a subscription? See [Qwen3-Coder vs GitHub Copilot](https://aliteq.com/qwen3-coder-vs-github-copilot).

> **What we did and didn't check**
>
> Every size on this page comes from Ollama's library or Qwen's Hugging Face pages, read November 3, 2026. The context math uses each model's own config.json with the same engine as our [VRAM calculator](https://aliteq.com/tools/vram-calculator). We didn't run speed tests on our own hardware, so this page gives no tokens-per-second figures.

This guide is part of our [Which local AI model fits my GPU's VRAM? The 8GB to 32GB chart, model by model](https://aliteq.com/best-local-llm-vram-tiers-what-actually-fits) guide and our [Which Qwen model can you run locally? Every size matched to your GPU](https://aliteq.com/qwen-models-run-locally) guide. Related guides: [Run Qwen3.8 27B locally without the Ollama defaults that make it look bad](https://aliteq.com/how-to-run-qwen3-locally), [Should you run gpt-oss, Qwen3 or DeepSeek as your open model in 2026?](https://aliteq.com/gpt-oss-vs-qwen3-vs-deepseek), [Qwen3.5 9B is what 'ollama run qwen3.5' actually gives you](https://aliteq.com/run-qwen3-5-9b-locally).

## Quick answers

**Q: How much VRAM do you need for Qwen3-Coder?**

A: It depends on the variant. Per Ollama's library (read Nov 3, 2026), Qwen3-Coder-30B-A3B is 19 GB at Q4_K_M and fits a 24 GB GPU with about 32K of context. Qwen3-Coder-Next (80B total, 3B active) is 52 GB at Q4_K_M on Ollama and needs a 48 GB GPU or a Mac with 64 GB or more. Qwen3-Coder-480B-A35B is 290 GB at Q4_K_M and needs a multi-GPU server. Long context adds VRAM on top of the file size.

**Q: Can Qwen3-Coder run on 8 GB or 16 GB of VRAM?**

A: Not fully on the GPU, because the smallest Qwen3-Coder is a 19 GB file at 4-bit. On 16 GB you can run the 30B-A3B by offloading expert weights to system RAM in llama.cpp, which is slower, or use a 2-bit build with heavy quality loss. On 8 GB, Qwen2.5-Coder 7B is the practical choice.

**Q: Is there a Qwen3-Coder 32B or 8B?**

A: No. Qwen's Qwen3-Coder repo lists Qwen3-Coder-Next, Qwen3-Coder-480B-A35B and Qwen3-Coder-30B-A3B. The 7B, 14B and 32B coding models are Qwen2.5-Coder, the previous generation.

**Q: How much extra VRAM does the 256K context take?**

A: For the 30B-A3B, about 3 GB per 32K tokens, so the full 256K adds roughly 24 GB on top of the 17 GB of weights. Qwen3-Coder-Next uses full attention in only 12 of its 48 layers, so its KV cache is about 0.75 GB per 32K tokens, roughly 6 GB at 256K. Qwen's model card suggests dropping to 32,768 tokens if you run out of memory.

**Q: Why does Qwen3-Coder forget my code in Ollama?**

A: Usually the context is too short. Ollama's docs say it defaults to 4K context under 24 GiB of VRAM and 32K between 24 and 48 GiB, and that coding tools should be set to at least 64,000 tokens. Raise it in the app's settings or with OLLAMA_CONTEXT_LENGTH.

**Q: Is Qwen3-Coder free to use commercially?**

A: The 30B-A3B, Next and 480B-A35B model pages on Hugging Face all list the Apache 2.0 license (read Nov 3, 2026), which allows commercial use under its terms.

## Sources

- [Ollama library, qwen3-coder tags (download sizes and context per tag, read Nov 3, 2026)](https://ollama.com/library/qwen3-coder/tags)
- [Ollama library, qwen3-coder-next tags (read Nov 3, 2026)](https://ollama.com/library/qwen3-coder-next/tags)
- [Ollama docs, Context length (default context by VRAM, read Nov 3, 2026)](https://docs.ollama.com/context-length)
- [Qwen on Hugging Face, Qwen3-Coder-30B-A3B-Instruct model card and config.json (read Nov 3, 2026)](https://huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct)
- [Qwen on Hugging Face, Qwen3-Coder-Next model card and config.json (read Nov 3, 2026)](https://huggingface.co/Qwen/Qwen3-Coder-Next)
- [Qwen on Hugging Face, Qwen3-Coder-Next-GGUF file sizes (read Nov 3, 2026)](https://huggingface.co/Qwen/Qwen3-Coder-Next-GGUF)
- [Qwen on Hugging Face, Qwen3-Coder-480B-A35B-Instruct model card and config.json (read Nov 3, 2026)](https://huggingface.co/Qwen/Qwen3-Coder-480B-A35B-Instruct)
- [QwenLM on GitHub, Qwen3-Coder README (model lineup and context, read Nov 3, 2026)](https://github.com/QwenLM/Qwen3-Coder)

---

Canonical: https://aliteq.com/can-you-run-qwen3-coder-locally

This page has referral links: we earn a commission if you buy, at no cost to you.
