Qwen4-35B-A3B lands on Hugging Face: open multimodal MoE, 1M context

Qwen4-35B-A3B lands on Hugging Face: open multimodal MoE, 1M context

Hugging Face announced that Qwen4-35B-A3B, from the Alibaba Qwen Team, is out on the Hub. The post says it follows the architectural preview in Qwen3.8-Flash-Next and brings Qwen's full next-generation hybrid design into production. It is a natively multimodal Mixture-of-Experts model with about 35B main parameters and about 3.8B active parameters per token, plus about 20.5B Per-Layer N-gram Embedding (PLE) parameters, for about 56B in total. It takes text, image and video input, produces text output, has a 1M token native context window and is licensed under Apache-2.0.

Hugging Face says it worked with the Qwen Team to ship day-0 support across transformers, llama.cpp, Llama App, vLLM, SGLang, MLX, Inference Providers and Inference Endpoints. Checkpoints come in BF16, FP8, OMLX and GGUF quantized versions. For inference there is a Multi-Token Prediction (MTP) drafter for GGUF and OMLX, and an adjustable reasoning_effort setting with four levels: "xhigh", "high", "low" and "off". It defaults to high if no value is given.

Architecture. The text decoder repeats one four-layer pattern ten times. The first three layers use Gated DeltaNet, which updates a fixed-size memory as it reads each token. The fourth uses Qwen Sparse Attention (QSA), which lets the current token look back at individual tokens from anywhere in the context. A small indexer groups tokens into groups of four and averages their keys; for each query it picks up to 512 groups. The attention layer reads the individual tokens in those groups plus any tokens in the last unfinished group, which gives up to 2,048 selected tokens and at most three more at the end. The MoE has 256 routed experts; eight selected experts and a shared expert process each input.

The model also changes how information moves between layers. Each token starts with four copies of its 2,048-dimensional embedding, which become four residual streams. Before each attention or MoE block, learned gates mix the streams into one input. The experts produce one combined output, and each stream adds a scaled copy of it to its own state, with a learned gate setting the scale per stream.

One of the biggest pieces of the model sits in the second decoder layer: a per-layer embedding table (PLE) of 20.5B parameters. Each token reads just 16 rows of it. Eight lookups encode the last two tokens and the other eight encode the last three tokens (the current token and the two before it). The layer joins the 16 embeddings into one, gates their contribution to each residual stream and uses a short convolution to mix in nearby patterns. For vision, a transformer reads images into 16 x 16 patches and merges each 2 x 2 group of spatial patches into one visual token. For video, the processor samples 2 frames per second and groups consecutive sampled frames into pairs, and every patch attends to every other patch within a frame pair.

Benchmarks. The Qwen team published its benchmarks in the model card, and the post picks community favourites. The post says the model punches way above its size and class across various benchmarks, and that it is comparable to the much larger Qwen 3.8 Flash Next, or even better in some tasks. The visible text gives no benchmark figures.

Running it. The quickest route is the transformers any-to-any pipeline ("image-text-to-text" with model Qwen/Qwen4-35B-A3B). Lower down, AutoModelForMultimodalLM and AutoProcessor load the model, and reasoning_effort is passed to apply_chat_template. The post shows code for text-only, image plus text, video (which needs torchcodec and ffmpeg) and tool calling. For llama.cpp, three GGUF quants are on the Hub: Q4_K_M 4-bit, Q6_K 6-bit and Q8_0 8-bit, served with commands such as llama serve -hf ggml-org/Qwen4-35B-A3B-GGUF:Q6_K. MTP speculative decoding is supported out of the box via --spec-type and --spec-draft-n-max; with 3 draft tokens, generation speed rose 22% on an Apple Silicon M5 with the Q4 quant. On Apple Silicon the model runs with oMLX and mlx-lm. oMLX uses custom Metal kernels for QSA and the gated residual and supports image input, MTP and PLE offloading to SSD. Official mlx-lm support for the language model is on its way. For SGLang and vLLM the post points readers to their docs.

