Qwen4-35B-A3B

Run with https://llama.app

llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K

To enable the optional multi-token prediction (MTP) speculative decoding head (auto-downloaded from this repo):

llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K --spec-type draft-mtp --spec-draft-n-max 3

Source models

Files

Quant Size Resident (RAM) Notes
BF16 111.1 GB 70.1 GB 16-bit precision converted from the original BF16 checkpoint (includes 20B n-gram embedding table)
Q8_0 59.4 GB 37.6 GB Near-lossless 8-bit quantization; hc_*, ssm_beta, ssm_alpha, and ple_conv1d kept at BF16
Q6_K 51.0 GB 29.2 GB 6-bit quantization (per_layer_token_embd at Q8_0); hc_*, ssm_beta, ssm_alpha, and ple_conv1d kept at BF16
Q4_K_M 36.0 GB 21.9 GB imatrix-calibrated 4-bit quantization (per_layer_token_embd at Q5_0); hc_*, ssm_beta, ssm_alpha, and ple_conv1d kept at BF16
mmproj (BF16) 903 MB β€” Vision encoder
mtp (BF16, Q8_0, Q4_K_M) 3.76 / 2.02 / 1.29 GB β€” Optional 1-layer MTP speculative decoding head (--spec-type draft-mtp)

Notes

  • Qwen4-35B-A3B is a 40-layer hybrid mixture-of-experts model (35B total / 3B active parameters, plus 20B per-layer n-gram embeddings at layer 2) with image/video input and a native 1M (1,048,576) context window. It alternates 3 Gated DeltaNet linear-attention layers and 1 Qwen Sparse Attention (QSA) layer (256 routed experts with 8 active + 1 shared expert, 4-branch hyper-connection residuals).
  • Under llama.cpp's default --lazy-mode auto, the per-layer n-gram embedding table (per_layer_token_embd.weight, 14.1 GB in Q4_K_M and 21.8 GB in Q6_K/Q8_0) stays on disk and is read on demand rather than loaded into RAM, so Q4_K_M runs on a 32 GB Mac, Q6_K on a 48 GB Mac, and Q8_0 on a 64 GB Mac.
  • Across all quantized variants, hyper-connection weights (hc_*), linear-attention gate projections (ssm_beta, ssm_alpha), and the PLE depthwise convolution (ple_conv1d) are kept at BF16, reducing KL divergence by ~25-29% for <1% size overhead. Q4_K_M is calibrated with an imatrix computed from the BF16 model.
  • The 1-layer MTP head is packaged as optional mtp- sidecars so base model downloads stay compact. Pass --spec-type draft-mtp --spec-draft-n-max 3 with -hf to auto-download and enable it (or -md mtp-Qwen4-35B-A3B-*.gguf locally).
  • KL divergence against the BF16 (20 x 512 tokens): Q8_0 0.0359 (94.0% same top token), Q6_K 0.0479 (92.9% same top token), Q4_K_M 0.1252 (87.9% same top token).
  • Reasoning depth is set with reasoning_effort: off, low, high (default), or xhigh (or --reasoning off). Recommended sampling: thinking mode temp=1.0, top_p=0.95, top_k=20; non-thinking mode temp=0.7, top_p=0.80, top_k=20, presence_penalty=1.5.
Downloads last month
273,528
GGUF
Model size
56B params
Architecture
qwen4exp
Hardware compatibility
Log In to add your hardware

4-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for ggml-org/Qwen4-35B-A3B-GGUF-old

Quantized
(774)
this model
Finetunes
1 model