Qwen4-35B-A3B: what an Apache-2.0 MoE means for self-hosters
Alibaba's Qwen team released Qwen4-35B-A3B today, and Hugging Face, Ollama, llama.cpp, vLLM and SGLang had support ready on day zero. It is a natively multimodal Mixture-of-Experts model under Apache-2.0 with a 1M token
Alibaba's Qwen team released Qwen4-35B-A3B today, and Hugging Face, Ollama, llama.cpp, vLLM and SGLang had support ready on day zero. It is a natively multimodal Mixture-of-Experts model under Apache-2.0 with a 1M token context window. If you run agents and care about where the model lives, this is a candidate for the "keep the data inside the EU" tier of your setup.
What changed
The numbers from the Hugging Face launch post:
- About 35B main parameters, about 3.8B active per token, plus about 20.5B Per-Layer N-gram Embedding (PLE) parameters, so roughly 56B in total.
- Text, image and video input, text output.
- 1M token native context window.
- License: Apache-2.0. The model repo on the Hub is not gated.
- A
reasoning_effortsetting with four levels:xhigh,high,lowandoff. The default ishigh. - Multi-Token Prediction (MTP) drafter files for GGUF and oMLX.
The architecture mixes Gated DeltaNet layers with a Qwen Sparse Attention layer in a repeating four-layer pattern. The Qwen model card ties this hybrid of linear and sparse attention to the native 1M window. I have not measured how it behaves at long context.
Ollama v0.40.21, published today, lists Qwen4-35B-A3B in its release notes. The Ollama library page shows qwen4:latest at 36 to 37 GB and a BF16 variant at 114 GB. The same page lists Hermes Agent, Claude Code and OpenCode as launch targets.
Why it matters in production
Active parameters do not equal memory. Only 3.8B parameters are active per token, so generation speed should be good. But you still have to hold the weights. The Q4_K_M GGUF is 36 GB, Q6_K is 51 GB, Q8_0 is 59 GB. Plan memory for the file size plus KV cache, not for "a 3B model". The launch post mentions that oMLX can offload the PLE table to SSD on Apple Silicon, which is one way around this, but that is a Mac story, not a server story.
License. Apache-2.0 means no custom usage policy to read and no separate approval step for commercial use. For a contract with a customer who asks "which model, under which terms, hosted where", that makes the paperwork shorter than with many open-weight releases.
EU and data protection. A model you run yourself, or on a server in a German data center, keeps prompts and tool outputs out of third-party APIs. That is the cleanest answer to a DPO. Whether the model is good enough is a separate question, see the caveats.
Reasoning effort as a cost knob. With a local model you do not pay per token, but you pay in latency and GPU time. Being able to set off or low for routine tool calls and high for planning is useful in an agent loop. The same logic applies as with hosted models: do not default to the maximum effort for every call.
Tool calling. The launch post shows tool calling through the chat template and the Ollama page tags the model with tools. For Hermes Agent, n8n AI nodes or any MCP client, that is the capability that decides whether a model is usable at all.
What to do now
If you already run Ollama, update to v0.40.21 or later and pull the model. This is straight from the Ollama library page:
ollama run qwen4
For a first agent test, the Ollama page documents a launcher for Hermes Agent:
ollama launch hermes --model qwen4
With llama.cpp, the launch post gives these commands. The second one enables MTP speculative decoding with three draft tokens, which they measured at +22% generation speed on an Apple Silicon M5 with the Q4 quant:
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K
llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q4_K_M --spec-type draft-mtp --spec-draft-n-max 3
For vLLM and SGLang, the post points to the recipe pages instead of giving flags, so check those before you size a GPU server.
My suggestion for evaluating it: take 20 real tool-calling traces from your own agent, replay them against the local endpoint with reasoning_effort at low and at high, and compare success rate and wall time against your current model. Public benchmarks will not tell you whether your MCP tools get called correctly.
Caveats
- I have not run the model. Quality, speed and memory use on your hardware are open.
- I did not inspect the benchmark charts. The launch post says the model is comparable to the larger Qwen 3.8 Flash Next. "Punches above its size" is the Hugging Face framing, not an independent result, and a comparison with the frontier hosted models is not in what I read.
- The post's own fine-tuning example is a useful warning: on 12 held-out tasks the base model passed 4, the update-50 adapter 6, and the update-100 adapter 3, even though training reward kept rising. A rising reward curve is not a quality guarantee.
- 1M context is the native window. Real memory use at long context depends on the engine and the KV cache settings.
- Ollama's release notes for v0.40.21 only say the model is available. Details like context defaults in Ollama are not documented there, so check the model page.
Sources
- https://huggingface.co/blog/qwen4
- https://huggingface.co/Qwen/Qwen4-35B-A3B
- https://huggingface.co/ggml-org/Qwen4-35B-A3B-GGUF
- https://ollama.com/library/qwen4
- https://github.com/ollama/ollama/releases/tag/v0.40.21
Field Notes is a short series by MadeByBrain about what changes in the AI agent tooling we run in production every day. Researched and drafted with AI assistance (Hermes Agent), fact-checked against the linked sources and reviewed by Steffen Hartmann.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.