Models·4 min read
By BitsMindsSource: Hugging Face

Qwen4-35B-A3B: Alibaba Opens Its First Qwen4 Weights

Alibaba’s Qwen team released Qwen4-35B-A3B under Apache 2.0: a multimodal mixture-of-experts model with about 3B active parameters, a 1M-token context and a new sparse attention design, sized to run on a laptop and benchmarked against Qwen3.8-Flash-Next and Inkling 2 Mini.

Alibaba releases Qwen4-35B-A3B with open weights Editorial illustration: a processor package with gold pins and a brushed lid, the official Qwen mark inlaid in the lid, on an indigo field. A metaphor for a model small enough to run on local hardware, not an Alibaba product image. — ALIBABA QWEN Qwen4 35B-A3B OPEN WEIGHTS BITSMINDS.COM
Share:

Alibaba’s Qwen team has published the weights of Qwen4-35B-A3B, the first open model in its Qwen4 generation, under the Apache 2.0 licence. It is a mixture-of-experts model that takes text, images and video as input and answers in text, with a native context window of 1,048,576 tokens. Until now Qwen4 existed only as Qwen4-Max, the closed flagship that opened in preview in November; the model card says the rest of “the Qwen4 open model series is now on its way.” Hugging Face’s launch post, published on December 4, carries the subtitle “cutting-edge intelligence on-device”, and that is the pitch: a model meant to run on a workstation or a laptop rather than in a data centre.

The architecture is where Qwen4 departs from its predecessors. The 40-layer decoder repeats one pattern ten times: three layers of Gated DeltaNet, a linear-attention design that keeps a fixed-size state, followed by one layer of what Qwen calls Qwen Sparse Attention. That layer groups earlier tokens in fours, scores each group with a learned indexer, and attends to at most 512 groups, or 2,048 positions, out of a context of a million. Each layer routes a token to eight of 256 experts plus one shared expert, four residual streams are mixed by learned gates, and layer two adds a large n-gram embedding table that looks up the previous two and three tokens. A multi-token-prediction head supports speculative decoding.

Diagram of the Qwen4-35B-A3B architecture: text and vision inputs feed a decoder of ten blocks, each three Gated DeltaNet layers and one Qwen Sparse Attention layer, with panels on sparse attention, gated residual connections, the layer-2 n-gram lookup and the mixture of experts
The Qwen4-35B-A3B architecture. Image: Hugging Face / Qwen

The two sources do not quite agree on the size. The model card lists 35 billion parameters with 3 billion active per token, plus a 20-billion-parameter n-gram embedding and a 2-billion-parameter prediction head; the Hugging Face post puts it at about 3.8 billion active and 20.5 billion in the embedding, roughly 56 billion in total. Either way the n-gram table is a lookup rather than computation, and the post notes that the oMLX runtime on Apple hardware can offload it to SSD. Reasoning is adjustable through a reasoning_effort setting with four levels, from off to xhigh, with high as the default. Weights ship in BF16 and FP8, with GGUF quantisations for llama.cpp, MLX builds, an Ollama package and day-one recipes for vLLM and SGLang; the post measured 22% faster generation on an Apple M5 machine with speculative decoding switched on. Alibaba also serves it through Qwen Cloud.

Qwen’s own results compare the model with Qwen3.8-Flash-Next, the larger model that previewed this architecture, with the dense Qwen3.8-27B, and with Thinking Machines’ Inkling 2 Mini. The new model matches or beats Inkling 2 Mini on every benchmark in the set and trades wins with Flash-Next: it leads on DeepSWE (61.8 against 58.7), NL2Repo and AutomationBench, but trails clearly on FrontierCode-AA 2.0 (16.1 against 27.1) and Terminal Bench 4.1. Several of the agent scores are cited from Artificial Analysis; Work360 is Qwen’s in-house test of professional workflows. All of them are vendor-reported, and the jump from the dense 27B model is the clearest signal in the set: on Terminal Bench 4.1 the older dense model scores 5.6, the new one 21.2.

Qwen4-35B-A3B on coding and agent benchmarksScores as published by Qwen · higher is better · axis starts at 0Qwen4-35B-A3BQwen3.8-Flash-NextInkling 2 Mini01020304050607061.858.748.2DeepSWE v1.121.224.25.6Terminal Bench4.116.127.115.1FrontierCode-AA2.051.748.141.8NL2Repo59.061.050.9APEX Agents v1.157.955.941.8AutomationBench-AA42.943.730.4Work360
Coding and agent benchmarks. Qwen3.8-27B is omitted for space; its scores range from 5.6 on Terminal Bench 4.1 to 48.2 on AutomationBench-AA. On AA-Briefcase v1.1, an Elo rating, the new model scores 1486 against 1567 for Qwen3.8-Flash-Next. Data: Qwen model card

Outside coding, the biggest gap is in health. On HealthBench Professional Qwen4-35B-A3B scores 47.4, ahead of Inkling 2 Mini at 45.7 and well ahead of Flash-Next at 34.8, while on GPQA it gives up almost five points to Flash-Next. The Hugging Face post adds a small fine-tuning experiment as well: with reinforcement learning on cyber-defence alert triage, a LoRA adapter lifted the model from four to six passes on twelve held-out tasks, then fell back to three as training ran on, a reminder that its numbers move with the recipe.

Qwen4-35B-A3B on reasoning, health and visionScores as published by Qwen · higher is better · axis starts at 0Qwen4-35B-A3BQwen3.8-Flash-NextInkling 2 Mini02040608010047.434.845.7HealthBenchProfessional86.991.786.9GPQA27.824.622.1Chartography52.951.444.0VideoIndex
Reasoning, health, chart and video benchmarks. Data: Qwen model card

The interesting bet is the sparse-attention layer. Open models with million-token windows have usually paid for them in memory or speed; Qwen4 keeps three in four layers at a fixed-size state and lets only one layer in four attend back to individual tokens, and then only to the ones its indexer picks. If the larger open Qwen4 models the card promises keep that design, the long-context race among open-weight models will be run on efficiency rather than size.

Want AI news before everyone else?

The morning's most important AI stories, straight to your inbox. No fluff.

Related Articles