RESEARCH · 4 DECEMBER 2026

Qwen4-35B-A3B teardown: an Apache-2.0 multimodal MoE with a 1M context, and what it takes to run it sovereign (December 2026)

What exactly shipped?

The Hugging Face model card lists a causal language model with a vision encoder: 35B parameters with 3B activated, plus 20B n-gram embedding and 2B multi-token-prediction (MTP) parameters (model card). Hugging Face's launch post describes it as ~35B main parameters, ~3.8B active and ~20.5B per-layer n-gram embedding parameters, about 56B in total (Hugging Face blog, 4 Dec 2026).

Architecture, from the card:

  • 40 layers in a repeating pattern: three Gated DeltaNet (linear-attention) layers, then one Qwen Sparse Attention layer.
  • 256 experts, with 8 routed plus 1 shared active per token.
  • Sparse attention with 16 query heads and only 2 KV heads. Each query attends to at most 2,048 selected tokens.
  • 1,048,576-token native context.
  • A 1-layer MTP head, which acts as a speculative-decoding drafter in llama.cpp and MLX.

Checkpoints come as BF16, FP8 and GGUF. Day-0 support covers transformers, vLLM, SGLang, llama.cpp, MLX and TRL. The card also names TokenSpeed, Ollama, Unsloth and LiteRT-LM.

Is the licence fit for sovereign and commercial use?

Yes. The base, FP8 and ggml-org GGUF repositories are all tagged apache-2.0 on Hugging Face. That allows commercial use, modification, fine-tuning and redistribution, with attribution and the licence notice kept. There is no user-count threshold and no acceptable-use policy attached to the weights. That is a cleaner position than the custom community licences on some other open families. See how licences compare on /licences and the Qwen family on /licences/qwen.

Our take: Apache-2.0 removes the legal blocker. It does not remove the governance one. Qwen is developed by Alibaba. Some public-sector and defence buyers restrict models by country of origin, so check your own procurement rules before you shortlist it. Don't assume the licence settles the question.

How much GPU memory does Qwen4-35B-A3B need?

MoE models save compute, not memory: all experts have to be resident. These are the published file sizes on Hugging Face, checked on 4 December 2026.

The right-hand column is our estimate from file sizes, not a vendor figure. Leave headroom for the KV cache and activations. The KV cache is where this architecture helps. Only 10 of the 40 layers use attention with a KV cache (with 2 KV heads); the other 30 keep a fixed-size Gated DeltaNet state. Long contexts should therefore cost far less memory than on a dense transformer of similar size. Model your context length with the KV-cache calculator rather than assuming the full 1M tokens fits. To choose between Q4_K_M, Q8_0 and FP8, see AWQ vs GPTQ vs GGUF vs FP8.

The card says the n-gram embeddings add quality "without extra compute or accelerator memory overhead". We have not confirmed which engines keep that 20B table off the GPU, so plan capacity on the published file sizes in the table.

Published checkpoint sizes
CheckpointPublished sizeRealistic single-node target (our estimate)
GGUF Q4_K_M (+0.9 GB vision projector)36.0 GB1x 48 GB GPU (L40S / RTX 6000 class), short-to-medium context
GGUF Q6_K51.0 GB1x 80 GB GPU
GGUF Q8_059.4 GB1x 80 GB GPU
FP8 (safetensors)60.2 GB1x 80 GB H100/H200 with vLLM or SGLang
BF16 (safetensors)113.6 GB2x 80 GB with tensor parallelism, or 1x 141 GB H200

What does fine-tuning it take?

Hugging Face's launch post walks through reinforcement learning with TRL's AsyncGRPOTrainer. It trains a LoRA adapter for security-alert triage, run on Hugging Face Jobs with the h200x2 flavour, i.e. two H200s (HF blog). Treat that as the reference footprint for BF16 LoRA. Use the fine-tuning VRAM calculator to size QLoRA or a smaller rank for your own data. 4-bit QLoRA on MoE models depends on your training stack, so test it before you budget for it.

The same post makes a useful point about evaluation. On 12 held-out CyberDefense Bench tasks, the base model passed 4/12, the adapter at update 50 passed 6/12, and the adapter at update 100 passed 3/12, even though training reward kept rising. Keep a held-out evaluation set and save checkpoints often. The last checkpoint is not automatically the best one.

