New API
  • Home
  • Docs
  • Console
  • AgentAgentHotHot
  • Partners
Sign in
AI News

Qwen4 MoE vLLM Leak: 95-File PR, Then 35B-A3B Weights

OpenLux Team · Published 2026-12-04

A draft vLLM pull request titled "Add Qwen4 MoE" touched 95 files and added 5,466 lines on 3 December 2026, before Alibaba's Qwen team had published a single Qwen4 open-weight checkpoint. Inside its kernel code sat two model shapes: a hidden size of 4 × 2,560 with rank 320, and a newly added 4 × 2,048 with rank 256. By about 10:00 Beijing time on 4 December, the second shape had a name. The Qwen4-35B-A3B model card lists a hidden size of 2,048 and a gated residual of 4 branches at rank 256, under Apache 2.0. The first shape still has no public checkpoint. So the useful question is no longer whether Qwen4 MoE exists, but which parts of the leak are now confirmed and which model the 2,560 shape belongs to.

OpenLux does not serve Qwen4-35B-A3B yet; the closest hosted model is Qwen3.6-35B-A3B. The OpenLux Team read the PRs, the model card and the pricing API between 10:20 and 10:35 Beijing time on 4 December 2026.

The code arrived roughly a day before the weights

The order of events matters because it is how most Qwen releases now leak. On 3 December, Hugging Face Transformers merged PR #51678, "Add qwen4", which registers two model types, qwen4 for dense models and qwen4_moe for mixture-of-experts. The same day, vLLM PR #71659 was opened as a draft. It adds Qwen4MoeForConditionalGeneration on top of vLLM's existing Qwen4Exp implementation, plus Qwen4 chat rendering and reasoning and tool-call parsers in both Python and Rust.

Framework support that lands before a model is normal: inference engines need day-0 code, so vendors share configs with maintainers in advance. What made this one a leak is that the code is public and specific. The vLLM diff runs to +5,466 and −836 lines across 95 files, including CUDA kernels tuned for the model's exact matrix shapes. Kernel tuning only makes sense for real checkpoints, which is why the two shapes were the most informative lines in the PR.

The Hugging Face repository for Qwen4-35B-A3B was created on 3 December at 02:45 UTC and last modified on 4 December at 01:54 UTC, according to the Hugging Face model API, which is 09:54 in Beijing. Qwen announced it on its X account the same morning.

What the PR revealed, line by line

Three details in the vLLM PR are now explained by the model card.

First, the QSA layers. The PR adds an NVFP4 key-value cache "for the QSA layers", enabled with --kv-cache-dtype nvfp4. The model card spells QSA out as Qwen Sparse Attention and gives the layout: 10 repeats of three Gated DeltaNet blocks followed by one QSA block, each followed by an MoE layer, for 40 layers. Only 10 of the 40 layers use the sparse attention that holds a key-value cache, so a 4-bit cache on those layers saves memory exactly where long contexts cost the most.

Second, the shape. A hidden size of 2,048 and four residual branches at rank 256 match the card. That is the 4 × 2,048 kernel config, now confirmed as Qwen4-35B-A3B.

Third, the parsers. A dedicated qwen4 reasoning parser lines up with the card's reasoning modes: xhigh, high (the default), low and off, with up to 262,144 tokens of thinking and 131,072 tokens of final answer.

Qwen4-35B-A3B, as published

The card describes a model with 35B total parameters and 3B activated per token, which is 8.6% of the total. Two extra components push the stored size higher: a 20B n-gram embedding table (10,000,000 entries of bigrams and trigrams at layer 2) and a 2B multi-token prediction layer. That is why Hugging Face counts 56,823,261,843 parameters in the safetensors files rather than 35 billion.

Item Qwen4-35B-A3B (card) Qwen3.6-35B-A3B on OpenLux
Total / active parameters 35B / 3B (+20B n-gram, +2B MTP) 35B / 3B
Experts 256, 8 routed + 1 shared —
Context 1,048,576 tokens 256K (OpenLux tag)
Licence Apache 2.0 —
Input Text, image, video Text, image
Price per million tokens Not hosted on OpenLux $0.375 in / $2.25 out base; $0.28125 / $1.6875 in Alibaba-2 (0.75)

The expert setup is 256 experts with 8 routed plus 1 shared active per token, each with an intermediate size of 512. Inside the QSA blocks, attention uses 16 query heads and 2 key-value heads at a head size of 256. Context is 1,048,576 tokens natively, four times the 256K tag that OpenLux shows for Qwen3.6-35B-A3B.

Qwen's X post makes two performance claims: the model outperforms the dense Qwen3.8-27B, and it matches Qwen3.8-Flash-Next at about one third of the size. The card lists the benchmarks behind that, including Terminal Bench 4.1, FrontierCode-AA 2.0 and AutomationBench-AA, but the scores are only in an image. We have not copied numbers from it, and no independent lab had published results for the model when we checked.

