Innhold Show
Qwen 4 is now available as an open-weight multimodal AI model that can run locally, process text, images and video, and work with up to one million tokens in a single context. The first open model is Qwen4-35B-A3B, released under the Apache 2.0 license.
This is a solid and practically important release for anyone who wants more AI work to happen on hardware they control. Qwen 4 arrives with support for Transformers, llama.cpp, MLX, vLLM and SGLang from day one. That avoids the familiar launch ritual where the weights exist but the software people actually use needs several weeks to catch up.
The name does need some translation. This is not a tiny three-billion-parameter model, and “on-device” does not mean the complete package will casually move onto any random phone. Qwen4-35B-A3B combines roughly 35 billion main parameters with large n-gram tables and a multi-token prediction component. Only part of the mixture-of-experts model is active for each token, but the complete model still has to remain available in memory or storage.
What is Qwen4-35B-A3B?
Qwen4-35B-A3B is the first open model in the Qwen 4 family. According to the official model card, the language model has 35 billion parameters, approximately 3 billion active parameters per token, 20 billion parameters in n-gram embeddings and 2 billion in its multi-token prediction layer. Hugging Face describes the full system as roughly 56 billion parameters, with about 3.8 billion active per token.
The A3B part of the name refers to how much of the main model works on each token, not the size of the download. The architecture contains 256 routed experts. Eight routed experts plus one shared expert are used in each layer. This division of labor is designed to provide more capacity without pushing every calculation through the entire model every time.
Qwen 4 is multimodal by design. It accepts text, images and video and produces text. Images are divided into 16 x 16 pixel patches, while video is sampled at two frames per second by default. That puts document analysis, visual coding tasks, video analysis and agents that need to understand both screenshots and text within the scope of one model.
How does Qwen 4 reach one million tokens?
The native context length is 1,048,576 tokens. Qwen 4 reaches it with a hybrid architecture that alternates between linear and sparse attention instead of making every token compare itself with everything that came before. This reduces both the computation and the size of the cache that grows with the context.
Three out of every four layers use Gated DeltaNet, which updates a fixed-size memory as it reads the input. The fourth uses Qwen Sparse Attention. A small indexer selects up to 512 groups from the earlier context, and the attention layer reads up to 2,048 selected tokens. This four-layer pattern repeats ten times across the model’s 40 layers.
A substantial part of the parameter count sits in a per-layer embedding table containing about 20.5 billion parameters. Each token retrieves only 16 rows from that table to encode short two- and three-token patterns. The point is to give the model access to a large store of pattern information without activating the entire table like a conventional neural layer.
One million tokens is a maximum capacity, not a promise that every task improves when you fill the window. Large document collections still take time to ingest, require memory and need a sensible retrieval strategy. For local deployments, measuring real memory use and speed at the context length you need matters at least as much as reading the maximum number on the model card.
What does multimodal local AI mean in practice?
The practical change is that one model can process text, images and video without first sending everything to a closed cloud service. The Hugging Face release demonstrates the same model handling ordinary text, image analysis, video understanding and tool calls. That creates a more unified foundation for local assistants and agents.
For a business, this could mean processing documents, screenshots and video inside its own environment. For a developer, the same model can inspect an image of a problem, write code and call a tool. The Apache 2.0 license also makes the weights far more useful than a model available only through a demo or a single vendor’s API.
Local execution is not automatically secure execution. When a model gets access to files, code, customer data or a network, permissions, logging and network access must be enforced outside the model. Open weights and a permissive license give you more control over deployment, but they do not remove the need to control what the model, processor code and runtime are allowed to do.
The advantage is that local weights let you keep the processing local and build those boundaries yourself. That is a real difference from sending the material to an external service. Sensitive deployments should still use least-privilege access, approved network destinations and human confirmation for irreversible actions.
What hardware does Qwen 4 need?
There is no single hardware requirement that covers every version. ggml-org has published 4-bit, 6-bit and 8-bit GGUF variants, and the model can run on Apple Silicon through oMLX and mlx-lm. BF16 and FP8 versions are available for more powerful systems. That choice affects storage, memory use, speed and how much precision the model retains.
The important part is not to confuse roughly 3.8 billion active parameters with the model’s total size. Experts that do not calculate the current token still need to be available from memory or storage. The n-gram table, model cache and the cost of processing images, video and long contexts come on top of that.
On Apple systems, oMLX can move the large PLE table to SSD storage. That may let the model run on hardware that would otherwise lack enough unified memory, but storage is slower than memory. “The model starts” and “the model provides a good interactive experience” are two very different claims.
With llama.cpp, the model can be launched directly from the official GGUF repository. MTP-based speculative decoding is also supported. Hugging Face measured a 22% increase in generation speed on an Apple Silicon M5 using the 4-bit version and three draft tokens. That is one vendor-measured setup, not a universal speed guarantee.
Why does day-one software support matter?
An open model becomes practical only when it runs in tools people use. Qwen 4 ships with support in Transformers, llama.cpp, Llama App, vLLM, SGLang, MLX and Hugging Face Inference Endpoints. TRL also supports fine-tuning. For people who do not want to operate the model themselves, the model card lists an official Qwen Cloud API under the model name qwen4-35b-a3b.
Transformers provides both a simple pipeline and lower-level access through AutoModelForMultimodalLM and AutoProcessor. Reasoning effort can be set to xhigh, high, low or off, with high as the default. That gives developers a direct tradeoff between more work per answer and faster responses, although lower effort may not make a long agent task faster if the model needs more attempts.
For server deployments, the model card recommends SGLang, vLLM or TokenSpeed. Local users get llama.cpp, Ollama, Unsloth, MLX and LiteRT-LM. This broad starting lineup reduces the risk that an interesting model remains trapped inside one custom demonstration.
For me, this part of the release matters more than another record in a benchmark table. Local AI lives or dies by how much friction stands between a model file and a useful workflow. Day-one support means people can measure Qwen 4 on their own documents, agent tasks and hardware while the release is still current.
Is Qwen 4 ready for serious agent work?
The Qwen team designed Qwen 4 for long-running agent tasks, tool calls and visual deliverables such as frontends, 3D models and game development. Hugging Face shows examples in which the model creates an animation, presentations and a real-time scene. These examples demonstrate the kinds of tasks it can attempt. They do not establish how reliably it performs inside a production agent.
A more useful example in the release is the fine-tuning experiment for cybersecurity alerts. A TRL recipe trains the model to classify alerts and cite evidence. Across 12 held-out tasks, the base model passed 4, an adapter after 50 updates passed 6, and the adapter after 100 updates fell to 3. It is a small experiment, but it neatly shows why a training curve alone is not enough: later is not always better.
For agent use, test Qwen 4 across the complete workflow rather than judging isolated answers. Measure how often it actually finishes the task, how many rounds it needs, whether it uses tools correctly and what happens when it encounters an unexpected state. A model can write impressive code and still be bad at stopping, checking its work or requesting the right clarification.
The long context and native multimodality make Qwen 4 genuinely relevant to agents. They do not make it automatically reliable. That distinction becomes critical when a model gains hands through filesystems, networks and other tools.
What should you check before deploying it?
Start with the actual workload. Choose a quantization that fits the available memory, measure speed with a realistic context and use current versions of the runtime. The Qwen team explicitly warns that performance and throughput can vary considerably between frameworks.
Then inspect the entire chain around the model. Apache 2.0 is a clear and usable license, but dependencies, processor code, the model revision and network access still need review. The model card notes that the reference tokenizer requires trust_remote_code=True. That is a concrete reason to inspect and pin the code revision you run.
Do not use one million tokens merely because the field exists. Test the context length the job actually requires, and verify whether the model can still recover important details buried deep in the material. For video, you also need to decide on frame rate and the number of visual tokens. More input does not automatically produce a better answer.
Finally, compare Qwen 4 with the model you already use. Judge it as a complete local package: multimodal input, long context, agent work, real speed and control over data flow. Open weights make that comparison possible. They do not decide the result in advance.
An open model that is actually ready to use
Qwen4-35B-A3B is not small just because only a few billion parameters are active per token. It still needs substantial storage and memory, and a one-million-token context can be expensive even with a more efficient architecture. “On-device” should be read as running on hardware you control, not as a guarantee that it fits every device.
Even with that boundary, this is a strong open release. The weights are available, the license is Apache 2.0, multimodality is built in and the major runtimes support it from day one. That makes Qwen 4 more than a model presentation. People can download it, lock it down and find out whether it is any good.
That is also the right test. Do not let the vendor’s benchmark table decide for you. Measure the model on your own tasks with the quantization and hardware you will actually use. If Qwen 4 maintains its quality across long, multimodal agent workflows without turning local inference into a memory and storage nightmare, it will have landed in the exact area where open models can move meaningful control away from cloud services and back to the user.
Frequently asked questions
Is Qwen 4 open source?
Qwen4-35B-A3B has open model weights and uses the Apache 2.0 license, which permits broad use, modification and distribution. “Open-weight model” is more precise than assuming that the complete training data and training process have also been published.
Can Qwen 4 run on a regular PC?
It depends on the machine’s memory, storage and chosen quantization. GGUF versions are available in 4-bit, 6-bit and 8-bit formats, but the complete system has roughly 56 billion parameters. Having about 3.8 billion active per token does not remove the rest from storage or memory.
Can Qwen 4 understand images and video?
Yes. Qwen4-35B-A3B accepts text, images and video and produces text. Its video processor samples two frames per second by default. Quality on long videos, specific languages and specialized domains still needs separate evaluation; the launch material does not establish performance in every use case.
What does A3B mean in Qwen4-35B-A3B?
A3B indicates that approximately 3 billion of the model’s main parameters are active for each token. Hugging Face gives a more complete figure of roughly 3.8 billion active parameters. The full package is much larger because its expert weights, n-gram table and MTP layer must also be stored.
