Qwen4-35B-A3B is out under Apache-2.0, and Hugging Face says it shipped day-0 support across transformers, llama.cpp, vLLM, SGLang, MLX, Inference Providers and Inference Endpoints. If you run a mid-sized local model today, this is a candidate to test against it. Here is what the source says, and what it does not.
What the architecture means for your memory budget
The model is natively multimodal (text, image and video in, text out). Hugging Face describes it as ~35B main parameters, ~3.8B active per token, plus ~20.5B Per-Layer N-gram Embedding (PLE) parameters, roughly 56B total. The model card lists 3B activated, so treat "3B vs 3.8B active" as a rounding difference between two Qwen-adjacent sources. The repo's BF16 safetensors total is about 113.6 GB.
The layout is 10 repeats of three Gated DeltaNet layers followed by one Qwen Sparse Attention (QSA) layer, with MoE after each. It has 256 experts, 8 routed plus 1 shared per token. Linear attention plus sparse attention is what gets a native 1,048,576-token context with a smaller cache footprint.
The PLE table is the odd part. Each token reads only 16 rows of it (8 bigram lookups, 8 trigram lookups). That makes it a good candidate for offloading. oMLX supports PLE offloading to SSD, which is the main reason a ~56B-total model is plausible on a Mac.
Commands for transformers, llama.cpp and MLX
llama.cpp has Q4_K_M, Q6_K and Q8_0 GGUFs in ggml-org/Qwen4-35B-A3B-GGUF:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K
llama cli -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K
MTP speculative decoding works out of the box. Hugging Face reports a 22% generation speedup on an Apple Silicon M5 with the Q4 quant, using 3 draft tokens:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M --spec-type draft-mtp --spec-draft-n-max 3
That is one machine and one quant, so measure on your own hardware. If you want background on the technique, see the earlier llama.cpp MTP post.
For MLX, use oMLX or mlx-lm:
mlx_lm.generate --model mlx-community/Qwen4-35B-A3B-4bit-text \
--prompt "Explain sparse attention like I am 5" --max-tokens 4096
The catch: mlx-lm support for the language model is "on its way to the official repository." oMLX is currently the only path with image input, MTP and PLE offloading.
In transformers, load with AutoModelForMultimodalLM and AutoProcessor. The processor comes from huggingface/Qwen4-35B-A3B-processor. Video needs torchcodec and ffmpeg.
Reasoning effort and sampling settings
reasoning_effort |
Intended use |
|---|---|
xhigh |
complex tasks where quality matters most |
high (default) |
common tasks |
low |
fast responses, minimal thinking |
off |
thinking disabled (same as enable_thinking=False) |
The model card's warning matters for agent work: in multi-turn agentic tasks, lower effort "does not always reduce overall task completion time." Faster turns can mean insufficient analysis, failures and retries, which raise total latency and token use. Benchmark low against high on a full task, not per turn.
| Mode | temperature | top_p | top_k | presence_penalty |
|---|---|---|---|---|
| Thinking | 1.0 | 0.95 | 20 | 0.0 |
| Non-thinking | 0.7 | 0.80 | 20 | 1.5 |
The card also suggests 262,144 max tokens for reasoning and 131,072 for the final response. For hour-scale video, set longest_edge to 469,762,048 (224k video tokens) in video_preprocessor_config.json.
Two integration gotchas
The reference tokenizer needs tiktoken and trust_remote_code=True. A Jinja chat template ships in tokenizer-compat/ for compatibility only. It produces the same text but can produce different token IDs, because the reference implementation separates control tokens from regular tokens at the ID level. If you compare outputs across engines, check which tokenizer path each one uses.
The fine-tuning example is a warning about checkpoints
Hugging Face's TRL walkthrough trains a LoRA adapter on security-alert triage with AsyncGRPOTrainer, run on an h200x2 Job. On 12 held-out CyberDefense Bench tasks, the base model passed 4/12, the update-50 adapter 6/12, and the update-100 adapter 3/12. Training reward kept rising while the later checkpoint got worse. Twelve tasks is a tiny sample, but the lesson holds: evaluate held-out checkpoints rather than trusting the reward curve.
What I would check first
The benchmark charts are images in the source, so I have no numbers to quote. The post only says it is "comparable to the much larger Qwen 3.8 Flash Next, or even better in some tasks." Quant file sizes and VRAM requirements are also not stated. If you are on the dense 27B class, as in the Qwen 3.8-27B post, run your own agent tasks on the Q4_K_M GGUF with MTP on and reasoning_effort at high and low. Check memory and speed before you swap.
Sources: