LLM VRAM
Alibaba · 30.5B coding MoE (3.3B active · 128 experts) · GQA · 256K native context · Apache-2.0

Qwen3-Coder-30B-A3B VRAM requirements

20.8 GiB provisional
at Q4_K_M · unsloth build · 32K context · RTX 4090 24GB
fits a 24GB card (22.5 usable), tight — 1.7 GiB to spare · the standard Qwen3-30B-A3B measures the same 20.8 — the two unsloth repos agree to the last rounding; same weights, different training

Qwen3-Coder-30B-A3B needs 18.5 GiB at Q4_K_M (unsloth build) at 8K context and 20.8 GiB at 32K (reported KV counted) — a 24GB card (22.5 usable) runs it, tight, 1.7 GiB to spare. Every headline number on this page matches the standard Qwen3-30B-A3B's (fits agree within 0.1 GiB — the two unsloth repos are measured separately, and the official FP8 repos are the one exception, see the FAQ): the Coder is the same 30.5B-A3B MoE with coding-specialized post-training and a 256K native context (the standard stops at 40K). MoE residency rule stands — all 30.5B parameters stay in VRAM; 3.3B active buys speed, not GB. The densest 24GB fit is Q4_1 at 21.4 GiB. Searching "qwen3 30b a3b" lands on both — the FAQ below answers which one to download.

Prepared by LLM VRAM · build · weights measured at pinned revisions, context and overhead explicit · sources below

TL;DR
Run it: ollama run qwen3-coder:30b — fits a 24GB card (22.5 usable), tight at 32K (Ollama boots at 4K context — /set parameter num_ctx 32768 for the full window).
Baseline: 32K context, 22.5 GiB usable on a 24GB card — the one config this page promises. The quant table's main column prices that full 32K load (weights + overhead + reported KV @32K); at 4K context the KV term shrinks eightfold (≈0.4 GiB), so Q4_K_M at 4K ≈ 18.2 GiB. This page and the standard Qwen3-30B-A3B page answer the same numbers — pick between them by task, not by footprint. Buying for it? Price a used RTX 3090 24GB first.

Qwen3-Coder-30B-A3B is Alibaba's July 2025 coding refresh: the same 30.5B-A3B MoE as the standard model — 128 experts, 3.3B active, 48 full-attention GQA layers (config.json) — with code-specialized post-training and a 256K native context window (the standard's config stops at 40K). A key-by-key config diff against the standard A3B shows every attention and MoE parameter identical; only the context ceiling moved. VRAM follows the weights, not the training: file sizes identical to the last rounding, fits identical, and the MoE residency rule — every expert stays in VRAM whatever the active count.

Page built · each pinned source carries its own access date in Where every number comes from

Chart: one column per VRAM platform from 12GB up to 48GB-class (usable VRAM, GiB), zoned green = comfortable, amber = tight under 2.5 GiB of headroom, red = no fit; the accent staircase traces each platform's 32K ceiling quant — no tracked build fits 12GB at 32K at baseline precision, UD_Q2_K_XL exactly fills the 16GB column at 14.5 GiB, Q4_1 on the 24GB columns at 21.4, UD_Q6_K_XL on 32GB at 28.0; the 24GB × Q4_K_M sweet spot is marked at 1.7 GiB of headroom; the highlighted level's numbers match the standard Qwen3-30B-A3B page to one decimal — same weights, different training
One column per GPU, colored by verdict zone; the staircase is each card's 32K ceiling quant with the reported KV counted — and on this model the staircase is the standard Qwen3-30B-A3B's staircase to one decimal: no tracked build fits 12GB at 32K at baseline precision (smallest build 11.8 vs 10.5 usable), the 16GB column lands exactly on UD-Q2_K_XL (14.5 GiB, 0.03 spare), 24GB tops out at Q4_1 (21.4 GiB, 1.1 spare) with the highlighted Q4_K_M sweet spot at 20.8 GiB — 1.7 GiB of headroom, tight — and the RTX 5090 32GB reaches UD-Q6_K_XL at 28.0 GiB. Same weights, same fits to the last rounding; what changes is the task. The 48GB-class platform is now two separate doors: 2× RTX 3090 = 45.0 GiB usable, a single RTX 6000 Ada = 46.5 GiB — two cards are not one card doubled.

How much VRAM at each quantization? (weights + overhead + KV @32K, batch 1)

