cd /news/artificial-intelligence/model-qwen4-35b-a3b · home › topics › artificial-intelligence › article
[ARTICLE · art-182627] src=quantized.uk ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

Model: Qwen4 35B-A3B

Alibaba released Qwen4 35B-A3B, an Apache-2.0 multimodal mixture-of-experts model, on 2026-12-04 with day-0 support in llama.cpp v1.1.1 and Ollama v0.40.21. The model pairs a 35B language trunk with 3B active parameters across 256 experts (8 routed plus 1 shared), a 1M native context window, a separate 0.84 GiB vision projector, and a 20B n-gram embedding table that llama.cpp reads lazily from RAM or disk without consuming VRAM. At Q4_K_M the model needs about 22.3 GB of VRAM at 4K context and 23.0 GB at 32K, because only 10 of 40 layers grow a KV cache; IQ4_XS drops that to roughly 20.8 GB at 4K for 24 GB cards.

key takeaway

Qwen4 35B-A3B's Q4_K_M GGUF fits in about 22.3 GB of VRAM at 4K context and 23.0 GB at 32K, since only 10 of 40 layers carry a growing KV cache; IQ4_XS at ~20.8 GB leaves headroom on 24 GB cards.

read9 min views4 publishedDec 5, 2026
Model: Qwen4 35B-A3B
Image: Quantized (auto-discovered)

Alibaba Qwen4

Alibaba's Apache-2.0 Qwen4 35B-A3B multimodal MoE model (released 2026-12-04) with day-0 support in llama.cpp v1.1.1 and Ollama v0.40.21 (qwen4:35b-a3b). It pairs a 35B language trunk (3B active across 256 experts, 8 routed + 1 shared) with a 1M native context window, a separate 0.84 GiB vision projector (mmproj-F16.gguf), and a 20B n-gram embedding table that llama.cpp reads lazily from RAM/disk without consuming VRAM (though it adds ~11.5–21.8 GB to GGUF downloads). Because only 10 of 40 layers grow a KV cache, Q4_K_M needs about 22.3 GB VRAM at 4K and 23.0 GB at 32K (tight on 24 GB, comfortable on 32 GB GPUs or 48 GB+ Macs); IQ4_XS (~20.8 GB at 4K) gives 24 GB cards extra headroom. Sizes use generic trunk bpw rates since GGUF files bundle the host-side n-gram table.

Quick Launch Command #

Commands for GGUF Q4_K_M · adjust hardware and context in the CLI Generator

sudo apt install -y build-essential cmake git
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release -j$(nproc)

pip install -U huggingface_hub
hf download unsloth/Qwen4-35B-A3B-GGUF --include "Qwen4-35B-A3B-Q4_K_M.gguf" --local-dir ./models

./build/bin/llama-server \
  -m ./models/Qwen4-35B-A3B-Q4_K_M.gguf \
  --host 127.0.0.1 --port 8080 \
  -ngl 99 \
  -np 1 \
  -c 4096 \
  -t 8

Quantization Variants #

Per-quant VRAM, quality loss, and inference speed on RTX 4090

Measured = run on this site · Estimated = not run here: calculated, or a figure this site has not verified · Community = public reports

Format Level BPW VRAM PPL Loss Speed Source Actions
GGUF IQ4_XS 4.5 20.7 GB — — Estimated
GGUF Q4_K_M 4.85 22.3 GB — — Estimated
GGUF Q5_K_M 5.7 26.2 GB — — Estimated
GGUF Q6_K 6.6 30.3 GB — — Estimated
GGUF Q8_0 8.5 39.0 GB — — Estimated

Which file each size is for

Weights use recorded file bytes where available, otherwise BPW. Both receive a separate 2% planning allowance. VRAM at 4K includes KV and a 10% activation buffer (GiB). Downloads use decimal GB. Separate vision projectors are excluded from this table.

  • GGUF IQ4_XSModel-specific BPW estimate. The index has no exact file byte count for this row.
  • GGUF Q4_K_MBPW matches the generic rate for this level. Exact bytes are unavailable.
  • GGUF Q5_K_MModel-specific BPW estimate. The index has no exact file byte count for this row.
  • GGUF Q6_KModel-specific BPW estimate. The index has no exact file byte count for this row.
  • GGUF Q8_0BPW matches the generic rate for this level. Exact bytes are unavailable.

Running Qwen4 35B-A3B locally #

At Q4_K_M and 4K of context, Qwen4 35B-A3B needs about 22.3 GB — 20.2 GB of weights, 0.10 GB of KV cache and a 2.0 GB activation buffer. The smallest cards in this index that clear that comfortably are 32 GB ones — 5 of them, from the RTX 5090 up — and 37 of the 127 cards here do. These are calculated figures, not measurements: the estimate stops counting a card as comfortable at 88% of its VRAM, which is roughly the room a desktop session needs.

What longer context costs #

Going from 4K to 32K adds about 0.68 GB, taking the total to 23.0 GB. That is gentler than the parameter count suggests: only 10 of 40 layers keep a KV cache that grows with context, so the cache scales at a fraction of the usual rate. The model's native window is 1M; holding all of it at Q4_K_M would need about 50 GB.

Which build to download #

