NEWS

4 min read

Alibaba releases Qwen4-35B-A3B with 1-million-token context and video support

Alibaba releases Qwen4-35B-A3B with 1-million-token context and video support
Image: Redação iMasters
News
Reading
4 min
In short

Alibaba released the weights of Qwen4-35B-A3B under the Apache 2.0 license: a multimodal model with more than 1 million tokens of context, designed to run on servers or locally via Ollama and llama.cpp.

What Alibaba released

Alibaba published, on December 4, 2026, the weights of Qwen4-35B-A3B, a model from the Qwen4 family designed to run locally, code, and sustain agent tasks over long periods. The release follows the Apache 2.0 license: anyone can download, modify, and use the model commercially, without asking permission or paying royalties.

According to the official model card released by the company, the model accepts text, image, and video as input and has a native context window of more than 1 million tokens. This puts Qwen4-35B-A3B among the few open models with context long enough to process an entire codebase, a lengthy document, or hours of video in a single call.

Architecture: few activated parameters, memory under control

The model's name already gives away the key to its architecture: 35 billion total parameters, but only around 3 billion activated per inference (A3B). It's a mixture-of-experts design, in which only a fraction of the network processes each token, reducing computational cost without giving up the raw capacity of the full model.

Added to this are n-gram embeddings and a multi-token prediction module, which trains the model to predict more than one token per step, a technique associated with inference speed gains. The combination of linear and sparse attention reduces memory consumption over long sequences, which explains how the model sustains more than 1 million tokens of context without blowing up hardware requirements.

In short: it's a 35B-parameter model designed to cost, when running, like something much smaller, while keeping its long-context capacity.

Text, image, and video in the same context

Native multimodality means Qwen4-35B-A3B processes text, images, and video in the same context window, without a separate vision pipeline. This matters for anyone building agents that need, for example, to analyze a bug report video and cross-reference it with product documentation in a single call.

What it was trained for

Alibaba says training prioritized two axes: sustained knowledge work (long, agentic tasks) and coding tasks that produce visual output, such as websites, 3D models, and games. It's not a generic chat model; it's optimized for the use case of requesting an app and getting the finished app, with code and visual result evaluated together.

This is not the first release in the Qwen family: Alibaba has been publishing successive generations of the model with open weights, almost always under Apache 2.0, establishing itself as one of the few big techs to release frontier models without a restrictive commercial-use license.

How to run it: from server to laptop

The deployment ecosystem already natively supported is broad:

  • On servers: high-throughput inference frameworks such as vLLM and SGLang.
  • Locally: desktop- and edge-oriented tools, including llama.cpp, Ollama, and MLX (the latter optimized for Apple Silicon).

This dual coverage, server and local, is what separates Qwen4-35B-A3B from a model that's "open in name only": in practice, it can run in production on a datacenter GPU and also locally, depending on the use case and available budget.

Reasoning effort control

Developers can adjust the model's reasoning effort across four levels, or turn it off entirely. This control trades response time for quality: for simple tasks, turning off extended reasoning cuts latency and cost; for complex tasks, more reasoning effort tends to produce a more reliable response, at the cost of more tokens generated before the final answer.

What changes for builders in Brazil

For those already running LLMs locally via Ollama or llama.cpp, the arrival of an A3B model with 1M tokens of context changes the RAG math. Instead of slicing documents into small chunks and relying on a complex retrieval pipeline, it's possible to put an entire knowledge base (or a good part of it) directly into the context, reducing the retrieval engineering required.

The Qwen family has historically trained with a strong presence of multilingual data, which tends to include Portuguese among the languages covered. Alibaba, however, did not disclose in the model card material any specific benchmark for Portuguese-language performance, so this capability still needs to be validated by anyone adopting the model in production.

The main practical gain is cost: with only about 3B parameters activated per inference, Qwen4-35B-A3B is a candidate to run on much more modest hardware than a dense 35B model, which lowers the barrier for Brazilian teams to build local agents without relying on a paid API from a closed model. The caveat concerns independent benchmarks: third-party comparisons against alternatives like Llama or the closed models from OpenAI and Anthropic are still lacking.

Translated from the Brazilian Portuguese original · Read the original