Main column totals at 32K context — the config this page promises: weights + overhead + the reported KV @32K (kaitchup; batch 1 — same per-token constant as the standard A3B, config diff verified key-by-key). The KV column carries that same reported figure per row. At 4K context the KV term shrinks eightfold (≈0.4 GiB), so Q4_K_M at 4K ≈ 18.2 GiB. The fit column judges each build's full 32K load against usable VRAM. Weights are actual file sizes.
QuantizationVRAM needed @32KKV @32K reported i · already in the left columnSmallest tracked fitNote
UD_TQ1_010.9 GiB3 GiBRTX 4060 Ti 16GBmeasured weights · main column = the full 32K load
UD_IQ1_S11.8 GiB3 GiBRTX 4060 Ti 16GBmeasured weights · main column = the full 32K load
UD_Q2_K_XL14.5 GiB3 GiBRTX 4060 Ti 16GBmeasured weights · main column = the full 32K load
Q4_K_M20.8 GiB3 GiBRTX 3090 24GBmeasured weights · main column = the full 32K load
Q4_121.4 GiB3 GiBRTX 3090 24GBmeasured weights · main column = the full 32K load
UD_Q6_K_XL28.0 GiB3 GiBRTX 5090 32GBmeasured weights · main column = the full 32K load
UD_Q8_K_XL37.0 GiB3 GiB2× RTX 3090 24GB (48GB aggregate)measured weights · main column = the full 32K load

GB vs GiB: card names are the manufacturer's nominal GB; totals here are GiB (230 bytes) — a "24GB" card holds 24 GiB, and a file quoted 18,556,686,912 B in decimal is the same 17.3 GiB. Caliber →

The 48GB-class doors, spelled out: a dual-GPU combo (2× 24GB; not one card doubled), a workstation card (RTX 6000 Ada), or a Mac Studio (unified memory; runs, slower tok/s).

How this page computes the numbers (reproduce any cell)
  • usable VRAM = nominal minus reserve, per card: 12GB → 10.5 GiB, 16GB → 14.5 GiB, 24GB → 22.5 GiB, 32GB → 30.0 GiB, 2× RTX 3090 24GB (48GB aggregate) → 45.0 GiB.
  • total@32K = listed file size + provisional runtime allowance + KV@32K; KV@32K = 3 GiB (reported — 98,304 B/token effective at 32K; source and caliber in the sources table)
  • The main column already prices the full 32K load, KV included; shorter-context figures live in the caption and FAQ where relevant.
  • A build fits a card at 32K when total@32K ≤ usable; tight = under 2.5 GiB of headroom, one site-wide threshold.

Is your GPU enough? (find your card: one row tells you)

Ceilings at 32K context (the stricter case), usable VRAM = nominal minus 1.5 GiB on 24GB-class, minus 2.0 GiB at 32GB. The picture mirrors the standard A3B: 12GB fits nothing at 32K (smallest build 11.8 GiB), 16GB lands exactly on UD-Q2_K_XL (14.5 GiB, 0.03 spare — a designed knife-edge), 24GB tops out at Q4_1 (21.4 GiB, 1.1 spare), and a 32GB RTX 5090 reaches UD-Q6_K_XL (28.0 GiB, 2.0 spare). At 8K the 12GB card joins: the smallest build drops to 9.7 GiB. Rows are ceilings — the biggest build that fits, not the page's pick; the recommended build lives in the hero, the buy section, and the chart's highlighted band.
Your GPUVRAMBiggest quant that fits (ceiling)How it feels
RTX 3060 12GB12 GB——
RTX 4060 Ti 16GB16 GBUD_Q2_K_XL (2-bit) · 14.5 GiB<0.05 GiB spare at 32K
RTX 3090 24GB24 GBQ4_1 (4-bit) · 21.4 GiB1.1 GiB spare at 32K
RTX 4090 24GB24 GBQ4_1 (4-bit) · 21.4 GiB1.1 GiB spare at 32K
RTX 5090 32GB32 GBUD_Q6_K_XL (6-bit) · 28.0 GiB2.0 GiB spare at 32K
2× RTX 3090 24GB (48GB aggregate)48 GBUD_Q8_K_XL (8-bit) · 37.0 GiB8.0 GiB spare at 32K

Quants stack by size: each GPU has exactly one ceiling — a card that runs a bigger build runs every smaller one. Main-column totals price the 32K load (weights + overhead + reported KV @32K); shorter context lowers every row by most of the KV term, and CPU offload trades tok/s for headroom.

What GPU should you buy for it? (the 24GB sweet spot logic)

The sweet spot
24 GB
Buys you
Q4_K_M, tight — Q4_1 is the densest fit
Representative hardware
RTX 3090 (used) / RTX 4090
The logic24GB is the tier that runs Q4_K_M at 32K: 20.8 GiB with the reported KV counted, 1.7 GiB to spare — tight, and the same math as the standard A3B. Below it, 16GB tops out at UD-Q2_K_XL (a 14.5 GiB knife-edge) and 12GB is 8K-only. Above it, an RTX 5090 32GB reaches UD-Q6_K_XL; nice, not necessary.
Why it fitsMoE saves compute, not memory: all 30.5B parameters (17.3 GiB at Q4_K_M) must sit in VRAM whatever the active count, and the KV rides a 3.0 GiB reported figure at 32K — the 3.3B-active design buys tok/s; the GB bill is a 30B-class bill, identical to the standard model's.

