Qwen4-35B-A3B: Power-User Guide to Local Setup, Thinking and API Pricing

Last updated: December 4, 2026

Qwen4-35B-A3B is an open-weight model in Alibaba’s Qwen4 series, released in December 2026 under Apache 2.0. It is a multimodal Mixture-of-Experts model with 35B parameters and about 3B active per token, a native 1M-token context window, adjustable reasoning effort, and day-0 support in Transformers, llama.cpp, vLLM, SGLang, MLX and Ollama.

Contents

What is new in Qwen4-35B-A3B

The Qwen Team says the Qwen4 open model series builds on the same architecture and training techniques as Qwen4-Max, the flagship of the series, and Qwen4-35B-A3B is a model from that open series (model card). Hugging Face published its launch post on December 4, 2026, with day-0 support across its libraries (Hugging Face blog). The model card lists three headline changes:

  • Hybrid attention for long context: layers of Gated DeltaNet linear attention are mixed with a new Qwen Sparse Attention layer, which cuts the cache footprint and enables a native 1,048,576-token context window.
  • N-gram embeddings: a large bigram and trigram embedding table in layer 2 improves quality without extra compute or accelerator memory, according to Qwen.
  • Better agent work and token efficiency: Qwen says tasks need fewer interaction rounds, thinking is more concise at every effort level, and coding for frontend, 3D and game work is stronger.

Hugging Face explains that the sparse attention layer selects up to 512 groups of four tokens for each query, so each token attends to up to 2,048 selected tokens from anywhere in the context. Images are read as 16 × 16 patches, and video is sampled at 2 frames per second by default (Hugging Face blog).

Specifications and download options

The figures below come from the model card, the Hugging Face blog and the official repositories (model card) (Hugging Face blog) (GGUF repository):

Item Qwen4-35B-A3B
Parameters 35B MoE with 3B activated, plus 20B n-gram embedding and 2B multi-token prediction (Hugging Face describes about 3.8B active and about 56B total)
Experts 256, with 8 routed and 1 shared expert active per token
Layers 40, in 10 blocks of 3 Gated DeltaNet layers and 1 Qwen Sparse Attention layer
Context 1,048,576 tokens natively
Inputs and output Text, image and video in; text out
License Apache 2.0, not gated
Official checkpoints BF16 (about 114 GB), FP8, and ggml-org GGUF in Q2_K, Q4_K, Q4_K_M and Q8_0
GGUF sizes Q4_K_M about 33 GB, Q8_0 about 49 GB, plus a 0.6 GB vision projector and separate MTP drafter files

Qwen does not publish a minimum GPU or memory requirement on the model card, so treat the file sizes above as the starting point for sizing hardware, and leave room for the KV cache and vision projector.

How to run Qwen4-35B-A3B

Qwen recommends the API for the simplest integration and dedicated engines such as SGLang, vLLM and TokenSpeed for production serving (model card). For a local setup:

  1. Pick a runtime. For the quickest start on a desktop, install Ollama and run ollama run qwen4; the library page lists vision, tools and thinking support (Ollama library).
  2. For llama.cpp, run llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M. To enable multi-token prediction drafting, add --spec-type draft-mtp --spec-draft-n-max 3; Hugging Face measured a 22% speedup with the Q4 quant on an Apple M5 (Hugging Face blog).
  3. For Transformers, load Qwen/Qwen4-35B-A3B with AutoModelForMultimodalLM and the huggingface/Qwen4-35B-A3B-processor processor, using device_map="auto". Video input also needs torchcodec and ffmpeg.
  4. For an OpenAI-compatible server, deploy with vLLM or SGLang using their Qwen4-35B-A3B recipes, then point the OpenAI SDK at http://localhost:8000/v1 and call model Qwen/Qwen4-35B-A3B (model card).
  5. On Apple Silicon, use oMLX or mlx-lm, for example mlx-community/Qwen4-35B-A3B-4bit-text for text-only work.
  6. Use the official Qwen4 tokenizer implementation (it needs tiktoken and trust_remote_code=True). The bundled Jinja chat template exists only for backward compatibility and can produce different token IDs.