What is still unconfirmed

The 4 × 2,560 shape with rank 320 has no public checkpoint. It is the second geometry vLLM was tuned for, and the obvious reading is a second, larger Qwen4 MoE. Nothing public names it, so treat any parameter count attached to it as a guess.

Qwen4-27B is also not out. Reporting on the Transformers merge noted that its documentation examples load a dense checkpoint called Qwen/Qwen4-27B. When we queried the Hugging Face API at 10:25 Beijing time on 4 December, that repository was not public.

Pre-release numbers deserve less weight now. Before the launch, CometAPI summarised a withdrawn AMD pull request that listed 40 layers, 256 experts, a 1,048,576-token context and 105 GB of BF16 weights. The first three now match the card. The size does not: 56.8 billion stored parameters at 2 bytes each is about 113.6 GB, so read the 105 GB figure as an estimate made before the n-gram and MTP parameters were known.

The vLLM PR itself is still a draft. At the time of writing it had not been merged, so the qwen4_moe path described above is not in a vLLM release.

Hosted API pricing for Qwen4-35B-A3B has not appeared in anything we read. Do not budget for it from Qwen3.6 numbers.

Running it before vLLM merges

The card gives a plain vllm serve "Qwen/Qwen4-35B-A3B" command and an SGLang launch on port 30000, and advises using the latest framework versions. Because the vLLM model class sits in a draft PR, a release build of vLLM from before this week may not load the model; check the version you install against the PR status before planning a rollout.

Memory is the practical constraint. At 2 bytes a parameter, the BF16 files are around 113.6 GB, which does not fit a single 80 GB GPU without quantisation. Only 3B parameters are active per token, so the model is cheap per token once it is loaded, but the weights still have to sit in memory. Qwen says a quantised build runs on a single GPU; the card itself lists 15 community quantisations and does not give VRAM figures.

The 1,048,576-token context is native, but long contexts also need key-value cache memory. This is where the NVFP4 cache option in the vLLM PR is likely to matter once it merges.

What the hosted Qwen models cost while you wait

If you need a Qwen model behind an API today, three are relevant on OpenLux, read from the pricing API at 10:23 Beijing time.

Qwen3.6-35B-A3B is the same size class: 35B total, 3B active. Its base price is $0.375 input and $2.25 output per million tokens. In the Alibaba-2 group (ratio 0.75), described as "higher quota, upgraded multimodal analysis", that becomes $0.28125 and $1.6875. A month of 100 million input and 20 million output tokens costs 100 × $0.28125 + 20 × $1.6875 = $61.88, against $82.50 at the base price.

Qwen4-Max is the API-only Qwen4 flagship. Its base is $1.50 input, $4.50 output and $0.075 for cached input. The same month costs $120 in Self-Deployed-2 (ratio 0.5) and $180 in Alibaba-2 (0.75). That is 1.94 times the Qwen3.6-35B-A3B bill in the cheapest groups, for a much larger model; our comparisons of Qwen4-Max against GPT-6 Astra and against Gemini 4 Carbon show where it earns that.

Qwen3.8-27B is the dense model Qwen says the new MoE beats. It lists at $0.50 and $3.00, or $0.375 and $2.25 in Self-Deployed-3 (0.75), for $82.50 a month. How group ratios show up in your usage log is covered in the OpenLux billing guide.

Which signals to watch next

Three things will settle the open questions. The vLLM PR moving from draft to merged, which puts qwen4_moe into a release and is the point most teams can serve the model without patches. A public checkpoint with a hidden size of 2,560, which would identify the second shape. And a third-party benchmark page for Qwen4-35B-A3B, since every score so far is Qwen's own and sits in an image.

Until then, our recommendation is simple. If you self-host and have the memory, Qwen4-35B-A3B under Apache 2.0 is worth testing against your own tasks now. If you call models through an API, keep using Qwen3.6-35B-A3B or Qwen4-Max and watch the pricing page for a Qwen4 MoE listing; switching is a model-name change on the same base URL.

To try the hosted Qwen models on one key, create an OpenLux account.

New API

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot
  • Careers

Legal

  • Terms
  • Privacy
  • Usage
  • Disclaimer
  • Refunds
  • DPA
  • Compliance
  • Imprint

Docs

  • API
  • AI News
  • From OpenRouter
  • Announcements

More

  • Agent

One API for mainstream AI models

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

New API

One API for mainstream AI models

Models

  • Text
  • Image
  • Media
  • Retrieval

Company

  • About
  • Partners
  • PersonalHot
  • Careers

Docs

  • API
  • AI News
  • From OpenRouter
  • Announcements

More

  • Agent

OpenLux©2026COGNIS AI PTE. LTD. All rights reserved

Privacy | Terms | Usage | Disclaimer | Refunds | DPA | Compliance | Imprint |