Qwen3-30B-A3B (MoE) — VRAM Requirements, Quantization Matrix & GPU Guide

Qwen3-30B-A3B (MoE) (Qwen, Apache-2.0) is a Mixture-of-Experts (MoE) architecture with 30.5B resident parameters (3.3B active per token), 48 layers, and Grouped-Query Attention (GQA) supporting up to 40,960 context tokens.

Interactive Qwen3-30B-A3B (MoE) Memory & Context Simulator

32,768 tokens

Memory Breakdown & Bandwidth Ceiling

Tight Fit (>90% Usable)
Model Weights: 79.2% KV: 13.8% Overhead: 7%
Total Required Memory
21.75 GB
Per-Device Allocation: 21.75 GB
Model Weights
17.22 GB
KV Cache (FP16): 3.00 GB
Est. Single-Stream Decode
112.1 tok/s
Runtime & TP Overhead: 1.53 GB
Max Context Before OOM
48,634
tokens

Architecture KV compression saves 87.5% vs naive MHA FP16 (24.00 GB).

Precision & Quantization VRAM Matrix (8K / 32K / 128K Context)

Total GPU memory required across weight precisions and context lengths (batch = 1, FP16 KV cache)
Precision / Format Effective bpw Weights Only Total @ 8K ctx Total @ 32K ctx Total @ 128K ctx Recommended Tier (@ 32K)
FP16 / BF16 16.00 bpw 56.81 GB 60.28 GB 62.53 GB 71.53 GB NVIDIA A100 80GB
FP8 8.50 bpw 30.18 GB 32.85 GB 35.10 GB 44.10 GB Apple M4 Pro 48GB
Q8_0 8.50 bpw 30.18 GB 32.85 GB 35.10 GB 44.10 GB Apple M4 Pro 48GB
Q6_K 6.56 bpw 23.29 GB 25.76 GB 28.01 GB 37.01 GB RTX 5090 32GB
Q5_K_M 5.69 bpw 20.20 GB 22.57 GB 24.82 GB 33.82 GB RTX 5090 32GB
Q4_K_M 4.85 bpw 17.22 GB 19.50 GB 21.75 GB 30.75 GB RTX 3090 24GB
AWQ INT4 4.50 bpw 15.98 GB 18.22 GB 20.47 GB 29.47 GB RTX 3090 24GB
IQ4_XS 4.25 bpw 15.09 GB 17.31 GB 19.56 GB 28.56 GB RTX 3090 24GB

Hardware Compatibility & Decode Speed (Qwen3-30B-A3B (MoE) @ Q4_K_M, 32K Context)

Fit status, memory utilization, and estimated decode throughput across flagship GPUs and Apple Silicon
Hardware Tier Memory & Bandwidth Required (32K) Fit Verdict Est. Decode Speed
RTX 3090 24GB 24 GB · 936 GB/s 21.75 GB (91%) Tight Fit (>90% Usable) 112.1 tok/s
RTX 4090 24GB 24 GB · 1008 GB/s 21.75 GB (91%) Tight Fit (>90% Usable) 120.8 tok/s
RTX 5090 32GB 32 GB · 1792 GB/s 21.75 GB (68%) Fits Comfortably 214.7 tok/s
Apple M-Max 64GB 64 GB · 546 GB/s 21.15 GB (33%) Fits Comfortably 61.6 tok/s
Mac Studio 128GB 128 GB · 546 GB/s 21.15 GB (17%) Fits Comfortably 61.6 tok/s
Mac Studio 192GB 192 GB · 800 GB/s 21.15 GB (11%) Fits Comfortably 90.2 tok/s
NVIDIA A100 80GB 80 GB · 2039 GB/s 21.75 GB (27%) Fits Comfortably 258.7 tok/s
NVIDIA H100 80GB 80 GB · 3350 GB/s 21.75 GB (27%) Fits Comfortably 425.0 tok/s

Verified Transformer Architecture Parameters

Checkpoint ID
Qwen/Qwen3-30B-A3B
Ollama Tag
qwen3:30b-a3b
License / Release
Apache-2.0 · 2025-Q2
Topology & Attention
Mixture-of-Experts (MoE)
Attention Mechanism
Grouped-Query Attention (GQA)
Total Params (B)
30.5B
Active Params / Token (B)
3.3B
Hidden Layers / Hidden Size
48 / 2048
Query Heads / KV Heads
32Q / 4KV (d=128)
MoE Routed Experts
8 active / 128 total
Vocab / Max Position
151,936 / 40,960

Quantized formats store per-block scale factors and zero-points alongside packed integer weights. A 4-bit GGUF Q4_K_M checkpoint averages 4.85 effective bits per parameter (not 4.00), while Q8_0 averages 8.50 bpw. For Mixture-of-Experts models, all routed and shared experts remain resident in memory to prevent token-by-token host paging.

Standard Grouped-Query Attention allocates 2 × L × H_kv × d_head × S × B × bytes_kv across layers. DeepSeek Multi-head Latent Attention (MLA) compresses keys and values into L × (d_kv_lora + d_qk_rope) × S × B × bytes_kv, slashing long-context memory by over 90%. Hybrid sliding-window models cap local-attention layers at min(S, window_size) while scaling global layers linearly with S.

Quick-Start vLLM & Ollama Commands for Qwen3-30B-A3B (MoE)

vLLM CLI (RTX 3090 24GB)
vllm serve Qwen/Qwen3-30B-A3B \
  --tensor-parallel-size 1 \
  --max-model-len 32768 \
  --max-num-seqs 8 \
  --gpu-memory-utilization 0.95 \
  --kv-cache-dtype fp8 \
  --enable-prefix-caching \
  --port 8000
Ollama Modelfile
# Save as Modelfile, then run: ollama create qwen3-30b-a3b-custom -f Modelfile
FROM qwen3:30b-a3b
PARAMETER num_ctx 32768
PARAMETER num_batch 512
PARAMETER flash_attn true

# Environment variables for ollama serve:
# OLLAMA_NUM_PARALLEL=8 OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q8_0 ollama serve

Compare Sibling & Similar-Scale Open-Weight Models