This index only tracks Qwen4 35B-A3B in GGUF, across 5 levels (IQ4_XS, Q4_K_M, Q5_K_M, Q6_K, Q8_0). No per-level perplexity sweep has been published for this model, so the quality column is empty rather than estimated — within one model, more bits per weight is the only ordering the data supports. No throughput has been measured for this model on this site's hardware. GGUF runs on llama.cpp and Ollama across NVIDIA, AMD and Apple silicon; AWQ and GPTQ target vLLM on CUDA and ROCm; EXL2 is ExLlamaV2 — CUDA only, and now archived, so local use rather than serving.

Common questions #

  • How much VRAM does Qwen4 35B-A3B need?
  • About 22.3 GB at Q4_K_M with 4K of context and batch 1, rising to roughly 23.0 GB at 32K. That figure is weights plus KV cache plus a 10% activation buffer, calculated from the model's architecture rather than measured on a card.
  • Will Qwen4 35B-A3B run on a 32GB GPU?
  • Yes — at Q4_K_M and 4K context it needs about 22.3 GB, which leaves 9.7 GB spare on a RTX 5090, or on any of the other 32 GB cards here (5 in all). That is the smallest size in this index that clears it comfortably; 37 of 127 do.
  • Which quantization of Qwen4 35B-A3B should I use?
  • No published quality comparison exists for this model, so pick by footprint: Q4_K_M is the level most people run, and a higher bits-per-weight level is more faithful. All 5 levels in the index are IQ4_XS, Q4_K_M, Q5_K_M, Q6_K, Q8_0. Note this is a mixture-of-experts model — all parameters must be resident even though only a fraction are active per token, so the memory cost follows the total, not the active count.

Where this model fits #

Sized at Q4_K_M with a 4K context window, smallest card first. Comfortable means the estimate uses at most 88% of the memory.

How to actually run this #

Deployment guides for this model and this class of hardware.

Similar models #

Compare with Gemma 4

26B-A4BConsumer GPUPro GPUQ4_K_M18.2 GB—perplexity rise

Gemma 4 26B-A4B IT

Google Gemma 4

Google's Gemma 4 mixture-of-experts model: about 25B parameters in the text model, roughly 4B active per token, a 256K window and image input. Only 5 of its 30 layers keep a cache that grows with context, and those use fewer, wider heads, so the cache stays small — about 0.9 GB at 32K and 5.3 GB at the full 256K. At Q4_K_M that is about 18.8 GB at 32K: comfortable on a 24 GB card, which can still load the whole window (tight, about 23.6 GB). A 16 GB card cannot hold it, since the Q4_K_M file alone is 17.0 GB. The vision encoder is a separate 1.2 GB file on top. Sizes come from bartowski's GGUF files, whose Q4_K_M works out at 5.40 bits per weight, well above the generic 4-bit rate; Unsloth's UD-Q4_K_M is a different file, 0.09 GB smaller. No per-level quality loss has been published.

31BConsumer GPUPro GPUQ4_K_M22.1 GB—perplexity rise

Gemma 4 31B IT

Google Gemma 4

Google's dense Gemma 4 flagship: about 31B parameters, a 256K window and image input. Only 10 of its 60 layers cache the full context, and those use four wide KV heads, so 128K of context adds about 11 GB of cache where a conventional 60-layer design would need about 120 GB. At Q4_K_M it needs about 22.1 GB at 4K, tight on a 24 GB card; Q3_K_M is about 18.3 GB at 4K. A 32 GB card holds Q4_K_M at 32K comfortably. Google also publishes its own quantization-aware (QAT) Q4_0 build, a single 17.7 GB file: about 20.1 GB at 4K, comfortable on 24 GB up to 16K. Its 1.2 GB vision encoder is a separate file, and with it loaded even 4K is tight on 24 GB. The other levels are sized from bartowski's GGUF files, and no per-level quality loss has been published. That repository also carries two MTP draft-head files (349 MB at Q4_0, 515 MB at Q8_0) for speculative decoding; they are not the model itself and are not counted in these sizes.

35B-A3BConsumer GPUPro GPUQ4_K_M23.4 GB—perplexity rise

Qwen3.6 35B-A3B

Alibaba Qwen3.6

One of the most recommended models for a 24 GB card this year: 35.5B parameters, about 3B active per token, so it reads per token about as much as a 3B model. Only 10 of its 40 layers keep a growing KV cache, so context is cheap: at Q4_K_M it needs about 23.4 GB at 4K and 24.0 GB at 32K. On this site's rule that is tight on a 24 GB card, not comfortable, because it counts a working buffer most guides leave out. A 32 GB card, or a 48 GB Mac through the GPU's share of unified memory, has real room. It reads images through a separate vision encoder. Sizes come from bartowski's GGUF files; Unsloth's UD-Q4_K_M is a different file, 0.15 GB smaller. No per-level quality loss has been published.

27BConsumer GPUPro GPUQ4_K_M19.1 GB—perplexity rise

Qwen3.6 27B

Alibaba Qwen3.6

The dense model of the Qwen3.6 generation and a popular local coding model. It has the same layout as Qwen3.8 27B, the newer release: only 16 of its 64 layers keep a growing KV cache. At Q4_K_M it needs about 19.1 GB at 4K context and 21.0 GB at 32K, comfortable on a 24 GB card either way. Q5_K_M is tight on 24 GB, and a 16 GB card cannot hold it at any level listed here. Sizes come from bartowski's published GGUF files; Unsloth's builds of the same levels are about 1 GB smaller. No per-level quality loss has been published.

This page's figures change when the model or the runtime does.Last updated 2026-12-06 RSS → /feed.xml

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @alibaba 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/model-qwen4-35b-a3b] indexed:0 read:9min 2026-12-05 · —