⚠ Tight is a site-wide threshold: under 2.5 GiB of headroom. Q4_K_M @32K leaves 1.7 GiB on a 24GB card — tight by the rule, comfortable in practice. The densest fit Q4_1 totals 21.4 GiB (1.1 to spare). Just past the line: Q5_K_M totals 23.7 GiB — 1.2 GiB over the 22.5 GiB usable; at 8K context it fits (21.5 GiB, 1.0 to spare), and the GPU ladder prices that. All totals carry the reported KV figure, so these verdicts are stable, not flip-check rows.

Tracked builds (actual file sizes, not theory)

One row per build we track. verified = we read the file listing; reported = community numbers, linked, not re-measured by us.
BuildPublisherFile size24GB @32KSource
UD_TQ1_0unsloth7.5 GiBOK · 10.9HF @b17cb02d verified
UD_IQ1_Sunsloth8.3 GiBOK · 11.8HF @b17cb02d verified
UD_Q2_K_XLunsloth11.0 GiBOK · 14.5HF @b17cb02d verified
Q4_K_Munsloth17.3 GiBTIGHT · 20.8HF @b17cb02d verified
Q4_1unsloth17.9 GiBTIGHT · 21.4HF @b17cb02d verified
UD_Q6_K_XLunsloth24.5 GiBNO · 28.0HF @b17cb02d verified
UD_Q8_K_XLunsloth33.5 GiBNO · 37.0HF @b17cb02d verified

Same-name, different-builds — the honest mirror case for this model: bartowski and ggml-org ship no Coder GGUF ladder (both 404 from our channel probes — a negative-existence note, not proof they never will), so unsloth is the tracked ladder, one row per build. The official FP8 repo is Qwen's own safetensors, pinned. Where 24GB ends at 32K: Q4_1 at 21.4 GiB; Q5_K_M (23.7 GiB) is the first door that misses, and Q8_0 (33.7 GiB) needs 48GB-class.

Self-host or API?

Compare an illustrative owned-GPU scenario with an API below. OpenRouter is the live price check; dated snapshots and editable examples are not standing rates.

Estimate owned-GPU vs API breakeven

This is a token-cost sensitivity exercise, not a purchase recommendation. The model still has to meet your quality and throughput needs.

Worked example: a $1,200 GPU kept 30 months plus 350W for 4 hours/day at $0.15/kWh costs about $46 per month. At a blended API price of $0.11/1M, breakeven is about 413M tokens/month. Replace every input with your own numbers.

InputValue

Monthly cost $46 · Breakeven tokens/month 413M
The static defaults and the script use the same formula. Nothing leaves this page.

Formula and evidence

Monthly hardware costGPU price ÷ months you keep it
Monthly electricityaverage watts × hours/day × 30 ÷ 1000 × your kWh price
Breakeven usage(hardware + electricity) ÷ blended API price per 1M tokens

OpenRouter lists qwen/qwen3-coder-30b-a3b-instruct at $0.07 input / $0.28 output per 1M tokens in the 2026-10-31 snapshot; the 4:1 blend is $0.11. The $1,200 GPU input is an editable example, not a market quote. Check the live provider page before committing budget. OpenRouter

Where every number comes from (every figure carries its tag)

Weights: pinned file sizes at pinned revisions.
Totals: measured weights + reported KV (community measurement, linked — same-architecture derivation verified key-by-key against the standard A3B) + borrowed overhead anchor. This page exists for one config: the 30B-class coding MoE × Q4_K-class quant × 32K context on a 24GB card — same footprint as the standard model, so the choice is training, not hardware.
Caliber: all figures in GiB (230 bytes) — VRAM is binary-native. Baseline: 32K context, 22.5 GiB usable on 24GB cards — the one config this page promises; the quant table's main column prices that full 32K load per build, and the fit column shows what every context/quant switch buys. KV @32K is the kaitchup reported figure (3.0 GiB, batch 1; 98,304 B/token — the standard A3B's per-token constant, config diff verified). MoE residency rule: VRAM follows total parameters (30.5B), not active ones (3.3B). Verify before buying hardware. How we compute these numbers →
What each number slot is made of. These tags are the legend for every badge on this page: they say what kind of evidence a number is, and what a verdict built on it can claim. Tag layers: measured = pinned file bytes (verified); projected totals = config-derived estimates; engine/door claims = publisher-reported; runtime-measured applies only where a row says so — no page here claims a runtime benchmark.
TagSlotWhat it isWhat the verdict can claim
reportedmodelHugging Face config.json (hypothesis-parameter carrier; key-by-key diff vs the standard A3B config on file)Tight, conditional — stands on the linked source, re-checkable by you.
reportedstaticHugging Face model pageTight, conditional — stands on the linked source, re-checkable by you.
reportedkvKV cache @ 32K — kaitchup measured writeup: 'At 32k context, batch/concurrency = 1, that is about 3.22 GB (or 3.0 GiB)'; applied to the Coder via same-architecture derivation (config diff vs the standard A3B: only max_position_embeddings 40960→262144 — per-token constant identical)Tight, conditional — stands on the linked source, re-checkable by you.
provisionaloverheadDeployment overhead — llama.cpp FA-on compute buffer anchor (507 MiB; measured on a different configuration — borrowed as a planning allowance; same constant as the other champion pages)Very likely right, order of magnitude only — replaced the moment measured values land.