For background on the engines, see our vLLM 0.34 guide and Transformers 5.23 guide. The model card also notes you can connect the API to agent tools such as Qwen Code, covered in our Qwen Code 0.29 guide.

Reasoning effort and sampling settings

Thinking is on by default at reasoning_effort="high", with preserve_thinking enabled (model card). The levels are:

  • xhigh: complex tasks where quality matters most.
  • high: common tasks (default).
  • low: fast responses with minimal thinking.
  • off: no thinking; enable_thinking=False does the same.

Through an OpenAI-compatible server, pass these inside extra_body as chat_template_kwargs. Qwen warns that lower effort does not always shorten multi-turn agent tasks, because weaker analysis can cause failures and retries. Recommended sampling is temperature=1.0, top_p=0.95, top_k=20 in thinking mode and temperature=0.7, top_p=0.8, top_k=20, presence_penalty=1.5 without thinking. For agent work, Qwen suggests allowing up to 262,144 tokens for reasoning and 131,072 for the final response.

Qwen Cloud API pricing and limits

Qwen Cloud serves the model as qwen4-35b-a3b through OpenAI-compatible, DashScope and Anthropic-style APIs, with function calling, structured output, context caching and built-in tools such as web search and a code interpreter (Qwen Cloud):

Qwen Cloud item Value
Input $0.06 per 1M tokens
Output $0.36 per 1M tokens
Implicit cache and explicit cache reads $0.003 per 1M tokens
Explicit cache creation $0.075 (5-minute) or $0.12 (1-hour) per 1M tokens
Max input 991K tokens (983K in thinking mode)
Max output 128K tokens (256K in thinking mode)
Rate limit 5,000,000 tokens per minute

How it compares

Hugging Face says Qwen4-35B-A3B is comparable to the much larger Qwen3.8-Flash-Next and better on some tasks (Hugging Face blog). Scores reported on the model page include 61.8 on DeepSWE v1.1 and 86.9 on GPQA Diamond from the Qwen Team, and 21.2 on Terminal-Bench 4.1 at xhigh effort as measured by Artificial Analysis (model card). These are vendor-reported or third-party figures, not our own tests.

Compared with Qwen4-Max, Qwen describes Qwen4-Max as the flagship for long-horizon agentic applications, while Qwen4-35B-A3B is a mid-sized Apache 2.0 model that you can download, fine-tune and run on your own hardware. For another large release this week, see our MiniMax M4 guide.

Frequently asked questions

What is Qwen4-35B-A3B?

Qwen4-35B-A3B is an open-weight model in Alibaba’s Qwen4 series, released in December 2026. It is a multimodal Mixture-of-Experts model with 35B parameters, about 3B active per token, a native 1M-token context window and an Apache 2.0 license.

Is Qwen4-35B-A3B free to use?

Yes. The weights are published on Hugging Face under Apache 2.0 and the repository is not gated. If you prefer a hosted API, Qwen Cloud lists it at $0.06 per million input tokens and $0.36 per million output tokens.

Can I run Qwen4-35B-A3B locally?

Yes. It has day-0 support in Transformers, llama.cpp, vLLM, SGLang and MLX, and Ollama lists it as qwen4. The official ggml-org Q4_K_M GGUF files total about 33 GB, while the BF16 weights are about 114 GB.

How do I turn thinking off in Qwen4-35B-A3B?

Set reasoning_effort to “off”, or pass enable_thinking=False, which the model card says is equivalent. The other levels are xhigh, high (the default) and low.

Does Qwen4-35B-A3B support images and video?

Yes. It accepts text, image and video input and returns text. Audio input is not listed on the model card or the Qwen Cloud page.

How is Qwen4-35B-A3B different from Qwen4-Max?

Qwen4-Max is the flagship of the series, an ultra-sparse model designed for long-horizon agent work. Qwen4-35B-A3B uses the same architecture and training techniques in a smaller open-weight model you can download and self-host.

Sources

Image: Qwen logo by Mr. Ibrahem, CC0, via Wikimedia Commons.

Related answers

Leave a Comment