Skip to content
Neural Daily

ModelsAnalysis

Qwen4-35B-A3B: open Qwen 4 for your own hardware

🇭🇺 Olvasd el magyarul →

The first open-weight Qwen 4 is here: Qwen4-35B-A3B is a multimodal MoE that activates only a few billion parameters per token, handles a 1M-token context and ships under Apache 2.0. We looked at what the vendor numbers show, how much hardware it really needs and what matters if you run it on-prem on GDPR-sensitive data.

· 7 min read

A Hugging Face blog borítóképe: Qwen4-35B-A3B on Hugging Face felirat, mellette a kék Qwen logó
Image: Hugging Face · Press kit · Source

What shipped?

On December 4, Alibaba's Qwen team released Qwen4-35B-A3B, and Hugging Face published a launch blog the same day. It is the first open-weight member of the Qwen 4 family. November's Qwen4-Max is API-only, and open models were only a promise at the time. According to the model card, the 35B builds on the same architecture and training techniques as Max.

The basics: a natively multimodal Mixture-of-Experts that takes text, images and video and returns text. The native context window is 1,048,576 tokens. The license is Apache 2.0 and the repo is not gated, so you can download it without an access request, use it commercially and fine-tune it.

How many parameters, really?

This is worth reading slowly, because the name can mislead. Per the Hugging Face blog, the model has about 35B main parameters with about 3.8B active per token. On top of that come about 20.5B Per-Layer N-gram Embedding (PLE) parameters, for about 56B in total. The model card splits it slightly differently: 35B with 3B activated, plus 20B n-gram embedding and 2B for the Multi-Token Prediction (MTP) layer.

The PLE sits in the second decoder layer. It is a 10-million-row bigram and trigram table, and each token reads only 16 rows from it. Lots of parameters, very little compute. That is why oMLX can offload the table to SSD: it is touched rarely and in small pieces, so it does not need to live in expensive memory.

The decoder has 40 layers in a four-layer pattern repeated ten times: three Gated DeltaNet layers (linear attention with fixed-size memory), then one Qwen Sparse Attention (QSA) layer. QSA uses a small indexer to score groups of four tokens and picks up to 512 groups per query, so it attends to about 2,048 tokens from the full context. The MoE uses 8 routed experts plus 1 shared expert out of 256 per token. This setup is why the 1M context is more than marketing: the KV cache does not grow like a classic full-attention model's, and the card claims a drastically reduced cache footprint.

What do the numbers show?

A Qwen4-35B-A3B benchmarkeredményei tizenkét teszten a Qwen3.8-Flash-Next, a Qwen3.8-27B, illetve az Inkling2 Mini mellett
Qwen · Press kit · Source

Source: Qwen (model card). Qwen4-35B-A3B versus Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling2 Mini on twelve benchmarks. Vendor-reported.

The model card lists twelve benchmarks against Qwen3.8-Flash-Next, Qwen3.8-27B and Inkling2 Mini. The picture is mixed, which is more reassuring than not:

  • Where the 35B leads: DeepSWE v1.1 61.8 (Flash-Next 58.7), NL2Repo 51.7 (48.1), AutomationBench-AA 57.9 (55.9), HealthBench Professional 47.4 (Flash-Next 34.8, Inkling2 Mini 45.7), VideoIndex 52.9 (51.4).
  • Where the larger Flash-Next wins: Terminal Bench 4.1 24.2 vs 21.2, FrontierCode-AA 2.0 27.1 vs 16.1, GPQA 91.7 vs 86.9, APEX Agents v1.1 61.0 vs 59.0, AA-Briefcase 1567 vs 1486 Elo.
  • Neck and neck: Work360 42.9 vs 43.7, and ChartoGraphy 27.8, the same as Qwen3.8-27B.

Two caveats. Work360 is Qwen's own in-house benchmark, and some of the terminal and FrontierCode figures are cited from Artificial Analysis. All of this is vendor-compiled; there is no independent evaluation yet. The weaker terminal coding will sound familiar: it was Qwen4-Max's weak spot too. If you need it for agentic coding, test it in your own harness rather than trusting the table.

