A generated title card reading "Qwen4-35B-A3B" with the subtitle "The first open-weight Qwen4, at 1,048,576 tokens", three pill badges reading "Apache 2.0", "105.8 GiB BF16" and "3 December 2026", a footer line reading "Figures from the published model card.", and the OrcaRouter logo composited in the bottom-right corner.
Engineering & Research

Qwen4-35B-A3B release: 1M context, Apache 2.0, 106 GiB of BF16

Author

Rowan Sterling

Date Published

Models in this article · 2View all models →
Back to all posts

At 02:45 UTC on 3 December, a repository called Qwen/Qwen4-35B-A3B appeared inside Alibaba's Hugging Face organisation: ungated, Apache 2.0, thirty-three safetensors shards, no announcement attached. On 1 December we published this model's specification out of a withdrawn AMD pull request — 40 layers, 256 experts, a 1,048,576-token context, about 105 GB of BF16 weights — and every one of those numbers survived contact with the real checkpoint. What did not survive is the framing. Qwen4-35B-A3B is no longer a leak. It is the first model with Qwen4 in its name to ship open weights, its model card and the accompanying Hugging Face post are dated 4 December, and the interesting question has moved from what the code implied to what the download actually gets you. Qwen4-Max, the closed-weight flagship Alibaba has hosted since 16 November, is still the only Qwen4 you can call as an API. This is the one you can keep.

What shipped, and the two timestamps that matter

The distinction between "released on 3 December" and "released on 4 December" is not pedantry here, because the two dates describe two different events. The repository object carries a creation time of 2026-12-03T02:45:46Z; its last modification is 2026-12-04T01:54:41Z. The model card and the Hugging Face announcement post are both dated 4 December, so the weights were downloadable for roughly a day before anyone was told about them, which is why the first hours of reaction were people diffing file sizes rather than repeating a press release.

What is in the repository, checked against the Hugging Face API rather than the card's summary:

• Licence — Apache 2.0, in a LICENSE file and in the card metadata, with the repository ungated. The withdrawn PR said nothing about licensing, so this was the one genuinely open question on 1 December, and it resolved the permissive way.

• Weights — 33 safetensors shards totalling 113.6 GB, which is 105.8 GiB. Hugging Face's sidebar lists 57B parameters in BF16: about 35B of main model, 20B of n-gram embedding, 2B of multi-token-prediction head. The announcement rounds the same thing to roughly 56B.

• Context — 1,048,576 tokens, native, not an extension. No YaRN config, no "up to" caveat.

• Modalities — text, image and video in, text out, through a vision transformer that reads 16×16 patches and merges each 2×2 block into one visual token. Video is sampled at 2 frames per second and processed in pairs.

• Checkpoints — BF16 from Alibaba, an FP8 repository created one minute after the main one at 60.2 GB, GGUF quants from Unsloth within two hours, and a third-party NVFP4 build the same evening.

The FP8 number is the one to hold on to. Halving the file size is what decides whether this model is a two-GPU problem or a one-GPU problem, and it is the difference most launch coverage skips.

A generated single-column scoreboard titled "Qwen4-35B-A3B - the scoreboard" with six rows: Licence Apache 2.0; Weights 105.8 GiB BF16, 33 shards; Context 1,048,576 tokens native; Active params 3.8B active of about 56B total; Vendor chart 6 of 12 panels ahead of Qwen3.8-Flash-Next; Hosted price not published. The footer reads "Specs per the published model card; benchmark count from the vendor chart; no independent scores yet."A screenshot of the Hugging Face blog post "Welcome Qwen 4: Cutting-edge intelligence on-device", published December 4, 2026, showing the opening paragraphs that state ~35B main parameters, ~3.8B active per token, ~20.5B PLE parameters, ~56B total, native text image and video input, a 1M token context window and Apache-2.0, and a sidebar listing the Qwen/Qwen4-35B-A3B repository at 57B parameters.

The leak, scored against the model card

We have a stake in this comparison, so treat it as a scorecard rather than a victory lap. The 30 November pull request in AMD's SGLang fork was withdrawn after two hours, and the spec we reconstructed from its orphaned commits is now checkable against a public config. Six of the seven checklist items below were confirmed by the card; the seventh, licensing, was simply not in the code:

