Qwen4
Alibaba's Qwen4 model family of multimodal, long-context models for agentic work, whose first open-weight release is Qwen4-35B-A3B under Apache 2.0.
At a Glance
About Qwen4
Qwen4 is a model family from the Alibaba Qwen Team built on a new architecture that combines Gated DeltaNet linear attention with Qwen Sparse Attention. Its first open-weight release, Qwen4-35B-A3B, was published on Hugging Face on December 4, 2026 under the Apache-2.0 license. The family also includes Qwen4-Max, described by Qwen as the flagship of the series.
What It Is
Qwen4-35B-A3B is a natively multimodal Mixture-of-Experts model that takes text, image and video inputs and produces text output. The model card lists 35B parameters with 3B activated, plus a 20B n-gram embedding and a 2B multi-token-prediction (MTP) module, with a native context length of 1,048,576 tokens. Weights are provided in Hugging Face Transformers format, and the model card says they work with Transformers, vLLM, SGLang and TokenSpeed. Other checkpoints and quantizations, including FP8 and GGUF, are referenced in the Hugging Face blog.
Architecture and Reasoning Control
The text decoder repeats a pattern of three Gated DeltaNet layers followed by one Qwen Sparse Attention layer, each paired with a Mixture-of-Experts block of 256 experts (8 routed plus 1 shared activated). Gated residual connections and per-layer n-gram embeddings are additional architectural changes. Qwen says this design gives faster long-sequence inference and a smaller cache footprint. Thinking behavior is controlled with reasoning_effort set to xhigh, high, low or off, and with preserve_thinking. Qwen says token efficiency is improved, with more concise thinking at each effort level.
Qwen4-Max
Qwen's blog describes Qwen4-Max as built on the same architecture, with a 2.4-trillion-parameter backbone, 71B parameters activated per token, native vision and a one-million-token context window. Qwen positions it for long-horizon professional and creative work and reports gains over Qwen3.8-Max on its in-house Work360 benchmark. These are vendor-published claims.
Running and Deploying
The model can be served with SGLang, vLLM and TokenSpeed, and run locally through llama.cpp, Ollama, Unsloth, mlx-vlm and LiteRT-LM. The Hugging Face blog covers MLX on Apple Silicon and MTP speculative decoding in llama.cpp. It also shows deployment on Amazon SageMaker AI, Google Cloud, Hugging Face Inference Endpoints and Dell Enterprise Hub, as well as a TRL-based reinforcement learning recipe. The official hosted API is offered through Qwen Cloud under the model name qwen4-35b-a3b, and the endpoints are OpenAI-compatible.
Collections
Popular collections
- Obsidian Agentic & AI plugins
Collection by @samofcode
- Codebase Context Generators
Collection by @joemseifi
- Frameworks
Collection by @joemseifi
- Run YOLO Mode Without Risking Your Laptop
Collection by @reproalex
Add Qwen4 to one of your collections.
Community Discussions
Be the first to start a conversation about Qwen4
Share your experience with Qwen4, ask questions, or help others learn from your insights.
Pricing
Qwen4-35B-A3B (open weights)
Open-weight Qwen4-35B-A3B model released under the Apache-2.0 license; free to download and self-host. Hosting and compute costs are external.
- License: Apache-2.0
- Natively multimodal MoE: text, image and video input, text output
- 1M token native context window
- ~35B main parameters, ~3.8B active per token
- Checkpoints: BF16, FP8, OMLX, GGUF quantized
Capabilities
Key Features
- Natively multimodal input: text, image and video
- 1,048,576-token native context window
- Hybrid Gated DeltaNet and Qwen Sparse Attention architecture
- Mixture-of-Experts with 256 experts, 3B activated parameters
- Per-layer n-gram embeddings
- Multi-token prediction for speculative decoding
- Adjustable reasoning effort (xhigh, high, low, off)
- Tool calling and OpenAI-compatible Chat Completions API
- Apache-2.0 open weights
- Quantized checkpoints including FP8 and GGUF