How much hardware does it need?

Hugging Face calls it an "on-device" model, but it pays to work with actual file sizes. In the ggml-org GGUF repo, the Q4_K_M quant is 36.0 GB, Q6_K is 51.0 GB, Q8_0 is 59.4 GB and the BF16 GGUF is 111.1 GB. Add the roughly 0.9 GB mmproj file for images, optionally the MTP drafter, and then the KV cache. The original BF16 safetensors repo is about 114 GB, the official FP8 version about 60 GB.

In practice, the Q4 build fits comfortably on an Apple Silicon machine with plenty of unified memory or a well-equipped workstation, but not on a typical 32 GB laptop. FP8 fits on a single 80 GB datacenter GPU, while BF16 needs several cards or a high-memory accelerator. Compute per token is small thanks to the few active parameters, so speed is far better than the file size suggests.

There is a speed-up too: llama.cpp supports MTP speculative decoding out of the box. In Hugging Face's test, 3 draft tokens raised generation speed by 22% on an Apple Silicon M5 with the Q4 quant. On Apple hardware, oMLX runs custom Metal kernels and supports image input, MTP and PLE offloading to SSD. mlx-lm currently covers the language model only, with official support on its way.

Thinking in four gears

reasoning_effort takes four values: xhigh for hard, quality-critical tasks, high as the default, low for fast answers, and off to disable thinking entirely. enable_thinking=False is equivalent to off. The model card's important warning: in multi-turn agentic tasks, a lower setting is not necessarily faster overall, because shallower analysis can mean more failures, more retries and ultimately more tokens.

For agentic work, the card recommends generous output limits: 262,144 tokens for reasoning and 131,072 for the final answer. It also gives sampling presets: temperature 1.0 and top_p 0.95 in thinking mode, temperature 0.7, top_p 0.8 and presence_penalty 1.5 in non-thinking mode.

Day-0 ecosystem

From launch day, the model is supported in transformers, llama.cpp and the Llama App, vLLM, SGLang, MLX, TRL, and Hugging Face Inference Providers and Inference Endpoints. The model card also lists ollama, unsloth, LiteRT-LM and TokenSpeed. For production, high-throughput serving, Qwen recommends SGLang, vLLM or TokenSpeed. The Qwen Cloud API is coming soon, according to the card.

One technical detail that matters on-prem: Qwen ships its own reference tokenizer, which uses tiktoken and requires trust_remote_code=True. The Jinja chat template is included for backward compatibility only, and although it produces the same text, token IDs can differ. If you run models on a closed network after a security review, review this code too, not just the weights.

Fine-tuning: the cyber-defense lesson

The blog walks through a TRL recipe for training a LoRA adapter that triages security alerts and cites the evidence. It is the same asynchronous GRPO harness-adapter approach we covered with Qwen3.8-27B. The run uses a two-H200 Hugging Face Job. On 12 held-out CyberDefense Bench tasks, the base model passed 4, the adapter saved at step 50 passed 6, but the one saved at step 100 passed only 3, even as training reward kept rising. An old lesson, but a good reminder: pick checkpoints on held-out evaluation, not the reward curve.

What this means for European teams

A university, hospital or SME team that wants to use an LLM on personal data has usually had to choose between two bad options: a strong model behind an external API, or a weaker one on its own hardware. Qwen4-35B-A3B narrows that gap. It is Apache 2.0, runs on your own infrastructure, handles images and video with a 1M context, and on several tasks the vendor numbers put it at the level of the larger Qwen3.8-Flash-Next. If you prefer EU hosting to your own hardware, Hetzner's Inference API is an option; check its list of served models.

A sensible order: start with the Q4_K_M GGUF on a strong workstation or Mac, measured on your own documents and tasks. If it holds up, move to FP8 under vLLM or SGLang on a GPU server, and only then to adapter fine-tuning. None of this makes you GDPR-compliant automatically; the data processing still has to be documented. But it removes the biggest risk: sending the data to a third-party API.

    By Mikola Máté Patrik

    Produced with the help of AI, reviewed by an editor. How we make our articles

    Reviewed and edited by the Neural Daily desk. About

    Related articles