Can I Run Qwen 3.5 397B-A17B on NVIDIA L40S?

Autor: Jakub Rusinowski · Ostatnia aktualizacja: 21 lipca 2026

No. Qwen 3.5 397B-A17B needs 139 GB at 8K context (134 GB weights + 5 GB KV cache/overhead) at IQ2_M (sub-Q4) and the NVIDIA L40S has only 48 GB. No quantization we publish closes a gap that size.

Get a personalized upgrade path →

The numbers

ModelQwen 3.5 397B-A17B
Parameters397B (17B active)
QuantizationIQ2_M (sub-Q4)
VRAM needed (8K context)139 GB
NVIDIA L40S VRAM48 GB
VerdictDoes not fit

Qwen 3.5 397B-A17B on the NVIDIA L40S: VRAM by quantization

QuantVRAM neededFits 48 GB?Max contextWhole PC
F16799 GB✗ No——
Q8_0426.8 GB✗ No——
Q6_K330.6 GB✗ No——
Q5_K_M286.4 GB✗ No——
Q4_K_M244.7 GB✗ No——
Q3_K_M174.2 GB✗ No——
Q2_K135.5 GB✗ No——

Assumes an 8K-token context with an f16 KV cache, on an estimated architecture — this model publishes no config we can read. A longer window needs more; a quantized KV cache needs less. “Max context” is the largest window that still fits in 48 GB. Figures are estimates from parameter count, quantization and memory bandwidth — the analyzer lets you tune KV-cache quant and context.

Context costs VRAM too. At IQ2_M (sub-Q4) on the NVIDIA L40S: 8K 139 GB ✗ · 32K 151.7 GB ✗ · 128K 202.4 GB ✗. Past 8K it no longer fits 48 GB — a q8_0 KV cache buys roughly half of that back, which the calculator will price for you.

What to do next

Either step down to a smaller size in this family, or move to a Apple M2 Ultra (192 GB), the card with the least memory we track that holds it.

No compatible GPU? Qwen 3.5 on 8 GB of system RAM, CPU only: runs.

Ujawnienie afiliacyjne: Niektóre odnośniki na tej stronie to linki afiliacyjne — jeśli dokonasz zakupu za ich pośrednictwem, LLM Configurator może otrzymać prowizję bez dodatkowych kosztów dla Ciebie. Jako uczestnik programu Amazon Associates, LLM Configurator zarabia na kwalifikujących się zakupach.

Cheapest card we track with enough VRAM for Qwen 3.5 397B-A17B:

Apple Mac Studio M2 Ultra
192 GB VRAM · 60 W board power
Ceny w 2026 są niestabilne — sprawdź aktualną ofertę.
Sprawdź cenę na Amazon

Won't fit — rent Qwen 3.5 397B-A17B instead

Qwen 3.5 397B-A17B needs ~139 GB but this GPU has 48 GB. Rent a 2× A100 (160 GB)-class GPU by the hour instead of buying one:

Affiliate links — we may earn a commission if you sign up, at no extra cost to you.

Vast.ai $1.54/hr · typical low · varies
Rent on Vast.ai →
RunPod $2.78/hr
Rent on RunPod →

Cloud rates verified 2026-07 — estimates, and marketplace prices vary. Buying price is GPU MSRP only, not a full PC.

Other Qwen 3.5 sizes on the NVIDIA L40S

Qwen 3.5 397B-A17B on nearby hardware

All Qwen 3.5 sizes on the NVIDIA L40S | Qwen 3.5 397B-A17B model page | NVIDIA L40S GPU page | VRAM calculator | Check your hardware