• Layers — 40 in the withdrawn spec, 40 in the card. The layout is 10 repeats of three Gated DeltaNet layers followed by one Qwen Sparse Attention layer, each followed by a mixture-of-experts block.

• Experts — 256 routed, top-8, in both. The card adds one detail the PR did not carry: there is also one shared expert per block, so nine experts fire per token.

• Hidden size — 2,048 in both, with a 2,048-wide residual.

• Context — 1,048,576 in both.

• BF16 footprint — the PR implied roughly 105 GB; the checkpoint is 105.8 GiB. The estimate held to within a rounding error.

• Attention geometry — 16 query heads and 2 KV heads at head dimension 256, which is what the PR's spec constants encoded.

• Licence — absent from the PR, Apache 2.0 in the card. This is the one place where reading the code told you nothing, and where the cautious "no license published" line in our earlier piece was the correct answer at the time.

What the leak could not tell anyone, and what matters more than any of the above: how the model scores, how fast it decodes, and whether Alibaba would ship the 27B first. The last of those is still unanswered — there is no Qwen4-27B repository from Alibaba.

Inside the architecture: three GDN layers per QSA

The reason a 1M-token window is affordable here is that most of the network is not doing quadratic attention. Thirty of the forty layers use Gated DeltaNet, which carries a fixed-size recurrent state and updates it as each token arrives; its memory cost does not grow with sequence length. The other ten use Qwen Sparse Attention, which is where the model recovers the ability to look at specific earlier tokens.

QSA does that with an indexer rather than a full score matrix. The indexer groups the context into blocks of four tokens, averages their keys, and for each query selects up to 512 groups — a budget of 2,048 tokens, plus whatever is in the last unfinished group. The attention layer then reads individual tokens inside the chosen groups. That is a retrieval decision made per query, not a sliding window, and it is the mechanism the Qwen3.8-Flash-Next preview introduced in August.

Two other choices are worth knowing before you size hardware. First, each token carries four residual streams from a single 2,048-dimensional embedding, and learned gates mix them before every attention and MoE block, then scale the shared output back into each stream separately. Second, the per-layer n-gram embedding sits in layer two and holds 20.5B of the model's parameters — ten million bigrams and trigrams. Each token reads only 16 rows of that table: eight encoding the previous two tokens, eight encoding the previous three. It is a lookup, not a matmul, but it is also more than a third of the checkpoint, which is why quantising this model behaves unlike quantising a plain 35B MoE.

Benchmarks: six panels ahead, six behind

Alibaba published a twelve-panel chart rather than a table, and four of the panels cite Artificial Analysis as the source while the rest are the vendor's own or Mercor's. Read the numbers as vendor-selected and vendor-plotted: we have not run them, and at the time of writing we could not find an Artificial Analysis model page for Qwen4-35B-A3B. The comparison model throughout is Qwen3.8-Flash-Next, which is substantially larger.

• DeepSWE v1.1 — 61.8, against 58.7 for Qwen3.8-Flash-Next and 42.2 for Qwen3.8-27B.

• Terminal Bench 4.1 — 21.2, against 24.2 and 5.6.

• FrontierCode-AA 2.0 — 16.1, against 27.1 and 14.9.

• NL2Repo — 51.7, against 48.1 and 42.3.

• Work360 — 42.9, against 43.7 and 37.1.

• APEX Agents v1.1 — 59.0, against 61.0 and 47.5.

• AA-Briefcase v1.1 — 1,486 Elo, against 1,567 and 1,391.

• AutomationBench-AA — 57.9, against 55.9 and 48.2.

• HealthBench Professional — 47.4, against 34.8 and 29.8.

• GPQA — 86.9, against 91.7 and 89.2.

• Chartography — 27.8, against 24.6 and 27.8, with the vendor noting a minimum-pixel setting for its own scores.

• VideoIndex — 52.9, against 51.4 and 51.9.

