Qwen 4 35B-A3B release notes

Architecture and Capabilities

Qwen4-35B-A3B is a natively multimodal Mixture-of-Experts (MoE) model designed for high-performance, on-device intelligence. The model features approximately 35B total parameters, with 3.8B active parameters per token, and incorporates a 20.5B parameter Per-Layer N-gram Embedding (PLE) table. It supports a 1M token context window and natively processes text, image, and video inputs.

The model's text decoder utilizes a repeating four-layer pattern. The first three layers employ Gated DeltaNet for memory updates, while the fourth layer uses Qwen Sparse Attention (QSA). QSA optimizes context handling by grouping tokens and selecting up to 512 groups (2,048 tokens) per query. Information flow is managed through four residual streams, with learned gates mixing inputs before they are processed by the model's 256 experts. For vision tasks, a vision transformer encodes images into patches and processes video by sampling two frames per second.

Inference and Ecosystem Support

Qwen4-35B-A3B features day-0 support across major inference frameworks, including Transformers, llama.cpp, vLLM, SGLang, and MLX. The model supports Multi-Token Prediction (MTP) for speculative decoding, which can significantly improve generation speeds on hardware like Apple Silicon. Users can adjust the model's reasoning performance via a reasoning_effort parameter, which accepts "xhigh", "high", "low", or "off" settings.

For local deployment, quantized versions in GGUF format (Q4_K_M, Q6_K, and Q8_0) are available. The oMLX implementation for Apple Silicon includes custom Metal kernels for QSA and gated residual operations, alongside support for offloading PLE parameters to SSD storage.

Fine-Tuning and Cyber Defense Applications

Developers can fine-tune Qwen4-35B-A3B using TRL’s AsyncGRPOTrainer for specialized tasks such as automated cyber alert triage. The training pipeline involves sampling multiple model responses, using a verifier to score labels and evidence citations, and updating LoRA adapters via asynchronous Group Relative Policy Optimization (GRPO). This approach allows the model to learn to cite evidence from a codebase when labeling vulnerabilities. Performance evaluations on held-out tasks indicate that early-stage checkpoints can sometimes outperform later ones, highlighting the importance of checkpoint selection during reinforcement learning.

Sources