Qwen4-35B-A3B launches with multimodal features and local-use support

Qwen’s new Qwen4-35B-A3B model is now available with support for text, image, and video inputs, a one-million-token context window, and day-one support across several software tools. According to Hugging Face’s announcement, the model is released under the Apache-2.0 license and can be run locally with options that include llama.cpp and software for Apple Silicon devices. The announcement is therefore about more than a new model release: it also describes ways to run the model, adapt it, and fine-tune it for particular tasks.
The model’s name reflects a distinction in how its parameter counts are reported. Qwen4-35B-A3B has about 35 billion main-model parameters, but its Mixture-of-Experts (MoE) architecture activates about 3.8 billion parameters for each token. It also has an additional structure called Per-Layer N-gram Embedding, or PLE, with about 20.5 billion parameters. The announcement gives the total as approximately 56 billion. The “35B” label alone therefore does not describe the total size of all the model’s components; understanding how it works also requires accounting for active parameters and the extra embedding table.
In an MoE system, the model uses multiple components known as experts, but only selected experts are activated for each token. Qwen4-35B-A3B has 256 routed experts. For each operation, eight selected experts work alongside a shared expert. This arrangement allows the model to have a large overall pool of parameters without activating that entire pool for every token. The announced figure of about 3.8 billion active parameters describes this distinction. The announcement does not provide a general measurement of the speed or memory use this will produce on different hardware.
The model’s text decoder uses a four-layer pattern repeated ten times. The first three layers use Gated DeltaNet, which updates a fixed-size memory as it reads tokens. Every fourth layer uses Qwen Sparse Attention (QSA), allowing the current token to look back at selected tokens in the context window. Here, “sparse” describes a mechanism that selects relevant parts of the context rather than scanning the entire history in the same way at every step. The model supports a one-million-token context window, and how it selects what to attend to is an important part of the architecture.
QSA’s indexer divides tokens into groups of four and averages the key representations for each group. For each query, it can select up to 512 groups. The attention layer reads the individual tokens in those selected groups, as well as tokens in the final group if it is not yet complete. It can therefore examine up to 2,048 tokens from selected groups, plus as many as three additional tokens from the unfinished group. A one-million-token context window does not mean that the same number of tokens is directly examined at every step: the model accepts a long context, while its attention mechanism selects particular sections.
The model also takes a distinct approach to information flow between layers. Each token starts with four copies of its 2,048-dimensional representation, forming four residual streams. Before an attention or MoE block, learned gates combine the streams into a single input. The eight selected experts and the shared expert process that input and produce one output. A scaled copy of that same output is then added to each stream, with a separately learned gate setting the scale for each one. This design description shows that the model relies not only on expert selection but also on how information is exchanged between layers.
One of the largest individual components by parameter count is the Per-Layer Embedding table in the second decoder layer. It contains about 20.5 billion parameters, but each token does not access the entire table. Instead, each token reads 16 rows. Eight encode the previous two tokens, while the other eight encode the current token and the two tokens immediately before it. The 16 embeddings are joined, their contribution to each residual stream is adjusted by gates, and a short convolution mixes in nearby patterns. This is one reason the total parameter count and the computation active for each token are not the same figure.
For multimodal inputs, a vision transformer processes images and video. An image is divided into 16-by-16-pixel patches, and each 2-by-2 group of neighboring spatial patches is merged into one visual token before being passed to the text decoder. For video, the system samples two frames per second and handles consecutive sampled frames in pairs. The vision transformer allows every patch to attend to every other patch in the same frame pair. The announcement lists text, image, and video as input types, with text as the output. It does not announce direct video generation or any other output format.
The released model options include BF16 and FP8 formats, OMLX versions, and quantized files in GGUF format. Quantization represents weights at lower bit depths in an effort to reduce file and computational requirements. The GGUF options announced for the llama.cpp repository are Q4_K_M at four bits, Q6_K at six bits, and Q8_0 at eight bits. Since the announcement does not give memory requirements for these versions on particular computers, users need to assess which files suit their own hardware and software setup.
Hugging Face says it worked with the Qwen team to provide day-one support for transformers, llama.cpp, Llama App, vLLM, SGLang, Inference Providers, and Inference Endpoints. TRL also appears in the announcement’s short ecosystem-support summary and is used in the section on adapting the model with reinforcement learning. For transformers, the post presents an any-to-any pipeline for a quick start and the AutoModelForMultimodalLM and AutoProcessor classes for more detailed use. The model lets users set reasoning effort to “xhigh,” “high,” “low,” or “off.” If no value is supplied, the default is “high.” The source does not provide comparative results showing how these settings affect quality or runtime across different tasks.
Text, image, and video inputs can be added to messages and passed to the model through apply_chat_template. The announcement says torchcodec and ffmpeg must be installed to process video. It also demonstrates tool calling, in which the model can use tools supplied by the user to handle a request. These examples explain the supported input types and integration methods; they do not mean that the same tools or configuration will automatically be available in every application.
The local-running examples include llama.cpp and, for Apple Silicon, oMLX and mlx-lm. llama.cpp supports Multi-Token Prediction, or MTP, speculative decoding. In this method, a draft component proposes subsequent tokens and the main model verifies them. Hugging Face reports a 22% increase in generation speed in a test on an Apple Silicon M5 using Q4 quantization and three draft tokens. That result applies to the specific configuration described; it is not presented as a general speed increase for every device and quantization option. The post also says oMLX uses custom Metal kernels for QSA and gated residuals, and supports image input, MTP, and offloading PLE to an SSD. Support for the language model in mlx-lm was described as “on its way” to the official repository at the time of the announcement.
The post covers fine-tuning as well as model deployment, using an example that adapts the model to a specific task. The example uses TRL’s AsyncGRPOTrainer to train a model to triage security alerts and cite supporting evidence from a codebase. First, the model receives a sanitized alert and evidence records. vLLM samples several replies to the same alert. Each reply receives a reward of 1 if its triage label and citations match the analyst’s criteria, and 0 otherwise. TRL’s asynchronous GRPO trainer uses relative rewards within groups of replies to update a LoRA adapter. LoRA trains an additional adaptation layer rather than changing all of the base model’s weights.
The training example also shows why results should not be judged by training reward alone. The base model and saved adapters are evaluated on the same held-out incidents with the same decoding settings. The comparison looks at triage-label accuracy, citation accuracy, and missed escalations. On the 12 held-out CyberDefense Bench tasks reported in the announcement, the base model passed four, the update-50 adapter passed six, and the update-100 adapter passed three. The earlier checkpoint did better on this sample even though the overall training reward trended upward. The test set is small, and the source does not present these figures as a broader claim about security performance. The post also describes running the training pipeline in a two-GPU Hugging Face Jobs job, with vLLM on one GPU and training on the other.
The Qwen team says the model scores strongly for its size and class across selected benchmarks, and that it is comparable to, or better than, the much larger Qwen 3.8 Flash Next on some tasks. Hugging Face’s post does not include numerical scores for that comparison in its text; it says detailed results are available in the model card. The post also describes demonstrations using the Pi coding agent to create an animation video, a presentation for developers, and a cinematic flight scene over mountains. These are selected examples, not measurements showing that the model will produce the same quality for every request.
The concrete development in the announcement is that Qwen’s new MoE design is being put into production alongside first-day support for running it in multiple inference tools. A million-token context window, three input modalities, and local-running options broaden the ways developers can try the model, but actual memory and speed requirements depend on the selected version, software, and hardware. The Apache-2.0 license, GGUF quantizations, adjustable reasoning settings, and adapter training with TRL provide developers with different ways to experiment. The security example also shows that fine-tuning does not automatically improve results: the earlier adapter performed better on the held-out test. Hugging Face describes the model as a mid-sized option for local setups. Its published features and examples show that it can be tried in different environments, not that performance will be identical in each one.


