Chat about this article with your favourite AI tool
Alibaba’s Qwen Team has released Qwen4-35B-A3B, an open multimodal mixture-of-experts model that takes text, image and video inputs and supports a 1 million token context window. The model is available on Hugging Face under an Apache-2.0 licence, and Hugging Face said it worked with Qwen to ship day-0 support across a range of inference tools.
Architecture
According to Hugging Face, the model has about 35 billion main parameters, with roughly 3.8 billion active per token. It also carries around 20.5 billion Per-Layer N-gram Embedding (PLE) parameters, for a total of about 56 billion. It uses 256 routed experts, with eight selected per token plus a shared expert.

The text decoder repeats a four-layer pattern ten times. Three layers use Gated DeltaNet, which keeps a fixed-size memory as it reads tokens. The fourth uses Qwen Sparse Attention (QSA), where a small indexer groups tokens in fours and selects up to 512 groups for each query. That gives the attention layer up to 2,048 selected tokens to look back at.
The model also changes how information moves between layers. Each token starts with four copies of its embedding, which become four residual streams, and learned gates mix them before each attention or MoE block.
The PLE table sits in the second decoder layer. Each token reads 16 rows from it, encoding the last two and last three tokens, and the layer gates their contribution to each residual stream.

For vision, a transformer reads images as 16 × 16 patches and merges each 2 × 2 group into one visual token. Video is sampled at two frames per second, with consecutive frames grouped into pairs.
Performance claims
Hugging Face said Qwen published full benchmarks in the model card. It described the model as punching well above its size and as comparable to the much larger Qwen 3.8 Flash Next, and better on some tasks. Qwen4 follows the architectural preview in Qwen3.8-Flash-Next.
Checkpoints and tooling
Checkpoints come in BF16, FP8, OMLX and GGUF formats. The GGUF release includes Q4_K_M, Q6_K and Q8_0 quantisations. A Multi-Token Prediction drafter is available for GGUF and OMLX, and reasoning effort can be set to “xhigh”, “high”, “low” or “off”, with high as the default.
Day-0 support covers transformers, llama.cpp, Llama App, vLLM, SGLang, MLX, TRL, Inference Providers and Inference Endpoints. Hugging Face said speculative decoding with three draft tokens raised generation speed by 22% on an Apple Silicon M5 with the Q4 quantisation.
On Apple Silicon, the model runs through oMLX and mlx-lm. oMLX uses custom Metal kernels, supports image input and MTP, and can offload PLE to SSD. Language-model support in the official mlx-lm repository is still on the way.
Fine-tuning for cyber defence
Hugging Face also showed a reinforcement learning recipe using TRL’s AsyncGRPOTrainer to train a LoRA adapter that triages security alerts and cites evidence. The job runs on a two-GPU H200 setup.
On 12 held-out CyberDefense Bench tasks, the base model passed 4, the update-50 adapter passed 6 and the update-100 adapter passed 3. Hugging Face noted the earlier checkpoint did best on this small sample even as training reward kept rising.
Demos
Hugging Face tested the model zero-shot with the Pi coding agent and added skills. It produced an animated intro video for a benchmarking tool, a developer-focused slide deck and a cinematic flight-over-mountains scene.
Hugging Face called Qwen4-35B-A3B a high-quality mid-sized model for local setups.
Source: Hugging Face Blog

