New: AI API Cost Calculator — compare GPT, Claude, Gemini, Grok, Llama, DeepSeek & Kimi pricing live
Developers · News

Alibaba Just Open-Sourced Qwen4-35B-A3B: a 1M-Context Multimodal MoE That Punches Above Its Weight

By ToolsDig Research · Updated December 4, 2026 · How we research

Nothing here is sponsored — no affiliate links on this page. Every fact below comes from Hugging Face's Qwen 4 launch post and the Qwen/Qwen4-35B-A3B model card, both published December 4, 2026. Where a claim is the Qwen team's or Hugging Face's own, we say so plainly. We have not run Qwen4-35B-A3B hands-on — this is researched analysis, not hands-on testing.

A laptop in a dim developer workspace at night, its screen glowing with flowing streams of light in teal and deep blue suggesting many parallel expert pathways merging into one

Alibaba's Qwen team released Qwen4-35B-A3B today, December 4, 2026 — the first open-weight model in the new Qwen 4 family, under the Apache-2.0 licence. It is a natively multimodal mixture-of-experts model: roughly 35B main parameters with only about 3.8B active per token, a 1M-token native context window, and native text, image, and video inputs. And it arrives with day-zero support across the whole local-inference stack, from transformers to llama.cpp to MLX.

That combination is the story. A 35B model that only wakes up 3.8B parameters per token is cheap to serve. A 1M context window is the kind of thing that used to belong to closed frontier models. And Apache-2.0 means you can actually use it commercially without reading a custom licence first — a real contrast with some of this week's other open-weight releases.

🔍 How we put this together

We used Hugging Face's Qwen 4 launch post, "Welcome Qwen 4: Cutting-edge intelligence on-device", and the Qwen/Qwen4-35B-A3B model card, both published December 4, 2026. Launch claims, figures and availability statements are the Qwen team's and Hugging Face's own as reported there — not independently verified. No hands-on testing was possible.
🏆 Verdict: Try the Q6_K GGUF this weekend if you run local models. The 1M context and the adjustable reasoning effort are the two things to test first — one because long-context quality at this size is still an open question, and the other because a model that lets you dial thinking up and down is genuinely useful in production, where you pay for every token it thinks with. The benchmarks will be re-run by independent evaluators within days. The architecture is here now.

What is actually new here

Qwen4 is not Qwen3 with a bigger number. The architecture previewed in Qwen3.8-Flash-Next is now the production design, and it is built around a hybrid attention scheme that is worth understanding, because it is the reason the 1M context is affordable at all.

The text decoder repeats one four-layer pattern ten times. The first three layers in each block use Gated DeltaNet, a linear attention mechanism that updates a fixed-size memory as it reads each token — cheap, but it cannot look back at individual tokens. The fourth layer uses Qwen Sparse Attention (QSA), which can. A small indexer groups tokens in groups of four and averages their keys; for each query it picks up to 512 groups, reads the individual tokens in those groups, plus any tokens in the last unfinished group. That gives it up to 2,048 selected tokens to attend to, anywhere in the context.

So the model gets the memory efficiency of linear attention for most of its layers and the precision of sparse full attention once per block. That is a sensible trade, and it is the same direction the rest of the field is moving — but Qwen is shipping it in an open model you can download today.

Two more architectural details matter for anyone who will actually run this:

Information also moves between layers differently: each token starts with four copies of its 2,048-dimensional embedding, which become four residual streams, mixed by learned gates before each attention or MoE block. It is a genuinely different transformer, not a re-skin.

On the vision side, a vision transformer encodes images into 16x16 patches, merging each 2x2 group of spatial patches into one visual token. Video is sampled at 2 frames per second, with consecutive sampled frames grouped into pairs. Nothing exotic — but native video input in an open model at this size is still rare.

The benchmarks: read them with salt

Hugging Face reports that Qwen4-35B-A3B is comparable to the much larger Qwen 3.8 Flash Next, or better on some tasks, across eight Frontier List benchmarks. That is the headline claim, and it is worth pausing on: a 35B open model being compared favourably with a flagship-class model is exactly the kind of result that makes developers pay attention.