FAQ

Qwen3-Coder-30B-A3B or the standard Qwen3-30B-A3B — which one do I download?

Same hardware, different training. Both are the 30.5B-A3B MoE with the same-size weight files — the two unsloth repos measure within 0.1 GiB of each other (separately harvested listings, not one copy), Q4_K_M totals 20.8 GiB at 32K context on either page, and the ladders match to one decimal. The one exception: the official FP8 repos differ (29.0 vs 30.2 GiB of weights, Qwen's own safetensors) — the identical part is the Q4-and-below GGUF ladder you will actually download. Download the Coder for IDE, agentic, and repo-scale coding work: its post-training is code-specialized and its native context is 256K (the standard's config stops at 40K). Download the standard for general chat and mixed workloads. If a guide says "qwen3 30b a3b" without the Coder name, check which task it describes — the search results mix the two on purpose and on accident.

Does Qwen3-Coder-30B-A3B fit in 24GB VRAM?

Yes, tight. The Q4_K_M build totals 20.8 GiB at 32K context against 22.5 GiB usable on an RTX 3090 24GB or 4090 24GB — 1.7 GiB to spare. The densest build that fits is Q4_1 at 21.4 GiB (1.1 GiB to spare). The footprint is identical to the standard Qwen3-30B-A3B: same weights, same fits.

How much VRAM does Qwen3-Coder-30B-A3B need at Q4_K_M?

20.8 GiB at 32K context: 17.3 GiB weights + 0.5 GiB runtime overhead + 3.0 GiB KV cache. The KV figure is reported (kaitchup: 'about 3.22 GB (or 3.0 GiB)' at 32K context, batch 1 — 48 GQA layers × 4 KV heads × 128 head dim); the Coder's config differs from the standard A3B only in the context ceiling (256K vs 40K), so the same per-token constant applies by derivation, not by copy. At 4K context the KV term shrinks eightfold (≈0.4 GiB), so the same build runs in ≈18.2 GiB. The short form (ollama run qwen3-coder:30b) pulls the ollama Q4_K_M build.

What is the smallest GPU that runs Qwen3-Coder-30B-A3B?

At 32K context an RTX 3060 12GB tops out at nothing — the smallest build totals 11.8 GiB against 10.5 GiB usable. At 8K context that build (UD_IQ1_S, 9.6 GiB) fits, tight. A 16GB card reaches UD_Q2_K_XL at 32K — 14.5 GiB against 14.5 GiB usable, a knife-edge fit, real but with only 0.03 GiB to spare. Q4_K_M needs a 24GB card.

Can Qwen3-Coder-30B-A3B run above Q4 on a 24GB card?

Not at 32K: Q5_K_M totals 23.7 GiB, 1.2 GiB over the 22.5 GiB usable — at 8K context it fits (21.5 GiB, 1.0 to spare). The 24GB ceiling at 32K is Q4_1 (21.4 GiB); the GPU ladder prices that. An RTX 5090 32GB reaches UD-Q6_K_XL at 28.0 GiB; Q8_0 (33.7 GiB) needs 48GB-class hardware.

Which Q4 should I pick — is there a same-name spread like the other models?

No spread to navigate here: bartowski and ggml-org ship no Coder GGUF ladder (both 404 from our channel probes — honest negative existence, they may appear later), so the tracked ladder is unsloth's, one row per build, and the official FP8 repo is Qwen's own. The one caveat is the usual one — the ollama blob bundles more than the GGUF files, so read file listings, not tag pages.

How does this site compute these VRAM numbers?

Weights are measured file sizes at pinned revisions (sources below); totals add runtime overhead plus the KV cache at 32K context. Here KV@32K = 3.0 GiB, the reported figure carried from the standard A3B (same architecture, config diff verified key-by-key). A build fits a card at 32K when the total clears usable VRAM (nominal minus reserve), and tight means under 2.5 GiB of headroom — the full formula lives in the method box under the quantization table.