Models

Qwen4-35B-A3B Runs One Million Tokens of Multimodal AI on a 32 GB Mac

Alibaba's Qwen Team released Qwen4-35B-A3B under Apache-2.0 on December 4, 2026: a 56-billion-parameter text, image and video model with a one-million-token context window that runs on a 32 GB Mac.

Qwen4-35B-A3B Runs One Million Tokens of Multimodal AI on a 32 GB Mac
Babel_hospitality / pixabay
By Rebecca Stone5 min read

Why it matters

  • Hugging Face announced Qwen4-35B-A3B's Apache-2.0 release on December 4, 2026, with text, image and video input and a one-million-token context window.
  • The model totals about 56 billion parameters — 35 billion main, 20.5 billion in a per-layer n-gram embedding table — with roughly 3.8 billion active per token.
  • The Q4_K_M GGUF quantization requires 21.9 GB of resident RAM on a 32 GB Mac when the embedding table stays on disk, down from a 36.0 GB file.
  • Enabling three speculative draft tokens increased generation speed by 22% in Hugging Face's Q4 test on Apple Silicon M5.
  • On 12 held-out CyberDefense Bench tasks, the update-50 LoRA adapter passed 6 versus 4 for the base model and 3 for update-100, despite rising training reward.

Alibaba's Qwen Team released Qwen4-35B-A3B under the Apache-2.0 license on December 4, 2026, a text, image and video model with a native one-million-token context window that can run locally on a 32 GB Mac through quantization and on-demand reads of its embedding table. Hugging Face announced the release, and the model shipped with launch support across local and production inference frameworks.

The release combines roughly 35 billion main parameters with approximately 3.8 billion active parameters per token. A further 20.5 billion parameters form a per-layer n-gram embedding table, bringing the total parameter count to about 56 billion. Quantized versions and the option to read that table from disk on demand, rather than load it into RAM, put the model within reach of some Mac computers.

The stakes are straightforward for local AI adoption. The release ties deployment feasibility to specific memory and configuration choices, and it demonstrates that a checkpoint far larger than its active compute can still run on consumer hardware.

How does the architecture separate compute from storage?

The official model card describes 40 layers arranged as ten repetitions of three Gated DeltaNet layers followed by one Qwen Sparse Attention layer. Gated DeltaNet updates a fixed-size memory as each token arrives. Sparse attention groups tokens into blocks of four and selects up to 512 blocks, giving each query a budget of 2,048 tokens.

The mixture-of-experts system contains 256 routed experts and activates eight plus one shared expert for each token. The embedding table performs 16 lookups per token for two- and three-token patterns.

A vision transformer encodes images as patches and processes video sampled at two frames per second, feeding visual tokens into the text decoder. The design separates the work required for an individual token from the much larger total parameter count. Storage still depends on the full checkpoint, so efficiency does not shrink the download.

What hardware does the model actually need?

Support at launch includes transformers, llama.cpp and Llama App, vLLM, SGLang and MLX, with BF16, FP8, OMLX and GGUF checkpoint options. The Qwen Team recommends dedicated serving engines such as SGLang and vLLM for high-throughput production workloads. llama.cpp and Apple Silicon options address local deployments.

The GGUF repository lists specific requirements when llama.cpp's default lazy mode keeps the n-gram embedding table on disk and reads it on demand:

  • Q4_K_M — 36.0 GB file size, 21.9 GB resident RAM, 32 GB Mac
  • Q6_K — 51.0 GB file size, 29.2 GB resident RAM, 48 GB Mac
  • Q8_0 — 59.4 GB file size, 37.6 GB resident RAM, 64 GB Mac

At the Q4_K_M tier, the gap between a 36.0 GB file and 21.9 GB of resident RAM shows what lazy embedding reads buy: more than 14 GB of RAM never loads at all.

An optional multi-token prediction head generates drafts for speculative decoding and ships separately to keep base-model downloads compact. Hugging Face reports that enabling three draft tokens increased generation speed by 22% in its Q4 quantization test on an Apple Silicon M5.

For Apple Silicon, oMLX also supplies custom Metal kernels for sparse attention and gated residual connections, supports image input and multi-token prediction, and can offload the embedding table to SSD.

What does adjustable reasoning effort change?

Reasoning effort can be set to xhigh, high, low or off, with high as the default. The Qwen Team cautions that lower effort does not always shorten multi-turn agent tasks. Faster responses per turn can come with insufficient analysis, more failures and repeated retries, which may increase total latency and token consumption.

The warning matters for agent deployments, where total cost depends on retries across a whole session rather than on the speed of any single response.

What did the security fine-tuning example show?

The announcement also describes a TRL training example for security-alert triage. vLLM samples several responses to each sanitized alert, and each response earns a reward of 1 when its triage label and evidence citations match analyst criteria, or 0 otherwise. TRL's asynchronous GRPO trainer then updates a LoRA adapter, with vLLM serving on one GPU and training on the other in the example Hugging Face Job.

The held-out results cut against the training curve. On 12 held-out CyberDefense Bench tasks:

  • The base model passed 4.
  • The update-50 adapter passed 6.
  • The update-100 adapter passed 3.

The update-50 checkpoint performed best on this sample even as average training reward trended upward. Additional training did not produce a corresponding improvement on those held-out tasks. Higher training reward, in other words, did not guarantee better held-out security triage results.

Why does the distinction between reward and held-out results matter?

The training example treats held-out task results as a separate measure from training reward. That separation carries weight beyond this release. Fine-tuning pipelines that track only reward can select checkpoints that regress on the tasks they are meant to improve, and the CyberDefense Bench numbers here give a concrete case: the best-performing adapter arrived at 50 updates, not at 100, despite the reward curve still climbing.

For deployments, the release gives engineers two concrete decisions to make: the quantization tier that matches their RAM, and the reasoning effort that matches their latency budget. Both carry documented tradeoffs. The quantization table fixes memory requirements per configuration, and the Qwen Team's own caveat on low reasoning effort fixes the failure mode — more retries, more tokens, more total latency. Local multimodal inference at a one-million-token context now depends on those choices rather than on datacenter hardware alone.

Source: unite.ai

Share this article:

More from Rebecca Stone

Rebecca Stone

Show full bio

Correspondent covering companies, deals and strategy in artificial intelligence and machine learning at AI In Context.

1,052 articles

Related articles

  1. Saluki 27B: A 7.89 GB, 2-Bit Qwen3.8 That Beats the 54 GB Original at Tool Calling
  2. Alibaba's Qwen4-Max undercuts rivals at $3.27 per benchmark task
  3. Alibaba's Qwen Releases 8-Step Image Model, 5x Faster Than Base
  4. Alibaba Closes Qwen4-Max Weights, Sells Flagship at $1.50 per Million Tokens
  5. Qualcomm's Dragonfly AI200 Opens for Customer Testing via Cirrascale Cloud

« Previous article