Fine-tuning. The post ends with a TRL recipe for cyber defense. AsyncGRPOTrainer trains Qwen4-35B-A3B, through a LoRA adapter, to triage security alerts, label vulnerabilities and cite evidence. The loop has four steps: send a sanitized alert with its evidence records to the model; sample several replies with vLLM and give each a reward of 1 if its triage label and citations match the analyst's criteria, 0 otherwise; update the adapter using the relative rewards within each group of replies; then evaluate on held-out incidents, comparing triage label accuracy, citation accuracy and missed escalations against the base model. The example runs on Hugging Face Jobs with a two-GPU flavor (h200x2) and a 3 hour timeout, using one GPU for vLLM and the other for training.

Key facts

  • Qwen4-35B-A3B from the Alibaba Qwen Team is a natively multimodal MoE with 256 routed experts, about 35B main parameters, about 3.8B active per token and about 20.5B PLE parameters (about 56B total).
  • It accepts text, image and video input, has a 1M token native context window and is licensed under Apache-2.0.
  • Day-0 support covers transformers, llama.cpp, Llama App, vLLM, SGLang, MLX, Inference Providers and Inference Endpoints; checkpoints are BF16, FP8, OMLX and GGUF (Q4_K_M, Q6_K, Q8_0).
  • MTP speculative decoding with 3 draft tokens raised generation speed 22% on an Apple Silicon M5 with the Q4 quant; reasoning_effort has four levels (xhigh, high, low, off) and defaults to high.
  • The post includes a TRL recipe using AsyncGRPOTrainer to train the model to triage security alerts and cite evidence, run on Hugging Face Jobs.

Why it matters

The release pairs a permissive Apache-2.0 licence with a 1M token context window and native text, image and video input in a model that activates only about 3.8B parameters per token. The post presents it as Qwen's full next-generation hybrid design in production, after the preview in Qwen3.8-Flash-Next, and says it is comparable to the much larger Qwen 3.8 Flash Next, or even better in some tasks. The design mixes Gated DeltaNet layers with sparse attention, adds four residual streams and a 20.5B-parameter per-layer n-gram embedding table, so it is also a showcase of architectural ideas beyond a plain MoE.

Who it affects

Developers who run open models locally or on their own servers get ready paths through transformers, llama.cpp, vLLM, SGLang and MLX on Apple Silicon. Teams that need long-context or multimodal input under a permissive licence can try it. People building on Hugging Face Jobs or TRL get a worked fine-tuning example aimed at security triage.

How to use it

The weights are on the Hugging Face Hub as Qwen/Qwen4-35B-A3B under Apache-2.0. The fastest start is the transformers pipeline; for more control use AutoModelForMultimodalLM and AutoProcessor and set reasoning_effort to "xhigh", "high", "low" or "off" (default high). On llama.cpp, pick one of the three GGUF quants (Q4_K_M, Q6_K or Q8_0) from the ggml-org repository and add --spec-type draft-mtp --spec-draft-n-max 3 for MTP speculative decoding. On a Mac use oMLX or mlx-lm; official mlx-lm support for the language model is still on its way. Video input needs torchcodec and ffmpeg. For SGLang and vLLM, follow their docs. To fine-tune, the post gives a TRL AsyncGRPOTrainer recipe with a LoRA adapter, run on Hugging Face Jobs with a two-GPU h200x2 flavor.

How solid is it

This is a first-party Hugging Face post written with the Qwen Team, so the architecture details and the list of supported tools come straight from the publishers. The performance claims are the weak part: the post says the model punches above its size and class, and points to the model card for the Qwen team's benchmarks, but no benchmark scores appear in the visible text and no comparison with non-Qwen models is stated. The 22% speed-up is reported for one setup only: an Apple Silicon M5, Q4 quant and 3 draft tokens. The results of the cyber-defense training run are not shown.

Risks and caveats

No hardware or memory requirements for running the model on-device are stated, even though the title says on-device. The total is about 56B parameters including the PLE table; the post does not say whether all PLE parameters must be loaded in memory, only that oMLX supports PLE offloading to SSD. Official mlx-lm support is not yet released. The post uses two names for PLE, Per-Layer N-gram Embedding and per-layer embedding table, without reconciling them. The post gives no training data, training compute or pricing information, and no release date beyond saying the model is out.

“Qwen4-35B-A3B punches way above its size and class across various benchmarks.”

— Hugging Face blog post