Qwen 3.5 397B-A17B VRAM Requirements

Qwen 3.5 397B-A17B needs about 226 GB of VRAM at Q4_K_M with an 8K context: 224 GB for weights, 0.4 GB for the KV cache and 1.0 GB of runtime overhead. At Q8_0 it needs 394 GB and at full FP16 precision 741 GB. The smallest GPU that runs it fully is the Apple M3 Ultra 512GB.

By Alibaba · Updated October 14, 2026 · Values from config.json on Hugging Face

226 GB VRAM

Qwen 3.5 397B-A17B at Q4_K_M with 8K context and the KV cache in FP16.

  • Weights 224 GB
  • KV cache 0.4 GB
  • Runtime overhead 1.0 GB

Mixture of experts: all 397B parameters need memory, but only 17B are read per token, so it runs at the speed of a much smaller model.

Which GPUs can run it

Qwen 3.5 397B-A17B VRAM by quantization

Total memory with an FP16 KV cache. "Smallest tier" is the smallest standard VRAM size with a 6% safety margin at 8K.

QuantizationBits/weightWeightsTotal at 8KTotal at 32KSmallest tier
Q4_K_M4.85224 GB226 GB226 GBMulti-GPU / server
Q5_K_M5.69263 GB264 GB265 GBMulti-GPU / server
Q6_K6.59305 GB306 GB307 GBMulti-GPU / server
Q8_08.50393 GB394 GB395 GBMulti-GPU / server
FP16 / BF1616.00739 GB741 GB742 GBMulti-GPU / server
Q3_K_M3.91181 GB182 GB183 GBMulti-GPU / server
Q2_K3.00139 GB140 GB141 GBMulti-GPU / server

VRAM by context length

At Q4_K_M. Hybrid attention: only 15 of 60 layers use full attention and keep a KV cache (2 KV heads × 256 dimensions). The other 45 use linear attention (Gated DeltaNet) with a fixed state of about 186 MB that does not grow with context.

ContextKV cache (FP16)KV cache (Q8_0)Total, FP16 cacheTotal, Q8_0 cache
4K tokens0.3 GB0.2 GB225 GB225 GB
8K tokens0.4 GB0.3 GB226 GB225 GB
32K tokens1.1 GB0.7 GB226 GB226 GB
128K tokens3.9 GB2.2 GB229 GB227 GB
256K tokens7.7 GB4.2 GB233 GB229 GB

GPUs that can run Qwen 3.5 397B-A17B

At Q4_K_M with 8K context. "Best quant" is the highest-quality format that fits fully; "max context" is at Q4_K_M.

GPUUsable memoryStatusBest quantMax contextSpeed
Apple M3 Ultra 512GB384 GBFitsQ6_K256K~39 tok/s
AMD Instinct MI300X 192GB192 GB80% on GPUQ2_K–~17 tok/s
NVIDIA H200 141GB141 GB59% on GPU––~8.9 tok/s
RTX PRO 6000 Blackwell 96GB96.0 GB40% on GPU––~6.2 tok/s
A100 80GB80.0 GB33% on GPU––~5.6 tok/s
H100 80GB SXM80.0 GB33% on GPU––~5.7 tok/s

About Qwen 3.5 397B-A17B

Qwen's flagship open model of early 2026: 512 experts with 10 routed plus one shared per token. It is a server or Mac Studio model; at Q4_K_M it needs well over 200 GB. Its KV cache is remarkably small for its size because only 15 of 60 layers use full attention, each with 2 KV heads.

SpecValue
Parameters397B total, 17B active (MoE)
Layers60
Hidden size4096
Attention heads / KV heads32 / 2
Head dimension256
Vocabulary248,320
Max context (used here)256K tokens
Linear-attention layers45 of 60 (Gated DeltaNet, fixed 186 MB state)
KV cache per token (FP16)30 KB
Released2026-02
LicenseApache 2.0

Qwen 3.5 397B-A17B VRAM: common questions

Can Qwen 3.5 397B run on a Mac Studio?

Yes on a 512 GB M3 Ultra, which holds Q4_K_M or even Q6_K with a long context. A 256 GB machine needs an IQ3 or smaller quant.

How much VRAM does Qwen 3.5 397B-A17B need?

About 226 GB at Q4_K_M with an 8K context, 394 GB at Q8_0 and 741 GB at FP16. Longer contexts add 0.03 GB per 1,000 tokens with an FP16 cache.

What is the cheapest GPU that can run Qwen 3.5 397B-A17B?

The smallest listed device that fits it fully at Q4_K_M with 8K context is the Apple M3 Ultra 512GB (384 GB usable).

Does Qwen 3.5 397B-A17B need VRAM for all 397B parameters?

Yes. All experts must be loaded because any token can use any expert. Only 17B parameters are read per token, so it generates text about as fast as a 17B dense model.

Related