Qwen · vision language · mixture of experts

Qwen3.5-397B-A17B

Qwen/Qwen3.5-397B-A17B

Qwen3.5-397B-A17B at Q4_K_M is exactly 244,093,630,912 bytes (227.33 GiB / 244.09 GB) — an effective 4.841 bits per weight, not the nominal 4. Its KV cache at 32K is 0.94 GiB.

From the file· summed from 6 file(s)From the file· KV per layer
Parameters
403B
total, not active
Architecture
qwen35moe
60 layers
Context
262,144
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ1_S3 shards82.64 GiB88,731,231,2641.760bartowski
IQ1_M3 shards91.53 GiB98,280,612,8321.949bartowski
UD-IQ1_M4 shards99.48 GiB106,819,877,0562.118unsloth
IQ2_XXS3 shards105.47 GiB113,251,132,3842.246bartowski
UD-IQ2_XXS4 shards106.98 GiB114,872,940,7362.278unsloth
UD-IQ1_M4 shards112.75 GiB121,066,219,1502.401unsloth
UD-IQ2_M4 shards114.60 GiB123,053,144,2882.440unsloth
IQ2_XS4 shards116.79 GiB125,402,031,2002.487bartowski
UD-IQ2_XXS4 shards117.69 GiB126,367,819,4062.506unsloth
UD-IQ2_M4 shards117.81 GiB126,494,959,2462.509unsloth
IQ2_S4 shards118.57 GiB127,313,077,3122.525bartowski
IQ2_M4 shards130.29 GiB139,900,183,6482.774bartowski
UD-IQ3_XXS4 shards130.70 GiB140,333,676,7362.783unsloth
Q2_K4 shards136.24 GiB146,284,913,7922.901bartowski
UD-IQ3_S4 shards136.32 GiB146,373,474,4962.903unsloth
Q2_K_L4 shards137.16 GiB147,278,193,7922.921bartowski
UD-IQ3_XXS4 shards139.55 GiB149,840,422,5422.972unsloth
UD-IQ3_S5 shards152.75 GiB164,017,170,1583.253unsloth
UD-Q3_K_S5 shards153.04 GiB164,323,293,5043.259unsloth
Q3_K_S5 shards153.04 GiB164,323,293,5043.259unsloth
IQ3_XXS5 shards160.83 GiB172,695,069,9203.425bartowski
Q3_K_M5 shards165.23 GiB177,409,522,0163.518unsloth
UD-Q3_K_M5 shards165.23 GiB177,409,522,0163.518unsloth
Q3_K_S5 shards167.58 GiB179,940,025,5683.568bartowski
UD-Q3_K_M5 shards170.04 GiB182,576,047,9183.621unsloth
IQ3_XS5 shards175.24 GiB188,162,434,3043.732bartowski
Q3_K_M5 shards175.29 GiB188,211,193,0883.732bartowski
UD-IQ4_XS5 shards176.70 GiB189,735,450,9443.763unsloth
UD-IQ4_NL5 shards180.45 GiB193,761,982,7843.843unsloth
UD-IQ4_XS5 shards181.33 GiB194,700,650,2543.861unsloth
Q3_K_L5 shards182.47 GiB195,928,974,5603.886bartowski
IQ3_M5 shards182.55 GiB196,009,977,0563.887bartowski
UD-IQ4_NL5 shards185.08 GiB198,727,182,1263.941unsloth
IQ4_XS6 shards204.18 GiB219,236,345,2164.348bartowski
Q4_K_S6 shards212.33 GiB227,987,503,5204.521unsloth
UD-Q4_K_S6 shards212.33 GiB227,987,503,5204.521unsloth
IQ4_NL6 shards215.62 GiB231,518,774,6244.591bartowski
Q4_06 shards216.48 GiB232,444,142,9444.610bartowski
UD-Q4_K_S6 shards216.95 GiB232,952,702,8624.620unsloth
Q4_K_S7 shards223.12 GiB239,572,362,6884.751bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.12 GiB0.47 GiB4.00×15 / 0 / 45
8,1920.23 GiB0.94 GiB4.00×15 / 0 / 45
16,3840.47 GiB1.88 GiB4.00×15 / 0 / 45
32,7680.94 GiB3.75 GiB4.00×15 / 0 / 45
65,5361.88 GiB7.50 GiB4.00×15 / 0 / 45
131,0723.75 GiB15.00 GiB4.00×15 / 0 / 45

45 of 60 layers use linear attention, which keeps a fixed-size recurrent state instead of a per-token cache. Those layers do not grow with context at all — treating them as ordinary attention, as a flat formula does, overstates this model's cache by roughly 4.0× at long context.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 211.33 GiB. The real file is 227.33 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
60
Attention heads
32
KV heads
2
Head dim
256
Hidden size
4096
Vocab
248,320
Sliding window
none
SWA period
MLA
no
Experts
512
Experts per token
10
use_sliding_window

Questions people ask

How much VRAM does Qwen3.5-397B-A17B need?
Q4_K_M is exactly 244,093,630,912 bytes (227.33 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Qwen3.5-397B-A17B's KV cache?
0.94 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Is Qwen3.5-397B-A17B a mixture-of-experts model?
Yes — 512 experts, 10 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of Qwen3.5-397B-A17B should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.