ZICQ
中 Log in / Sign up
Newsroom Official Open Source AI #Qwen4 #Open Weights #Mixture of Experts #Hybrid Attention #Multimodal

Alibaba Releases Qwen4-35B-A3B Open Weights with 1M Context via Vercel AI Gateway

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Alibaba's Qwen team has released Qwen4-35B-A3B under the Apache 2.0 license. The model uses a mixture-of-experts design with 35B total parameters and roughly 3B active per token, supports text, image, and video inputs, and offers a 1M-token context window through a hybrid linear-and-sparse attention architecture. Vercel AI Gateway now exposes the model as `alibaba/qwen4-35b-a3b`, with integrations for coding agents including Claude Code, Codex, and Cursor. The gateway adds usage and cost tracki


Alibaba's Qwen team has introduced Qwen4-35B-A3B, and Vercel AI Gateway now provides access to the model. The ownership boundary matters: Alibaba's Qwen team develops Qwen4-35B-A3B, while Vercel AI Gateway acts as the distribution, routing, and governance layer for a third-party model.

Release Facts and Responsibilities

Qwen4-35B-A3B is presented as the first open-weight model in the Qwen4 series and is released under the Apache 2.0 license. It has 35B total parameters, with approximately 3B active for each token. The announcement says the model follows the same architecture and training techniques as Qwen4-Max. It accepts text, image, and video inputs and exposes a 1M-token context window.

The model identifier in Vercel AI Gateway is alibaba/qwen4-35b-a3b. Developers can update the Vercel CLI, run its setup flow, and then select the model in coding agents such as Claude Code, Codex, and Cursor. Sharing an architecture and training methodology with Qwen4-Max does not imply identical capabilities: parameter scale, data composition, and post-training can still create substantial differences.

Technical Design: Combining 3B Activation with 1M Context

1. MoE Reduces Per-Token Computation, Not Aggregate Weight Memory

A sparse mixture-of-experts architecture routes each token through only a subset of experts. The approximate active-parameter share is:

3B / 35B ≈ 8.6%

This ratio describes expert activation, not the model's total compute bill. Attention, shared layers, routing, normalization, and communication remain active, so the actual FLOP reduction is normally smaller than the parameter-activation gap suggests.

MoE also does not automatically reduce the amount of weight data that must be stored. At BF16 precision, the weights alone require approximately:

35B × 2 bytes ≈ 70 GB

A 4-bit representation has a theoretical floor of roughly 17.5 GB, before quantization scales, metadata, runtime buffers, and framework overhead. In multi-GPU deployments, expert weights generally remain resident across nodes and introduce All-to-All communication. Small-batch traffic may also fail to exploit the throughput benefits of sparse activation.

2. Hybrid Linear and Sparse Attention Targets Long Contexts

Dense attention computes interactions across every pair of tokens in a sequence of length L, causing the core computation to grow quadratically with sequence length. Linear attention can reduce the sequence-length term to approximately linear, while sparse attention restricts queries to selected tokens or blocks. A hybrid design seeks to preserve local and global information access while lowering prefill cost and cache pressure for very long inputs.

The public description does not disclose the ratio of linear to sparse layers, sparse block size, state dimension, GQA configuration, or cache quantization. Exact prefill latency therefore cannot be derived from the announcement. For conventional GQA or MHA layers, KV Cache memory can still be approximated as:

2 × L × H_kv × d_head × bytes_per_element × N_layers

where H_kv is the number of KV heads. Even with a more compact hybrid cache, a 1M-token context remains memory-intensive. A stated context limit does not demonstrate that the model can use every token effectively.

3. Multimodality and More Concise Reasoning

The model accepts text, images, and video, covering workloads such as long documents, large codebases, frontend development, 3D modeling, and games. More concise reasoning produces fewer decoded tokens, which can reduce generation latency and inference cost. The corresponding trade-off is reduced opportunity for self-correction on ambiguous tasks, complex planning, and difficult debugging scenarios.

Engineering Trade-offs and Evidence Boundaries

The release combines several useful properties rather than setting a single extreme: roughly 3B active parameters constrain per-token expert compute, hybrid attention targets million-token contexts, multimodal input broadens coding-agent use cases, and open weights enable BYOK, private deployment, and further research. The costs are equally concrete: 35B weights create a substantial memory footprint, MoE adds routing and expert-parallel complexity, and video or high-resolution images increase visual-encoder prefill work.

The available material states only that the model is stronger than earlier Qwen open models on long multi-step agent tasks, professional knowledge work, and coding with visual outputs. It provides no absolute scores, evaluation datasets, sample counts, prompts, tool budgets, or statistical variance. It also omits prefill throughput, time to first token, time per output token, p95 latency, memory use, and long-context degradation under matched hardware and concurrency. It is therefore not possible to translate claims such as stronger performance or smaller caches into a production SLA without additional measurements.

A more reliable evaluation should cover three comparison groups: single-request latency and concurrent throughput under fixed model and context lengths; TTFT, KV Cache consumption, and effective answer utilization across context lengths below 1M; and task completion rates under identical agent scaffolds, tool permissions, and token budgets. Multimodal tests should separately record how image resolution, frame-sampling density, and video preprocessing affect cost.

Deployment Guidance for Developers

The fastest route is to update the Vercel CLI, run its setup flow, and select alibaba/qwen4-35b-a3b. AI Gateway provides a unified API, usage and cost tracking, retries, failover, routing rules, API-key budgets, custom reporting, and Zero Data Retention support. Vercel also states that it reflects provider pricing without a markup and does not charge a platform inference fee, including for BYOK requests; actual billing should still be checked against the service terms in force at deployment time.

For self-hosting, teams should first verify checkpoint format, expert-routing implementation, image and video preprocessing, framework support for the hybrid attention design, and the KV Cache strategy required for million-token contexts. They should also confirm that quantized builds preserve routing and normalization accuracy, because weight compression can introduce output regressions that are difficult to diagnose.

For long documents, large repositories, and extended coding-agent sessions, Qwen4-35B-A3B is an open-weight model worth testing. However, activating only about 3B parameters per token does not remove the aggregate memory cost of a 35B model. Production adoption should depend on same-hardware A/B tests covering task success, TTFT, tail latency, visual quality, and total cost of ownership.


Source: Vercel Blog (2026-12-03)

— END —

Tags: #Qwen4 #Open Weights #Mixture of Experts #Hybrid Attention #Multimodal

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…