AdvancedAI

Alibaba Opens Qwen4-35B-A3B With Day-One llama.cpp Support

Alibaba’s Qwen team published Qwen4-35B-A3B on December 3, 2026 under Apache 2.0, a natively multimodal mixture-of-experts model with a native 1,048,576-token context that shipped with day-one support in transformers, llama.cpp, vLLM, SGLang and MLX. It is the first open checkpoint from the Qwen4 generation, which until now existed only as the closed Qwen4-Max and as an architecture preview.

Diagram of the Qwen4-35B-A3B architecture showing text and image inputs, a vision encoder, ten repeats of three Gated DeltaNet layers followed by Qwen Sparse Attention, and the mixture-of-experts routing
Qwen4-35B-A3B’s decoder repeats a four-layer block ten times, alternating linear attention with sparse attention. Image credit: Hugging Face

What the Checkpoint Contains

The name undersells the download. Qwen counts 35 billion main parameters with roughly 3 billion activated per token, plus a 20.5-billion-parameter per-layer n-gram embedding table and a 2-billion-parameter multi-token-prediction head; Hugging Face’s metadata lists the checkpoint at 57 billion, and Artificial Analysis reports the same figure. The repository carries Apache 2.0 terms, an FP8 sibling appeared within a minute of the base weights, and the model accepts text, images and video while emitting text only.

Qwen frames it as the continuation of a line rather than a standalone release. The model card credits Qwen3.8-Flash-Next with proving the Qwen4 architecture in community hands, positions Qwen4-Max as the closed flagship for long-horizon agentic work, and describes the open series as “now on its way”. The card does not name the next sizes or dates. A Qwen4-27B has been circulating as a rumour after appearing in a transformers pull request, but nothing has shipped.

Inside the Hybrid Stack

Forty decoder layers repeat one block ten times: three Gated DeltaNet layers, which update a fixed-size state as they read, followed by a single Qwen Sparse Attention layer. The sparse layer keeps a small indexer that groups the context into sets of four tokens, scores the groups, and lets each query read up to 512 of them — 2,048 individual tokens — instead of the whole prefix. Because most layers are linear, the cache footprint stays flat as context grows, which is how Qwen gets to a million tokens natively.

Two other choices are unusual. Each token carries four copies of its 2,048-dimensional embedding as separate residual streams; learned gates mix them before every attention or MoE block and scale each stream’s share of the output. And layer two holds the n-gram table, where each token reads 16 rows: eight lookups encoding the previous two tokens and eight encoding the previous three, joined and convolved into the layer’s input. The mixture-of-experts layer routes to 8 of 256 experts plus one shared expert, with an expert intermediate size of 512.

Day-One Tooling

The ecosystem work landed faster than the announcement. Hugging Face merged the transformers implementation, pull request 51678, at 13:03 UTC on December 3; llama.cpp merged “model: qwen4”, pull request 33626, at 18:18 UTC the same day, adding 451 lines across nine files. Hugging Face also published GGUF builds at Q4_K_M, Q6_K and Q8_0, and llama.cpp exposes the model’s multi-token-prediction drafter through --spec-type draft-mtp. With three draft tokens, Hugging Face measured a 22% generation speedup on an Apple M5 running the 4-bit quantisation. oMLX supplies custom Metal kernels for the sparse attention and gated residual, and can offload the per-layer embedding table to SSD.

The Benchmarks, Including the Losses

Qwen’s published comparison is not a clean sweep. Qwen4-35B-A3B beats the much larger Qwen3.8-Flash-Next on DeepSWE v1.1 (61.8 to 58.7), NL2Repo (51.7 to 48.1), AutomationBench-AA (57.9 to 55.9), HealthBench Professional (47.4 to 34.8) and VideoIndex (52.9 to 51.4). It loses on Terminal Bench 4.1 (21.2 to 24.2), FrontierCode-AA 2.0 (16.1 to 27.1), Work360 (42.9 to 43.7), APEX Agents v1.1 (59.0 to 61.0) and AA-Briefcase Elo (1486 to 1567). Terminal Bench, FrontierCode, AA-Briefcase and AutomationBench scores were supplied by Artificial Analysis rather than run by Qwen.

