Skip to content

Open models

Qwen4 goes open: Alibaba releases Qwen4-35B-A3B

3 min read

Written by an AI model from the linked sources and checked against them by a second model. How we work

Image: threads.com

Alibaba’s Qwen team has published the weights of Qwen4-35B-A3B on Hugging Face under the Apache 2.0 license. It is the first open model in the Qwen4 family, which debuted with the flagship Qwen4-Max, and Qwen says more open Qwen4 models are on the way. The model reads text, images and video, and it can take up to 1 million tokens of context.

What’s inside

The name says the main thing. The model has 35B parameters, but only 3B of them work on any one token. It is a mixture of experts: each layer is split into many small sub-networks, and a small router picks a few of them for each token. Qwen4-35B-A3B has 256 experts and uses 8 of them plus one shared expert for every token.

Qwen built the Qwen4 architecture for fast, cheap inference. It mixes two lighter kinds of attention, the part of the model that keeps track of the context. According to Qwen, this gives faster responses and a much smaller memory cache on long inputs, and that is what makes the 1-million-token window possible. Qwen also says the model needs fewer rounds to finish a task and thinks more briefly at every effort level, so tasks cost less overall.

How it compares

Testing Catalog, citing Artificial Analysis, reports that it is the most intelligent model under 150B parameters. On the Artificial Analysis Intelligence Index it scores 25, five points ahead of Inkling 2 Mini at a similar cost per task. The big models are in another league: Qwen4-Max scored 43 on the same index in November, and the top closed models score in the 60s.

Qwen’s own benchmark chart is less one-sided. The new model beats Qwen3.8-27B on most tests, but it trades wins with the older Qwen3.8-Flash-Next. It is ahead on some coding and automation tests and behind on others, such as Terminal Bench.

Running it yourself

Qwen says the architecture has already caught on for running models locally, and tools such as llama.cpp, ollama and mlx-vlm support it. One thing to keep in mind: the small active count isn’t the size you have to store. As Inference Engineering Academy explains, active parameters tell you how much work each token takes, while total parameters tell you how much memory the weights need. Qwen’s model card lists the 35B plus another 20B in n-gram embeddings and 2B in one extra layer.

By default the model thinks at “high” effort. You can switch it to xhigh, low or off. Qwen warns that on multi-step agent tasks, lower effort can mean more failures and retries, which can make the whole job slower and more expensive.

Developers should note the tokenizer change. Qwen ships its own reference tokenizer, which needs trust_remote_code=True. It also includes the familiar Jinja chat template, but only for backward compatibility: that template produces the same text but can produce different token IDs.

What comes next

A smaller model looks close. A day earlier, a pull request adding Qwen4 support to Hugging Face’s Transformers library included usage examples for a checkpoint called Qwen4-27B. Alibaba hasn’t announced that model yet.

Join the conversation

Sign in to leave a comment. It appears after moderation.