Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 6 min read

Qwen4 is "on-device" with a 1M-token window. The official architecture still draws a narrower line

On December 4, Hugging Face published Welcome Qwen 4: Cutting-edge intelligence on-device, written with the Alibaba Qwen Team. The sentences that travel are short: Apache 2.0, about 3 billion active parameters, a native

On December 4, Hugging Face published Welcome Qwen 4: Cutting-edge intelligence on-device, written with the Alibaba Qwen Team. The sentences that travel are short: Apache 2.0, about 3 billion active parameters, a native 1-million-token context, text plus image and video in, and day-0 support in transformers, llama.cpp, vLLM, and SGLang.

By this morning, December 6, Dev.to already has several launch recaps, including ones that say you can run it on a laptop or "actually run it locally." I am not going to write another release note. I re-opened the official blog and the Hugging Face model card for Qwen/Qwen4-35B-A3B. The useful split is still in those pages: what "3B active," "1M context," and "on-device" officially mean, and what they do not.

What actually shipped

The official pages still agree on the release itself.

Qwen4-35B-A3B is a natively multimodal Mixture-of-Experts model. The December 4 blog describes about 35 billion main parameters, about 3.8 billion active parameters per token, and about 20.5 billion Per-Layer N-gram Embedding (PLE) parameters, or about 56 billion in total. The model card's wording is slightly tighter: 35 billion parameters with 3 billion activated, plus 20 billion n-gram embedding parameters and 2 billion MTP parameters. It is licensed under Apache 2.0. It accepts native text, image, and video input and emits text. The native context length is 1,048,576 tokens.

That release is real. The rest of this post is about the footnotes that already sit next to it.

"3B active" is compute per token, not the size of the checkpoint

"3B active" is the right contrast with a dense 35-billion-parameter model. It is not a description of the files you download.

The official blog's own total is about 56 billion parameters once the n-gram embedding table is counted. The Hub's safetensors index for this repository lists about 56.8 billion BF16 parameters, and the repository reports about 114 GB of stored weights. If a recap treats "3B active" as "a 3-billion-parameter download," it is not reading the card.

The card also explains why the huge PLE table is not the same as 20 billion extra parameters on the GPU for every token. The embeddings live in the second decoder layer. Each token reads just 16 rows of that table: eight lookups for the last two tokens, and eight for the last three. The official wording is that n-gram embeddings improve quality "without extra compute or accelerator memory overhead." The Hugging Face blog's Apple Silicon path makes the same idea operational: oMLX can offload PLE to SSD.

So there are three different quantities in one model name. Active parameters tell you how much work happens per token. The PLE table is large on disk, and officially cheap at runtime if it is not all resident on the accelerator. The BF16 checkpoint is still a ~56-billion-parameter repo. Those can all be true at once.

A 1M-token window is not full attention over 1M tokens

This is the part most recaps flatten.

The official architecture is a hybrid. The text decoder repeats the same four-layer pattern ten times. In each group, the first three layers use Gated DeltaNet, which updates a fixed-size memory as it reads each token. The fourth layer uses Qwen Sparse Attention (QSA). QSA can look back at individual tokens from anywhere in the context, but it does not attend to all of them.

The blog is specific. A small indexer groups tokens in fours and averages their keys. For each query, it picks up to 512 of those groups. The attention layer then reads the individual tokens in the selected groups, plus any tokens in the last unfinished group. That is up to 2,048 selected tokens, and at most three more at the end.

So "native 1,048,576-token context" means the window can be that long. It does not mean every new token runs dense attention over a million earlier tokens. Most layers compress the past into a fixed-size state. The sparse layer, when it does look back, officially reads about two thousand tokens. If you are choosing this model because you want a 1-million-token needle to be equally visible no matter where it sits, that is a claim the official architecture description does not make.

The generation defaults have a similar split. Reasoning effort can be xhigh, high, low, or off, and it defaults to high with preserve_thinking enabled. The card warns that in multi-turn agentic tasks, lowering the effort does not always reduce total completion time: faster turns can mean more retries. The same page even suggests leaving room for 262,144 reasoning tokens and 131,072 final-response tokens inside that 1M window. A short local demo and the official long-horizon setting are not the same configuration.

"On-device" is a headline. The official serving recipes are more specific.

The blog title says "on-device," and day-0 llama.cpp, Llama App, GGUF, and MLX support is real. Hugging Face says it ships three GGUF quants β€” Q4_K_M, Q6_K, and Q8_0 β€” in the ggml-org/Qwen4-35B-A3B-GGUF repository. The same blog reports a 22% generation-speed increase on an Apple Silicon M5 with the Q4 quant when MTP speculative decoding uses three draft tokens. That is an official local result. It is not a laptop VRAM budget, and the official pages I opened do not publish one.

The documented full-precision path is much larger. The blog's vLLM and SGLang recipes serve the BF16 checkpoint on a single NVIDIA H200 141GB. The SageMaker recipe serves the FP8 checkpoint on one H100 80GB. The Vertex AI recipe uses two H100 80GB GPUs. The model card, for people who do not want to maintain that infrastructure, points to the official Qwen Cloud API under the name qwen4-35b-a3b.

I would keep those paths separate. Quantized GGUF or oMLX with PLE offloaded to SSD is the "on-device" claim. BF16 on an H200 is the official serving example. "You can run it on a laptop" is a third-party headline, not a sentence I can find in the official blog or card.

Two smaller integration footnotes are also official, and easy to miss. The card recommends the reference tokenizer and says trust_remote_code=True is required to create it. A Jinja compatibility template is included, but the card warns that it can produce different token IDs even when the formatted text looks the same. For video, the shipped preprocessor is deliberately conservative; the card says you should raise longest_edge if you want about 224k video tokens for hour-scale video.

The score table is a mix of official and cited numbers

I am not going to invent a new leaderboard summary. The public card lists 61.8 on Deep-SWE, 86.9 on GPQA Diamond, and 21.2 on Terminal Bench 4.1. Some other scores are cited from Artificial Analysis or Mercor. Work360 is described as the team's own benchmark. There are also community terminal-agent numbers on the card, including a 27.7 result whose note says the harness was "not the leaderboard protocol."

Those figures can all be useful. They are not a substitute for running the model on your own documents or tools. A recap that stops at "punches above its weight" is repeating a marketing shape, not a measurement you can take to a production prompt.

What I would actually do with this

If I already have a machine that can run a Q4 or Q6 GGUF, or an Apple Silicon box where oMLX can offload the PLE table, I would try the local path. I would not treat "3B active" as a promise that the BF16 repo will fit, and I would not treat a 1M context setting as proof that retrieval over a million tokens is uniformly reliable.

If I need the full-precision checkpoint, I would start from the official H200 / H100 recipes, or from Qwen Cloud, rather than from a laptop headline.

And if I am comparing this with other open models this week, I would keep the architecture in the same paragraph as the scores: a long window with a fixed-size memory and a 2,048-token sparse lookback is a different product from a long window with dense attention. Both can be valuable. They are not the same claim.

I will keep this release in the "useful, bounded, actually downloadable" column. "On-device," "3B active," and "1M context" are all officially true. They are also all narrower than the headlines already circulating around them.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.