How sovereign-ready is it? A checklist

  • Weights and licence: Apache-2.0 open weights that you can mirror inside your own boundary. ✅
  • Air-gapped serving: FP8 and GGUF files plus vLLM, SGLang and llama.cpp support mean no dependency on Qwen Cloud. The card recommends Qwen's API for convenience. You don't need it. ✅
  • Remote code: the reference tokenizer needs tiktoken and trust_remote_code=True. Review that code, pin the repository revision and vendor it into your registry. A Jinja template in tokenizer-compat/ exists, but the card warns that its token IDs can differ. ⚠️
  • Provenance: check country-of-origin rules in your sector. ⚠️
  • Data residency: self-hosted inference keeps prompts in-region by construction. See LLM data residency. ✅
  • Long-document work: a native 1M context with a small KV cache suits contract, case-file and code-base workloads that you can't send to an external API. ✅

How does it compare with other open models?

For a side-by-side with Google's family, see Gemma vs Qwen. For the wider family, see /models/qwen. For an engine choice, see vLLM vs SGLang vs TensorRT-LLM. We have not run our own benchmarks on Qwen4-35B-A3B yet, and we don't repeat vendor scores here. Read the benchmark table on the model card and test against your own tasks.

Why it matters

Until now, a model with this mix (multimodal input, a million-token context, permissive licence) usually meant a multi-GPU node. Qwen4-35B-A3B brings it down to one 80 GB GPU at FP8, or one 48 GB GPU for a quantised pilot. For organisations that want to own their models rather than rent them, that lowers the cost of the first sovereign deployment more than any benchmark gain does.

Sources

  1. Qwen4-35B-A3B model card, Hugging Face (Accessed 4 December 2026). The model card lists a causal language model with a vision encoder: 35B parameters with 3B activated, plus 20B n-gram embedding and 2B multi-token-prediction (MTP) parameters. Architecture: 40 layers in a repeating pattern of three Gated DeltaNet (linear-attention) layers, then one Qwen Sparse Attention layer; 256 experts, with 8 routed plus 1 shared active per token; sparse attention with 16 query heads and only 2 KV heads, each query attending to at most 2,048 selected tokens; a 1,048,576-token native context; a 1-layer MTP head, which acts as a speculative-decoding drafter in llama.cpp and MLX. Checkpoints come as BF16, FP8 and GGUF. Day-0 support covers transformers, vLLM, SGLang, llama.cpp, MLX and TRL. The card also names TokenSpeed, Ollama, Unsloth and LiteRT-LM. The base repository is tagged apache-2.0. The BF16 safetensors file is 113.6 GB (about 114 GB). The card says the n-gram embeddings add quality without extra compute or accelerator memory overhead. The reference tokenizer needs tiktoken and trust_remote_code=True. A Jinja template in tokenizer-compat/ exists, but the card warns that its token IDs can differ. The card recommends Qwen's API for convenience. The card includes a benchmark table; this note does not repeat those scores.
  2. Hugging Face blog, “Welcome Qwen 4: Cutting-edge intelligence on-device”, 4 December 2026 (4 Dec 2026). The launch post describes Qwen4-35B-A3B as ~35B main parameters, ~3.8B active and ~20.5B per-layer n-gram embedding parameters, about 56B in total. It walks through reinforcement learning with TRL's AsyncGRPOTrainer, training a LoRA adapter for security-alert triage on Hugging Face Jobs with the h200x2 flavour (two H200s). On 12 held-out CyberDefense Bench tasks, the base model passed 4/12, the adapter at update 50 passed 6/12, and the adapter at update 100 passed 3/12, even though training reward kept rising.
  3. FP8 checkpoint, Hugging Face (Accessed 4 December 2026). The FP8 safetensors checkpoint is 60.2 GB. The repository is tagged apache-2.0.
  4. GGUF checkpoints, Hugging Face (Accessed 4 December 2026). The ggml-org GGUF repository is tagged apache-2.0. Published sizes checked on 4 December 2026: Q4_K_M 36.0 GB, plus a 0.9 GB vision projector; Q6_K 51.0 GB; Q8_0 59.4 GB.

FAQ

Is Qwen4-35B-A3B free for commercial use?

Yes. It is released under Apache-2.0, which allows commercial use, modification and redistribution with attribution.

Can Qwen4-35B-A3B run on a single GPU?

Yes, quantised. The Q4_K_M GGUF is 36.0 GB, which fits one 48 GB GPU. The FP8 checkpoint is 60.2 GB, which fits one 80 GB GPU. Full BF16 (113.6 GB) needs two 80 GB GPUs or one H200.

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

Yes. It accepts text, image and video input and produces text output.

How long is its context window?

1,048,576 tokens natively, per the model card.

Can I fine-tune it with LoRA?

Yes. Hugging Face's launch post trains a LoRA adapter with TRL GRPO on two H200 GPUs.