Qwen4-35B-A3B
The first open-weight Qwen 4 model: a 35B mixture-of-experts model that uses about 3B parameters per token, reads text, images and video, and has a native 1M-token context, under Apache 2.0.
What do you want to do?
Choose a task. Get the software, files, settings, and steps to run it.
Build a local AI agent with Qwen4-35B-A3B
Pull Qwen’s Qwen4-35B-A3B with Ollama on Windows, Mac or Linux, connect Hermes Desktop or the Hermes terminal agent with Ollama’s launcher, and have it read and write files with your approval.
Code locally with Qwen4-35B-A3B in VS Code + Cline
Run Qwen’s Qwen4-35B-A3B with Ollama on Windows, Mac or Linux, connect VS Code and Cline, and have it write a small module plus tests that you review and run yourself.
Open a guide for its software, hardware requirements, and setup steps.
At a glance
- Parameters
- 35B main · about 3B active per token (Hugging Face counts 3.8B) · plus a 20B n-gram embedding table and a 2B MTP head (about 57B in the files)
- Architecture
- Hybrid mixture of experts · 40 layers repeating three Gated DeltaNet blocks and one Qwen Sparse Attention block · 256 experts, 8 routed plus 1 shared per token · n-gram embedding table at layer 2 · multi-token-prediction head · text, image and video in, text out
- Context length
- 1,048,576 tokens native · the guides start at 32K–64K
- License
- Apache 2.0
- Disk space
- 37 GB
- Software
- Ollama, llama.cpp, vLLM, SGLang, Transformers, MLX
Will it run on your machine?
Save your machine to see a personalized rating and its reasoning.
Add my hardwareBest for
- Run a local Hermes agent that reads and writes files with your approval.
- Connect VS Code + Cline for private coding help.
- Private chat, including questions about images and short videos.
Tradeoffs
- Released December 4, 2026: Ollama and llama.cpp support are brand new and may still change.
- Needs Ollama 0.40.21 or newer, or a llama.cpp build from December 3, 2026 or later (Qwen 4 support, pull request 33626).
- Thinks before answering by default (reasoning effort high); set it lower or off for quick answers. Avoid temperature 0 in thinking mode.
- The 1M-token context needs far more memory than a desktop has; the guides start at 32K–64K.
- Qwen’s benchmark results are published as a chart on the model card and have not been independently checked here.
Ways to run it
Ollama · Windows, macOS, Linux
Ollama’s 37 GB Q4_K_M build with vision, tools and thinking; needs Ollama 0.40.21 or newer. Used by the VS Code + Cline and Hermes guides on this page.
ollama run qwen4Ollama (full precision) · Windows, macOS, Linux
Ollama’s 114 GB BF16 build, the larger option in the guides on this page. Ollama has no 8-bit Qwen 4 tag; use llama.cpp for Q8_0.
ollama run qwen4:35b-a3b-gguf-bf16Hermes Agent via Ollama · Windows, macOS, Linux
Ollama’s launcher installs and connects Hermes; use hermes-desktop in place of hermes for the desktop app.
ollama launch hermes --model qwen4llama.cpp · Windows, macOS, Linux
ggml-org’s GGUF with the MTP draft head; swap Q4_K_M for Q6_K (51.0 GB) or Q8_0 (59.4 GB) for higher quality; needs a llama.cpp build with Qwen 4 support. The n-gram table is read lazily from disk, which saves memory. Hugging Face measured 22% faster generation with three MTP draft tokens on an Apple M5.
llama-server -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M --jinja -c 32768 --spec-type draft-mtp --spec-draft-n-max 3vLLM / SGLang · Linux GPU server
Serves the original checkpoint with an OpenAI-compatible API.
vllm serve "Qwen/Qwen4-35B-A3B"What to expect
The new default mid-size open model for local agents and coding. On a 64 GB Mac or a PC with a 32 GB GPU, run it with Ollama and connect Hermes or Cline.
Explore its uses
Sources and files
Primary sources and files behind this model page.
Keep exploring
GLM 5.3
Explore 2 versions of GLM 5.3. Compare model sizes, packages, hardware requirements, and available setups.
Kimi K3
An open-weight multimodal model for long-running coding, reasoning, and knowledge work.
Gemma 4
Explore 6 versions of Gemma 4. Compare model sizes, packages, hardware requirements, and available setups.