Qwen4-35B-A3B: A 1M-Token Multimodal MoE You Can Actually Run Locally
Alibaba's Qwen team just shipped the first open-weight model of the Qwen4 generation — and it is the most interesting local-model release in months. Qwen4-35B-A3B is a natively multimodal Mixture-of-Experts model with a
Alibaba's Qwen team just shipped the first open-weight model of the Qwen4 generation — and it is the most interesting local-model release in months. Qwen4-35B-A3B is a natively multimodal Mixture-of-Experts model with a 1M-token context window, Apache-2.0 licensing, and day-0 support in every major inference engine. The headline numbers are real, but the architecture underneath them is the actual story.
The numbers, decoded
The name tells you the shape: roughly 35B main parameters, with about 3.8B active per token. Each token is routed to 8 of 256 experts, plus one shared expert. But the full checkpoint is bigger than the name suggests — a 20.5B per-layer n-gram embedding (PLE) table and a multi-token prediction head bring the total to roughly 56B parameters.
That matters for planning. The compute cost per token follows the 3.8B active figure, which is why the model is cheap to run. The download size and disk footprint follow the 56B total, which is why you should check the checkpoint size before assuming it fits wherever a "35B model" fits. Quantized GGUF builds (Q4_K_M, Q6_K, Q8_0) ship alongside BF16 and FP8, and that is where local deployment gets practical.
The architecture is the release
Qwen4-35B-A3B is built on the hybrid design previewed in Qwen3.8-Flash-Next. The 40-layer text decoder repeats a four-layer pattern ten times: three layers use Gated DeltaNet, a linear-attention mechanism that updates a fixed-size memory as it reads each token, and the fourth uses Qwen Sparse Attention (QSA), which lets the current token look back at individual tokens from anywhere in the context.
QSA works by grouping tokens in fours and indexing them; each query picks up to 512 groups, reads the individual tokens inside them, and ends up attending to at most about 2,048 selected tokens. The linear layers carry the cheap, always-on memory; the sparse layer does the precise recall. That split is what makes a 1M-token window affordable instead of theoretical.
Two more details are easy to miss. First, each token carries four residual streams (four copies of its 2,048-dimensional embedding), mixed by learned gates before every block. Second, the PLE table sits in the second decoder layer: each token reads just 16 rows encoding the previous two and three tokens, which gives the model cheap local n-gram context without spending attention on it.
On the vision side, a vision transformer reads images in 16×16 patches, merges each 2×2 group into one visual token, and samples video at 2 frames per second. Text, image, and video all go in; text comes out.
A 1M-token window you can actually use?
The native context is 1,048,576 tokens — not a stretched or extrapolated figure, but the window the model was built for. The hybrid attention is the reason this is plausible on local hardware: the linear layers keep memory bounded, and the sparse layer bounds the expensive lookups.
The honest caveat is that a context number is not a quality guarantee. Long-context benchmarks test whether a model can find a needle; long agent runs test whether it can stay coherent across a whole codebase, a day of tool calls, and a conversation that never resets. The 1M figure tells you the window exists. Your own workload tells you whether it holds up at that length — test it before replacing anything.
Running it today
This is a rare release where the ecosystem was ready on day one: transformers, llama.cpp, vLLM, SGLang, MLX, Ollama, and Hugging Face Inference Providers all shipped support at launch.
# vLLM
vllm serve Qwen/Qwen4-35B-A3B
# llama.cpp (6-bit quant)
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K
Two knobs are worth knowing. reasoning_effort takes four values — xhigh, high, low, off — and defaults to high, so you can trade thinking depth for speed per request. And the multi-token prediction head doubles as a speculative-decoding drafter: with a 3-token draft, generation sped up 22% on Apple Silicon M5 with the Q4 quant, according to the launch post.
The catch, stated plainly
The benchmark claims are vendor-reported: the Qwen team says the model is comparable to the much larger Qwen3.8-Flash-Next, and better on some tasks, with scores cited from Artificial Analysis and the Mercor leaderboard. Independent results are still coming in, and early community impressions are more mixed — some place it between the dense Qwen3.8-27B and Flash-Next rather than matching the flagship preview. Treat the headline comparison as a starting hypothesis, not a verdict.
The other catch is the one already mentioned: "35B" is the active architecture, not the whole checkpoint. Budget disk, download time, and RAM for ~56B of weights, then let the quants do the shrinking.
Why this one matters
Most open-weight releases force a choice: small and local, or capable and hosted. Qwen4-35B-A3B is an attempt to refuse that choice — a model with flagship-generation architecture, a million-token window, native multimodality, tool calling, and an adjustable reasoning knob, under a license that allows commercial use.
The use case the launch leans into is long-running local agents: a coding agent that keeps a whole repository in context, a triage agent that reads alerts and cites evidence. Hugging Face's launch post even demonstrates fine-tuning it for security-alert triage with TRL's GRPO trainer — the adapted model passed 6 of 12 held-out tasks versus 4 for the base model. Small sample, but the direction is the point: this is a base you can steer, not just a checkpoint you can run.
If you have been waiting for an open model that can hold a long agent session without phoning home, this is the first Qwen4 checkpoint built for exactly that job. Run it on your own workload before you believe the benchmarks — but do run it.
Sources
- Hugging Face Blog: Welcome Qwen 4: Cutting-edge intelligence on-device
- Model card: Qwen/Qwen4-35B-A3B
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.