Alibaba's Qwen team has put the first model of its Qwen4 generation into the open. Qwen4-35B-A3B went live on Hugging Face and ModelScope on December 4 under the Apache 2.0 license, which permits commercial use and modification. It accepts text, images and video, answers in text, and natively handles 1,048,576 tokens of context, roughly a million.
The name hints at the economics. The main network holds about 35 billion parameters, but a mixture-of-experts router activates only a small share of them for each token: the model card lists about 3 billion active parameters, while Hugging Face's launch write-up puts the figure near 3.8 billion. Every token goes to eight of 256 experts plus one shared expert. Alongside sit a separate table of roughly 20 billion n-gram embedding parameters and a 2-billion-parameter multi-token prediction module that can serve as a draft model to speed up generation. Counted together, the published weights come to close to 57 billion parameters.
Most of the novelty lies in how the 40 layers are arranged. Qwen stacks ten repeating blocks. In each one, three layers use Gated DeltaNet, a linear-attention design that keeps a fixed-size state while reading, and the fourth uses what the team calls Qwen Sparse Attention. That layer relies on a small indexer to pick which parts of earlier context deserve a closer look, capping each query at 512 blocks, or 2,048 tokens. Since three of every four layers avoid a cache that grows with the prompt, memory stays modest as inputs lengthen, and that is what makes the million-token window practical. The n-gram table, placed in the second layer, lets each token look up learned entries for the two- and three-token sequences ending at it; Qwen says this lifts quality without costing extra compute or accelerator memory.
Qwen presents the release as one step in a larger rollout. The architecture first surfaced in August in Qwen3.8-Flash-Next, an open preview, and the team says it now also powers Qwen4-Max, its ultra-sparse flagship aimed at long-horizon agent work. According to the model card, further open Qwen4 models are coming. The team also claims stronger agentic and coding ability, particularly for front-end, 3D and game projects, plus terser reasoning, with four selectable effort levels running from "off" to "xhigh".
Tooling was in place from the first day. Hugging Face says it worked with Qwen to ship support in transformers, llama.cpp, vLLM, SGLang, MLX and its own hosted inference services, with BF16 and FP8 checkpoints and 4-, 6- and 8-bit GGUF quantizations. A separate community post from the group behind LiteRT-LM, Google's on-device runtime, shows the model running on laptops behind an OpenAI-compatible local server, with a 256K default context; its authors say the full 1M window fits on a Mac with 36 GB of memory. Qwen Cloud offers the model as a hosted API as well.
Performance claims call for caution. The model card carries a results table that mixes scores Qwen attributes to Artificial Analysis and the Mercor leaderboard with Work360, an in-house test of professional workflows, and Hugging Face says the model rivals the larger Qwen3.8-Flash-Next and beats it on some tasks. None of these comparisons were reproduced for this story. A small Hugging Face experiment also shows how fragile quick fine-tuning can be: after reinforcement learning on security-alert triage, one adapter solved 6 of 12 held-out CyberDefense Bench tasks against 4 for the base model, while a later checkpoint dropped to 3.
For developers building local agents, the appeal is plain: a permissively licensed multimodal model whose per-token compute resembles a small model, with long context that does not require a data center. The open questions are whether the vendor-reported gains survive independent testing, how well answer quality holds deep inside the million-token window, and how much memory the full weight set needs in practice once quantization is taken into account.