On this page

Alibaba's Qwen Team shipped the first open-weight release of the Qwen4 generation on December 4, 2026: Qwen4-35B-A3B alongside a day-zero FP8 checkpoint, both under Apache 2.0. Following the closed-weight Qwen4-Max launch in November, this is the first time developers can inspect, self-host, and fine-tune the Qwen4 architecture directly.

Before sizing hardware around the name, check the actual weight ledger. Calling the model 35B describes the main Mixture-of-Experts backbone—not the checkpoint you download to disk. According to the Hugging Face model card and config.json, the 35B backbone (activating roughly 3B to 3.8B parameters per token) sits alongside a 20.5B Per-Layer N-gram Embedding (PLE) table in layer 2 and an optional 2B Multi-Token Prediction (MTP) draft head, bringing full storage to roughly 56B–57.5B parameters. Separating per-token compute from static table storage is the architectural trick that makes local inference viable on Mac workstations—provided your runtime handles disk-backed lookups properly.

Inside the 40-layer hybrid backbone and the 20.5B lookup table

Qwen4-35B-A3B carries forward the hybrid sparse design introduced with Qwen3.8-Flash-Next, pairing a native 1,048,576-token context window with native text, image, and video ingestion (text output).

  • 3:1 linear-to-sparse layer pattern: The 40 decoder layers repeat ten blocks of three Gated DeltaNet linear-attention layers (32 value heads, 16 QK heads, head dimension 128) followed by one Qwen Sparse Attention (QSA) layer (16 query heads, 2 KV heads, head dimension 256). QSA compresses history into 4-token blocks and uses a lightweight 4-query, 1-shared-key MQA indexer to select up to 512 blocks—capping each query at a 2,048-token attention budget even across a million-token prompt.
  • 256-expert MoE with 4-stream Gated Residual: Each MoE block routes tokens to 8 of 256 experts plus 1 shared expert (intermediate dimension 512). Between blocks, tokens travel across four parallel 2,048-dimensional residual streams mixed by learned low-rank gates (rank 256).
  • Layer-2 Per-Layer N-gram Embedding (PLE): A 10-million-entry bigram and trigram table occupies 20.5B parameters inside decoder layer 2. Each token reads just 16 rows (8 bigram, 8 trigram lookups), adding virtually no GPU matrix math while expanding local pattern capacity. Because accesses are sparse table lookups, runtimes can leave the table on SSD and read rows lazily.
  • Native vision and video path: A 27-layer ViT encodes images as 16x16 patches merged 2x2 into visual tokens. Video inputs sample at 2 frames per second and group adjacent frames into pairs for joint patch attention; running video in Transformers requires torchcodec and ffmpeg.
Figure 1: Qwen4-35B-A3B parameter breakdown (~3.8B active vs. 35B backbone vs. ~57.5B full checkpoint) and 40-layer hybrid layout
Figure 1: Qwen4-35B-A3B parameter breakdown (~3.8B active vs. 35B backbone vs. ~57.5B full checkpoint) and 40-layer hybrid layout

Image source: DigIntoAI chart compiled from Qwen/Qwen4-35B-A3B README and config.json (Dec 4, 2026)

Local memory reality: what actually fits on Apple Silicon

Loading 56B parameters straight into VRAM would price out most local setups. Local practicality hinges on llama.cpp's default lazy mode (and oMLX's SSD offload on Apple Silicon), which keeps the 20.5B PLE table on NVMe storage rather than pinning it in memory.

Published numbers from the ggml-org GGUF repository spell out the gap between file size on disk and resident RAM:

  • Q4_K_M: 36.0 GB on disk, 21.9 GB resident RAM — fits cleanly on a 32 GB Mac.
  • Q6_K: 51.0 GB on disk, 29.2 GB resident RAM — targets a 48 GB Mac.
  • Q8_0: 59.4 GB on disk, 37.6 GB resident RAM — targets a 64 GB Mac.

Launch-day runtime coverage is unusually wide: vLLM, SGLang, and TokenSpeed handle high-throughput BF16/FP8 serving, while llama.cpp, Ollama, Unsloth GGUF, mlx-vlm, LiteRT-LM, and oMLX cover local machines. oMLX ships custom Metal kernels for QSA and gated residuals plus SSD table offloading. Meanwhile, the optional 1-layer MTP draft head ships separately to keep base downloads smaller; in Hugging Face's Q4 benchmark on an Apple Silicon M5, turning on three draft tokens boosted generation speed by 22%.

Figure 2: llama.cpp lazy-mode disk vs. resident RAM footprint across GGUF tiers and TRL async GRPO held-out triage results
Figure 2: llama.cpp lazy-mode disk vs. resident RAM footprint across GGUF tiers and TRL async GRPO held-out triage results

Image source: DigIntoAI chart compiled from ggml-org GGUF specs, Hugging Face Blog, and Unite.AI (Dec 2026)

Three deployment traps buried in the launch docs

Teams pulling weights into production pipelines should pay close attention to three details documented across the model card and Hugging Face walkthrough:

  • Watch the tokenizer compatibility trap: The recommended Qwen4 Tokenizer/Processor relies on tiktoken and requires trust_remote_code=True. A fallback Jinja template exists under tokenizer-compat/ for older tooling, but the Qwen Team explicitly warns that while formatted text looks identical, generated token IDs can diverge on control tokens—a subtle way to break tool-call and reasoning parsers.
  • Dialing reasoning down can raise your total bill: Reasoning effort accepts off, low, high (default, with preserve_thinking enabled), and xhigh. The authors explicitly caution against assuming low effort saves wall-clock time or tokens in multi-turn agents: shallower reasoning produces faster individual turns, but failed tool calls and retry loops often burn more total tokens than sticking with high. Recommended sampling also splits cleanly by mode (temperature 1.0, top_p 0.95 for thinking; temperature 0.7, top_p 0.80, presence_penalty 1.5 for non-thinking).
  • Rising RL reward did not prevent held-out degradation: In Hugging Face's two-GPU TRL asynchronous GRPO LoRA tutorial for security-alert triage, average training reward climbed steadily—yet on 12 held-out CyberDefense Bench tasks, the base model passed 4, the update-50 checkpoint improved to 6, and the update-100 checkpoint dropped back to 3. Anyone running RL post-training on Qwen4 needs early-stopping checkpoints tied to held-out evals, not reward curves.

Where Qwen4-35B-A3B makes sense right now

Alibaba Cloud Model Studio listed qwen4-35b-a3b on December 4, 2026. You can call the managed API for the same 35B-A3B model whose weights Alibaba released under Apache 2.0. Qwen4-Max has a separate model ID and price list. Model Studio release log · Download the official weights

Model Studio bills input and output separately. Per million tokens, the US (Virginia, Global) rate is $0.057 for uncached input and $0.339 for output. Singapore (International) costs $0.06 for input and $0.36 for output. The mainland China price list gives Beijing rates of CNY 0.40 for input and CNY 2.40 for output. USD pricing · Mainland China pricing

Compare with my usage to see what Qwen4-35B-A3B and Qwen4-Max would cost for the same workload. Enter your token and call counts once to price both models in USD on the US (Virginia, Global) endpoint.

For teams that want an Apache 2.0 multimodal model with native 1M context that runs comfortably on a 32 GB–64 GB workstation or modest FP8 server nodes, Qwen4-35B-A3B is an immediate shortlist candidate—especially for local coding, visual frontend iteration, and long-document agent pipelines. If you only have a 16 GB laptop and want to avoid aggressive quantization, you can use the hosted API now. If the data must stay on the laptop, a smaller checkpoint is still worth considering.