The split is the story, and it is more interesting than a clean sweep would have been. Qwen4-35B-A3B wins the software-engineering panels that reward long-horizon repository work — DeepSWE by 3.1 points, NL2Repo by 3.6 — and it wins health reasoning by 12.6 points over a much larger sibling. It loses the two coding benchmarks closest to real terminal work: Terminal Bench 4.1 by 3.0 points and FrontierCode-AA by 11 points. Anyone planning to replace a Flash-class model with this one on agentic coding should read those two rows first, because they are the ones that predict whether an agent finishes a task in a sandbox.

What it costs to run before anyone rents it to you

No hosted price exists yet. The card says the model is served on Qwen Cloud under the name qwen4-35b-a3b and that the API will be available "soon"; there is no rate on the page. So for now the cost of this model is hardware, and the arithmetic is unusually clean because the checkpoint sizes are published:

• BF16 — 105.8 GiB of weights. A single 141 GB H200 leaves about 35 GB for cache and activations, which is workable for short prompts and tight at the full 1,048,576 tokens; two 80 GB cards split the weights with more headroom.

• FP8 — 60.2 GB. This is the practical single-card configuration: one 80 GB H100 or H200 with roughly 20 GB left over.

• NVFP4 — 46.9 GB from a third-party build published on 3 December, which is the first format that fits a 48 GB card on paper and not by much.

• GGUF — Unsloth's UD-Q4_K_M is 35.2 GB across two files, and the most aggressive 1-bit quant still lands at 21.3 GB. That floor is the 20.5B PLE table: it stays large while the experts shrink, so this checkpoint has a much higher GGUF floor than a typical 35B-A3B.

Those are my sums from published file sizes, not a vendor hardware table or a measured throughput number, and nobody has published tokens per second for this checkpoint yet. Treat the fit as arithmetic and the speed as unknown.

Where you can call it today

Day-0 support is real and broad: transformers through AutoModelForMultimodalLM, vLLM with a published recipe, SGLang with a cookbook entry, llama.cpp and Llama App, MLX and OMLX, Ollama, Unsloth for fine-tuning, and TokenSpeed for serving. The card recommends the dedicated engines for production and ships an MTP drafter for speculative decoding.

The SGLang pull request that put this model on our radar, number 55182 in sgl-project/sglang, is a weaker signal than its title suggests. It was opened at 02:03 UTC on 4 December — after the weights were already public — it is still open and unmerged, and while the diff is real (66 files, one commit, about 6,200 lines added), its Motivation and Modifications sections are the unfilled template. The cookbook linked from the model card is the thing that actually documents SGLang support. Do not read "day-0" in a PR title as a capability that landed because of the PR.

On the hosted side the honest answer is that there is nowhere to rent it at a published price this week. Qwen Cloud has named the model without pricing it. OrcaRouter does not carry Qwen4-35B-A3B yet; the Qwen4 model on our catalogue today is Qwen4-Max, the closed flagship, and the 35B is not on the model list. When an open checkpoint does land on the platform, the reason to route it rather than sign a second contract is the same as for every other model — one API key, provider list price passed through at 0% markup, and automatic failover if a provider's copy is slow or down. That is also the cheapest way to try a model this new without betting a production path on it.

A screenshot of GitHub pull request #55182 in sgl-project/sglang, titled "[Feat] model: Qwen4 day-0 support", marked Open and targeting main from the qwen4 branch, opened by Qiaolin-Yu with one commit, 66 files changed and a +6,236 / -259 line count, with the Motivation, Modifications, Accuracy Tests and Speed Tests sections left empty.

Who should download it this week

If you have a 141 GB accelerator or a pair of 80 GB cards and a long-context workload — contract review, repository-scale code reading, hour-long video — this is the most interesting open-weight release of the quarter, and the licence means you can put it in a product without a legal conversation. The FP8 build lowers that bar to one 80 GB card.

If your work is terminal agents, wait for independent Terminal Bench and FrontierCode numbers before switching. The vendor's own chart has this model behind a larger sibling on exactly those two tasks, and a 3-point gap on Terminal Bench is the kind of difference that shows up as an agent that gives up one step early.

If you only consume models through an API, there is nothing to do yet. No price, no hosted endpoint we can point at, and a 27B that Alibaba has trailed but not shipped. The next two data points worth watching are the first third-party throughput measurement and whether the rest of the open Qwen4 series arrives before the end of the year — the architecture is now public, so the follow-ups are a question of when, not whether.