It is also exactly the kind of result to treat as a vendor claim until independent evaluations land. These are the Qwen team's own benchmarks, published in the model card, with some scores cited from Artificial Analysis and the Mercor leaderboard. No hands-on testing was possible in the hours since release, and we have not run it. The architecture is genuinely interesting either way — the benchmark chart is not the reason to try it; the architecture and the licence are.

One honest caveat from the model card itself: in multi-turn agentic tasks, lower reasoning effort does not always reduce total task time. Faster per-turn responses can mean more failures and retries, which can cost more overall. Keep that in mind before you set everything to low for speed.

How to run it

Day-zero support is unusually complete: transformers, llama.cpp and the Llama App, vLLM, SGLang, MLX and oMLX, TRL, and Hugging Face Inference Providers and Endpoints. Checkpoints ship in BF16, FP8, OMLX, and GGUF (Q4_K_M, Q6_K, Q8_0). The Qwen team also notes Ollama and TokenSpeed support in the model card, and Qwen Cloud serves it under the model name qwen4-35b-a3b.

The quickest route is the transformers pipeline:

from transformers import pipeline

pipe = pipeline("image-text-to-text", model="Qwen/Qwen4-35B-A3B", processor="huggingface/Qwen4-35B-A3B-processor", device_map="auto")

messages = [{"role": "user", "content": "Who are you?"}]

outputs = pipe(messages, max_new_tokens=2048, return_full_text=False)

print(outputs[0]["generated_text"])

For a local setup with llama.cpp, the GGUF quants are the way in:

# Serve it as an OpenAI-compatible API
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K

# Or chat with it directly
llama cli -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K

Two features are worth knowing about before you run it. First, reasoning effort is adjustable: reasoning_effort takes "xhigh", "high", "low", or "off", and defaults to high. Use "off" for simple Q&A where you do not want the model thinking out loud, and "xhigh" for the hard problems. Second, multi-token prediction (MTP) speculative decoding is supported out of the box in llama.cpp — Hugging Face reports a 22% speed increase on an Apple Silicon M5 with the Q4 quant using three draft tokens:

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

The model card also recommends specific sampling settings: thinking mode at temperature 1.0, top_p 0.95, top_k 20; non-thinking mode at temperature 0.7, top_p 0.80, with presence_penalty 1.5. And if you are planning long agentic runs, it suggests reserving up to 262,144 tokens for reasoning content and 131,072 for the final response inside that 1M context.

On Apple Silicon, oMLX is the interesting path: it has custom Metal kernels for the sparse attention and gated residual, supports image input and MTP, and can offload the PLE table to SSD.

What this adds up to

Qwen4-35B-A3B is the open-weight release that matters most this week, and the reason is not any single benchmark. It is the package: a genuinely new hybrid architecture, a 1M context window, native multimodal input, a permissive Apache-2.0 licence, and day-zero support in every framework a working developer already has installed. The bigger Qwen4-Max exists as the closed flagship for long-horizon agentic work — this is the open sibling you can actually download, and the Qwen team says more models in the open Qwen4 series are on the way.

The honest summary: if you run local models, try the Q6_K GGUF this weekend. The 1M context and the adjustable reasoning effort are the two things to test first — one because long-context quality at this size is still an open question, and the other because a model that lets you dial thinking up and down is genuinely useful in production, where you pay for every token it thinks with. The benchmarks will be re-run by independent evaluators within days. The architecture is here now.

Source: Hugging Face — "Welcome Qwen 4: Cutting-edge intelligence on-device" (December 4, 2026), https://huggingface.co/blog/qwen4, and the Qwen/Qwen4-35B-A3B model card, https://huggingface.co/Qwen/Qwen4-35B-A3B. All launch claims, figures (35B parameters, ~3.8B active, 256 experts, 1M context, 22% MTP speed gain on Apple M5) and availability statements are the Qwen team's and Hugging Face's own as reported there, not independently verified. Benchmark comparisons are the vendor's own claims. Nothing in this article is based on hands-on use.