Qwen3-30B-A3B VRAM requirements

Qwen3-30B-A3B needs about 18.9 GiB of GPU memory at Q4_K_M with an 8K context. 24 GB GPUs like the RTX 4090 are enough. At 32K context it needs about 21.3 GiB, which fits 32 GB cards.

These are estimates from the model's config and file sizes, not measurements. How we calculate

VRAM by quantization

QuantFile sizeTotal at 8KTotal at 32K
BF16 safetensors61.1 GB58.2 GiB–60.1 GiB60.5 GiB–62.5 GiB
GGUF Q8_032.5 GB31.1 GiB–32.2 GiB33.4 GiB–34.6 GiB
GGUF Q6_K (Qwen)25.1 GB24.2 GiB–25.1 GiB26.5 GiB–27.5 GiB
GGUF Q5_K_M (Qwen)21.7 GB21.1 GiB–21.9 GiB23.4 GiB–24.3 GiB
GGUF Q4_K_M18.6 GB18.2 GiB–18.9 GiB20.4 GiB–21.3 GiB

Names like Q4_K_M and Q8_0 are quantization levels: fewer bits per weight means a smaller file and a small loss of quality. Totals add the KV cache (memory that grows with context length) and runtime buffers, for one chat at a time. Download files

Which GPUs can run it

MemoryUsableExamplesAt 8KAt 32K
8 GB7.0 GiBRTX 4060, RTX 3060, RTX 5060 Ti +1 moreDoes not fitDoes not fit
10 GB9.0 GiBRTX 3080Does not fitDoes not fit
12 GB11.0 GiBRTX 4070, RTX 3060, RTX 5070 +2 moreDoes not fitDoes not fit
16 GB14.0 GiBRTX 4080 SUPER, RTX 5080, RX 7800 XT +5 moreDoes not fitDoes not fit
16 GB15.0 GiBRTX 4060 Ti, RTX 4070 Ti SUPERDoes not fitDoes not fit
20 GB18.0 GiBRX 7900 XTDoes not fitDoes not fit
24 GB22.0 GiBRTX 4090, RX 7900 XTX, RTX 3090FitsTight fit
32 GB30.0 GiBRTX 5090Runs comfortablyFits
48 GB46.0 GiBL40SRuns comfortablyRuns comfortably
80 GB78.0 GiBA100, H100Runs comfortablyRuns comfortably
64 GB · unified54.0 GiBApple M2 MaxRuns comfortablyRuns comfortably
128 GB · unified96.0 GiBRyzen AI Max+ 395Runs comfortablyRuns comfortably
128 GB · unified112.0 GiBDGX Spark (GB10)Runs comfortablyRuns comfortably
128 GB · unified116.0 GiBApple M4 MaxRuns comfortablyRuns comfortably

GGUF Q4_K_M, one chat at a time. Usable memory is the total minus a default reserve for the OS and display.

Detailed checks

Architecture

The KV cache grows with context: about 0.8 GiB at 8K and 3 GiB at 32K in FP16. The model has 4 KV heads for 32 query heads (grouped-query attention), which keeps that cache small. All experts stay in memory, so the weight size follows the total parameter count, not the active one.

FAQ

Is the download size the same as VRAM use?

No. The Q4_K_M file is about 17.3 GiB, but with an 8K context the total is about 18.9 GiB, because the KV cache and runtime buffers sit on top of the weights.

How much memory does a longer context add?

For Qwen3-30B-A3B the KV cache is about 0.8 GiB at 8K tokens and 3 GiB at 32K in FP16. The weights stay the same size.

Which quantization should I use?

Start with Q4_K_M (about 18.9 GiB at 8K). If you have the memory, BF16 needs about 60.1 GiB and stays closer to the original weights.

Download files

QuantFilesFile sizeEngine
BF16 safetensors
16 safetensors shards
First shard: model-00001-of-00016.safetensors
Last shard: model-00016-of-00016.safetensors
View all 16 shard files
  • model-00001-of-00016.safetensors
  • model-00002-of-00016.safetensors
  • model-00003-of-00016.safetensors
  • model-00004-of-00016.safetensors
  • model-00005-of-00016.safetensors
  • model-00006-of-00016.safetensors
  • model-00007-of-00016.safetensors
  • model-00008-of-00016.safetensors
  • model-00009-of-00016.safetensors
  • model-00010-of-00016.safetensors
  • model-00011-of-00016.safetensors
  • model-00012-of-00016.safetensors
  • model-00013-of-00016.safetensors
  • model-00014-of-00016.safetensors
  • model-00015-of-00016.safetensors
  • model-00016-of-00016.safetensors
61.06 GB
61,064,245,248 bytes
vllm, sglang
GGUF Q8_0Qwen3-30B-A3B-Q8_0.gguf32.48 GB
32,483,931,648 bytes
llama.cpp, ollama
GGUF Q6_K (Qwen)Qwen3-30B-A3B-Q6_K.gguf25.09 GB
25,092,531,712 bytes
llama.cpp, ollama
GGUF Q5_K_M (Qwen)Qwen3-30B-A3B-Q5_K_M.gguf21.73 GB
21,725,580,800 bytes
llama.cpp, ollama
GGUF Q4_K_MQwen3-30B-A3B-Q4_K_M.gguf18.56 GB
18,556,685,824 bytes
llama.cpp, ollama
How this number is calculated

Total = weight file + KV cache + runtime buffers. The range spans low to high runtime overhead for the engine shown.

GGUF Q4_K_M · 8,192 tokens · llama.cpp

Weights (file)
17.28 GiB (18,556,685,824 bytes)
KV cache
0.75 GiB (805,306,368 bytes)
Runtime buffers
0.13 GiB–0.90 GiB
Total
18.16 GiB–18.93 GiB
  • Requested context is within the recorded native window of 40960 tokens.
  • Full-resident weight estimates use total parameters, including inactive MoE experts.
  • This MoE lists 30532122624 total parameters and 3300000000 active parameters. Active-parameter compute is not used as the weight-residency figure.
  • Weight bytes come from the selected weight files only, not from every file in the repository.
  • Download file size is not peak GPU memory. Runtime layout, allocator padding, and KV are extra.
  • Counted files: Qwen3-30B-A3B-Q4_K_M.gguf.
  • Context budget is the number of cached tokens per sequence (prompt plus reserved generation).
  • Concurrent sequences share one model replica; weights are not multiplied by sequence count.

How we calculate

Open the calculator with this model

Related pages

Sources

Calculator

Loading catalog snapshot…

Context length

Longer context needs more memory for the KV cache, the model's working memory for the conversation.

More options
Quantization
Runtime

Engine and KV cache type for this estimate.

Workload

Overhead scenario and the prefill workspace.

Topology

How the model is split across devices. Memory is not added together.

Replica count is an advanced deployment option. Quantity is nodes or GPUs, not replicas.

Budget

System reserve and safety margin. An empty number keeps the previous value.

GiB (2^30 bytes)

%

Custom model

Import a config or type the architecture. Nothing is scanned until you import.

Parsed in the browser. The file is not uploaded.

Only huggingface.co, config.json, no token. Private repos are rejected.

Pick a model to see how much memory it needs.