Research review / opensource

Qwen4-35B-A3B Opens the Qwen4 Series: Apache 2.0, 1M-Token Context, and a 20B N-Gram Table

Alibaba's Qwen team released Qwen4-35B-A3B on Hugging Face under Apache 2.0, with text, image and video input and a native 1,048,576-token context. Hugging Face and AMD published day-0 guides on December 4. The sources disagree slightly on active parameters, benchmarks are self-reported, and the reference tokenizer needs trust_remote_code.

By Sandeep Belgavi · Published 2026-12-06

Alibaba's Qwen team has published Qwen4-35B-A3B and an FP8 checkpoint on Hugging Face. The Hugging Face repository records creation on December 3 (UTC), and Hugging Face's launch post is dated December 4, 2026. It is the first open-weight model of the Qwen4 series; the flagship Qwen4-Max is API-only, which this digest covered in Qwen4-Max Separates Readable Summaries From the State Agents Must Replay.

What is in the model

  • Licence and inputs: Apache 2.0, with a vision encoder for images and video and text output.
  • Context: the model card lists 1,048,576 tokens natively.
  • Layout: 40 layers in ten blocks of three Gated DeltaNet linear-attention layers and one Qwen Sparse Attention layer, each followed by a mixture-of-experts block with 256 experts, 8 routed plus 1 shared active.
  • Sparse attention: an indexer scores the context in small blocks, and each query reads a budget of 512 blocks or 2,048 tokens.
  • N-gram embeddings: a 20B-parameter table of bigram and trigram embeddings at layer 2, plus a 2B multi-token prediction module.
  • Reasoning effort: xhigh, high (default), low and off.

The size is reported differently. The model card says "35B with 3B activated, plus 20B n-gram embedding and 2B MTP," and AMD also says 3B active. Hugging Face's post says about 3.8B active and about 56B total once the n-gram table is counted. The difference is likely what each source includes in the count, but memory planning should start from the checkpoint size, not the headline.

Day-0 serving claims

AMD published Qwen4-35B-A3B on AMD Instinct GPUs: Day 0 support and optimization the same day. These are AMD's own measurements, not independent results:

  • One MI350X or MI355X with 288 GB of HBM3E "holds the BF16 checkpoint, the MTP module, the vision encoder and a full 1M-token KV cache," because only the 10 sparse-attention layers keep a KV cache.
  • MXFP4 experts, quantised at load, gave 54% more output throughput than BF16 experts at 64 concurrent requests.
  • A new vLLM --monokernel mode replaces about 1,000 small kernel launches per decode step with 12 persistent launches, cutting per-token decode latency by 30% at one request.

What to check before adopting it

Analysis: the architecture is the story. With linear attention in three of every four layers and a fixed attention budget, decode cost barely moves with context length, so a million-token window on a single accelerator becomes an engineering question rather than a cluster purchase. The model card's benchmark chart is the vendor's own, partly cited from third-party leaderboards; treat it as a shortlist, not a result.

One operational detail deserves attention. The card says the reference tokenizer "depends on tiktoken, and trust_remote_code=True is required." That runs code from the repository at load time. Pin a reviewed commit hash, or use the included Jinja template, which the card warns can produce different token IDs. This digest covered on November 29 why model-repository code paths need the same review as any dependency.

What remains uncertain

Independent long-context quality beyond needle tests, how the n-gram table behaves after fine-tuning, whether larger Qwen4 open models follow, and how quantised community builds compare with the official FP8 checkpoint.

Original exercise, not executed: Hansini plans a trial for the Belgavi's Book Store catalogue assistant, logged as CASE-9183. The model reads the full returns policy and twelve months of help-desk notes in one context, the tokenizer is loaded from a pinned commit, and the trial records answer accuracy and memory use at 64K, 256K and 1M tokens.

Sources accessed December 6, 2026. Views are my own and do not represent any employer, past or present.

Sources and evidence

Qwen4-35B-A3B is an Apache 2.0 multimodal MoE with a native 1M-token context, hybrid linear and sparse attention, and a 20B n-gram embedding table. AMD reports single-GPU 1M-context serving on MI350-class hardware. Active-parameter figures differ by source, benchmarks are self-reported, and the tokenizer requires trust_remote_code.