Alibaba’s Compact Qwen4 Model Brings Million-Token AI to Local Hardware

Alibaba’s Qwen team has opened the Qwen4 family with a model that packs a huge context window into a surprisingly small active footprint. Qwen4-35B-A3B activates about 3B parameters per token, accepts text, images and video, and reads up to 1,048,576 tokens in one native context.
That combination points straight at long-document analysis, enterprise knowledge bases and edge deployment. The weights are available on Hugging Face and ModelScope under Apache 2.0, giving developers a new open-weight option for local experiments and agentic work.
A 35B Model That Uses Only a Small Active Core
Qwen4-35B-A3B is a Mixture-of-Experts model with 35B main parameters, but each token activates about 3B. Hugging Face counts about 3.8B active parameters and about 56B total when the n-gram tables are included, while the Hub listing reaches 57B parameters because of that table.
The model accepts text, image and video input, then returns text. Alibaba says it matches Qwen3.8-Flash-Next at about one-third the size, even though Flash-Next has a 125B main model with 6B active parameters. Qwen4-35B-A3B follows Qwen3.8-Flash-Next, the August preview of the Qwen4 architecture.
The model targets agentic work, where long context and tool-driven reasoning can shape how an AI handles complex tasks. Its native 1,048,576-token window also gives developers a direct path to large documents and knowledge collections without relying on a shorter default context.
Inside the Hybrid Architecture
The model card lists 40 layers with a 2,048 hidden size. Its repeating structure runs one block 10 times: three Gated DeltaNet layers followed by one Qwen Sparse Attention layer, with every layer feeding an MoE block.
- Gated DeltaNet: Linear attention uses a fixed-size memory, helping keep long context cheap.
- Qwen Sparse Attention: An indexer groups tokens in fours and averages their keys. Each query attends to at most 512 groups, or 2,048 tokens.
- Mixture of Experts: The model has 256 experts, with each token using eight routed experts plus one shared expert.
- N-gram embeddings: A 20.5B-parameter table at layer 2 stores bigram and trigram patterns, adding memory without adding per-token compute.
- Gated residuals: Four residual streams are mixed by learned gates before each block.
- Multi-token prediction: One MTP layer supports speculative decoding.
Thinking runs at four levels: xhigh, high, low and off, with high as the default. The card recommends up to 262,144 reasoning tokens, giving users a large ceiling for extended problem-solving tasks.
Benchmark Wins Meet a Practical Memory Footprint
Qwen published eight scores in its launch chart, and all are self-reported. Four scores come from Artificial Analysis evaluations listed in the card footnotes. Qwen4-35B-A3B beats the dense Qwen3.8-27B on all eight charted benchmarks, while it wins three of eight against Qwen3.8-Flash-Next.
Its strongest listed result is 61.8 on DeepSWE v1.1, ahead of Qwen3.8-Flash-Next at 58.7. Its weakest result is 16.1 on FrontierCode-AA 2.0, where Flash-Next scores 27.1. On Terminal Bench 4.1, the models score 21.2 and 24.2, respectively, while Qwen3.8-27B scores 5.6.
Independent data is thinner, but Artificial Analysis gives the model 25 on its Intelligence Index, compared with a median of 9 for comparable open models. That result adds another signal to the benchmark picture without changing the fact that the launch chart remains self-reported.
Local deployment is one of the model’s biggest hooks. A quantized build can run on one GPU, and 4-bit versions need 20.5 to 24.7 GB of combined RAM and VRAM, putting a 24 GB GPU or Mac within reach. Memory figures for other formats include 17.2 to 19.4 GB at 3-bit and 40.5 GB at 8-bit.
BF16, FP8, GGUF and MLX builds exist, while Day-0 support covers Transformers, vLLM, SGLang, llama.cpp, MLX and Ollama. Unsloth suggests UD-IQ4_XS for a 24 GB device and keeps the n-gram table on an SSD through memory mapping. Its UD-Q4_K_XL quant scores 95.0% against 95.3% for BF16, a narrow gap for a smaller memory footprint.
Qwen4-35B-A3B brings three clear numbers into focus: 3B active parameters of 35B, a native 1M context and Apache 2.0 weights. With text, image and video input, local deployment support and a design aimed at agentic work, the model gives developers a compact route into long-context multimodal AI.
Based on
- Alibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context — marktechpost.com
- MiniMax M4 is here: a new frontier model optimized for non-Nvidia chips with open weights to come | VentureBeat — venturebeat.com
- Turning Capability Into Impact Beyond AI | South China Morning Post — scmp.com
- We tested 9 frontier AI models on real-world debugging: Gemini 4 Neon leads, Amazon Ergo undercuts Qwen by 6.5x, and every model missed the same trap | VentureBeat — venturebeat.com