Benchmark Qwen4-35B-A3B Qwen3.8-Flash-Next Qwen3.8-27B
DeepSWE v1.1 61.8 58.7 42.2
Terminal Bench 4.1 21.2 24.2 5.6
FrontierCode-AA 2.0 16.1 27.1 14.9
NL2Repo 51.7 48.1 42.3
AutomationBench-AA 57.9 55.9 48.2
HealthBench Professional 47.4 34.8 29.8
Twelve bar charts comparing Qwen4-35B-A3B with Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling2 Mini across coding, agentic, professional-work and multimodal benchmarks
Qwen’s published comparison. The model leads on DeepSWE, NL2Repo, AutomationBench and HealthBench but trails Qwen3.8-Flash-Next on Terminal Bench 4.1 and FrontierCode-AA. Image credit: Qwen

Independent numbers are thinner but consistent with the pitch. Artificial Analysis scores Qwen4-35B-A3B at 25 on its Intelligence Index, first among comparable open-weight models in the 40B-to-150B range, at $0.06 per million input and $0.36 per million output tokens through Alibaba Cloud. Its cost per Intelligence Index task is $0.55, and the page notes that the model is verbose: 175 million output tokens against a class median of about 96 million. The measured context window there is 984k.

What This Means

The important number is 3 billion active parameters. A model that reaches scores close to much larger systems while touching roughly a tenth of its own weights per token, with day-one kernels in the two most common local runtimes, changes what fits on a workstation. A checkpoint of about 57 billion stored parameters at 4-bit precision, with a drafter that adds 22% throughput on an M5, is a realistic local target in a way that the closed Qwen4-Max is not.

The context window is the second practical change. A native million tokens with a flat cache is the difference between summarising a repository and holding it, and Qwen is shipping that capability in the open tier rather than reserving it. Whether the sparse attention holds quality at that length is not something the vendor benchmarks test; none of the published scores use contexts near the limit.

The caveat is the usual one for a launch-week table. Qwen’s numbers are self-reported, several rows are borrowed from Artificial Analysis, and the model loses the agentic-coding rows that matter most for the workloads this class of model is bought for. The open-weight frontier is closer than it was, but this release narrows the gap on throughput and price more convincingly than on the hardest coding tasks.

This post was drafted with AI assistance and reviewed by RITS staff.

Sources

Related stories

alibaba

Qwen3.8-Flash-Next: Alibaba Previews the Qwen4 Architecture

Alibaba’s Qwen team has scheduled an open-weight release of Qwen3.8-Flash-Next for 23:00 on August 26, 2026 (UTC+08:00), describing it on ModelScope as “a multimodal MoE model built on the next-generation Qwen4 architecture.” The weights were not yet public at the time of writing. What has circulated instead is a specification block that appeared briefly on […]

Level: General Audience

Qwen Restates Its Open-Weight Promise, Max Tier Still Closed

Qwen’s open-source numbers were put back into circulation this week: more than 460 open models, over 3 billion downloads and over 300,000 derivative models, presented as proof that the series will keep opening its weights. The figures and the commitment behind them date from Alibaba’s Yunqi conference on September 22, 2026, where Qwen’s new head […]

benchmarks

Looping a Frozen Qwen3.8-27B Buys Depth for 0.23% More Weights

An independent developer publishing as sliderforthewin released Looped Qwen3.8-27B on November 27, 2026, a 240 MB adapter that sends each token through 16 middle layers of the frozen 27-billion-parameter model two or three times instead of once. The design borrows the recurrent-depth idea popularised by Thinking Machines’ Inkling-2-Mini and applies it to a model that […]

Never miss a RITS update

Subscribe to the RSS feed for AI, emerging technology, and digital scholarship news curated for the NYU Shanghai community, or get in touch to suggest a story.