Share this article:

If you run inference on your own hardware, this week was a decision week. On December 4, Hugging Face and the Alibaba Qwen team shipped the Qwen4 open-source line as a single model, Qwen4-35B-A3B. It is a multimodal MoE with 57B total parameters and about 3.8B active per token, with a native 1M-token context. The license is Apache-2.0, the same as the previous generation.

More important than the model is what came with it. 410 quantized checkpoints, dedicated vLLM and SGLang engine images, llama.cpp GGUF (Q4_K_M, Q6_K, Q8_0), and oMLX Metal kernels were all published the same day as the weights. With the previous generation, the story was that the model arrived first and the ecosystem caught up later. The Qwen4 open line arrives with the ecosystem already in place.

This post is for infrastructure and ML engineers deciding whether to self-host the next-generation open model. The core conclusion is one sentence. What the Qwen4 open line proves is not that the model is strong, but that the “mid-size MoE + hybrid attention” recipe is deployable. Its significance is that it arrives with serving, quantization, and tool calling all in place on day zero.

The headline number is one. On a single H200: 330 tokens per second for one request, 2,660 tokens per second at 64 concurrent. That is the HF blog’s vLLM (BF16) measurement. Below, I break down the architecture arithmetic, the shape of the day-zero ecosystem, and the serving numbers into units you can judge operationally, and I cover the limits to know before you run it.

Conceptual image of the Qwen4 open line: a single light path through a dark field of nodes Conceptual image of the Qwen4 open line: a single light path through a dark field of nodes.

Qwen4-35B-A3B open-weight release. The headline number is vLLM (BF16) single-request throughput on a single H200. Qwen4-35B-A3B open-weight release. The headline number is vLLM (BF16) single-request throughput on a single H200.

The shape that was previewed, and the shape that arrived

Put the November timeline first and the position of this release becomes clear. On September 22, at Apsara 2026, Alibaba Cloud’s CTO mentioned the names of the Qwen4 family. On November 16, Qwen4-Max launched, API-only. A flagship without weights only enters Qwen’s own cloud. And its launch note carried one line: smaller models would come open source.

What heated up the community in between was the leaked 27B spec. A kernel pull-request analysis showed a dense 27B with MTP and QSA sparse attention, and a claim that it would run in a 16GB RAM environment. The arithmetic behind that claim is worked through in The math of putting 27B into 16GB.

The open line that actually arrived is not that 27B. It is not dense, it is MoE. It is not 27B, it is 35B-A3B (57B total). The parts the leak pointed at (MTP, QSA) stayed in place; the orbit changed.

November’s story, “a 27B dense comes to small hardware,” became December’s fact, “a mid-size MoE arrives with its day-zero ecosystem.” As of December 4, one open model has arrived, the 35B-A3B. When the smaller ones come is still unannounced.

Of 57B, only 3.8B wakes per token

The name reads in three parts. 35B is the main model’s parameters. A3B points to the roughly 3.8B active parameters. Add the Per-Layer N-gram Embedding (PLE) at 20.5B, and the model card lists about 57B in total (the GGUF repo says 56B).

PLE is a lookup table that pre-memorizes short phrases that frequently co-occur. When a particular two-word or three-word phrase appears, the table hands back the answer directly.

The MoE has 256 routed experts, and per token 8 of them are active, plus 1 shared expert that always participates. The expert intermediate size is 512, which is small. The backbone is 40 layers with a hidden size of 2,048, built by repeating a four-layer block pattern ten times.

The block is a hybrid of two attentions. Layers 1 through 3 are Gated DeltaNet, a linear attention that keeps a fixed-size memory per token. No matter how long the sequence grows, the memory it carries does not.

Layer 4 is Qwen Sparse Attention, QSA. An indexer groups tokens in fours, averages their keys, and picks up to 512 groups per query. Full attention therefore targets at most about 2,048 tokens, plus up to 3 leftover by an unfinished trailing group.

The KV cache is thus not proportional to sequence length. It is proportional to the 2,048 tokens QSA selects. That is the arithmetic holding up 1M context. The second decoder layer hosts the 20.5B PLE table, and each token reads 16 rows from it.

Eight rows encode the last two tokens, and eight encode the last three including the current one. The n-gram table has 10 million entries, and the padded token embedding is 248,320.

Generation speed is carried by MTP, Multi-Token Prediction. It is a one-layer head trained over multiple steps, and in llama.cpp it drafts three tokens.

Multimodality is native too. The vision transformer reads images in 16 by 16 patches, merging each 2 by 2 spatial group into one visual token. Video is sampled at 2 frames per second, consecutive frames are grouped in pairs, and video tokens top out at about 224K.

The reasoning effort level comes in four tiers, xhigh, high, low, and off, with high as the default. The output budget is up to 262,144 tokens for reasoning and up to 131,072 for the final response.

flowchart TB
  A["Input token<br/>text · image · video"] --> B["Hybrid attention block ×10<br/>Gated DeltaNet ×3 (fixed-size memory)<br/>+ QSA ×1 (up to 512-group selection)"]
  B --> C["MoE<br/>256 experts → 8 routed + 1 shared active"]
  C --> D["PLE n-gram table (layer 2)<br/>16-row lookup per token"]
  D --> E["MTP head<br/>3-token draft"]
  E --> F["Output token<br/>reasoning ≤262K · final ≤131K"]

The previous generation's KV cache grows linearly as context lengthens. Qwen4-35B-A3B keeps 1M context operable with Gated DeltaNet's fixed memory and QSA's index-based selection (up to 2,048 tokens). The previous generation’s KV cache grows linearly as context lengthens. Qwen4-35B-A3B keeps 1M context operable with Gated DeltaNet’s fixed memory and QSA’s index-based selection.

In plain terms

Qwen4-35B-A3B is a reference library. Instead of one giant desk, there are 256 specialist desks, and when a question comes in, only 8 specialists and one senior who is always on duty take the consultation. That is why “57B total, 3.8B active” holds.

The 1M-page dossier is not re-read. The librarian keeps running notes in a fixed-size notebook. That is Gated DeltaNet’s fixed memory. For the parts that need precise answers, she pulls at most 2,048 paragraphs using the index cards. That is QSA.

The frequently asked question cards posted at the entrance are PLE. The common two-word and three-word phrases have pre-written answers, and the librarian just looks them up. And before writing the answer, a clerk first drafts three lines on a notepad. The librarian checks them all at once. That is MTP.

The analogy continues. In the serving section below, “8 desks” are the active parameters, and the “index cards” are the KV cache budget.

Day zero: the ecosystem arrived with the weights

The model card’s own statistics show 410 quantized models, 100 finetunes, and 9 adapters registered on release day. The story that “the ecosystem is not ready yet,” common a few days after the previous generation’s release, does not hold for this model.

All four paths are open. In transformers, load it with AutoModelForMultimodalLM and the image-text-to-text pipeline, and tool calling goes through the tools parameter.

In llama.cpp, ggml-org/Qwen4-35B-A3B-GGUF carries official GGUF in Q4_K_M, Q6_K, and Q8_0, and MTP speculative decoding runs with the --spec-type draft-mtp --spec-draft-n-max 3 flag. On an Apple Silicon M5, generation speed rose 22 percent with the Q4_K_M quantization.

oMLX is the thickest local path. It includes custom Metal kernels for QSA and the gated residual, image input, MTP, and PLE tables offloaded to SSD. The quantized checkpoint is mlx-community/Qwen4-35B-A3B-oQ4e, and mlx-lm support is on its way into the official repository.

On the server side, both engines ship dedicated images. vLLM is vllm/vllm-openai:qwen4, and SGLang is lmsysorg/sglang:qwen4. SGLang runs 3-token drafts with the NEXTN speculative algorithm and flashinfer backends. Both set the tool calling and reasoning parsers to qwen4.

What Qwen4-35B-A3B takes in and what it returns. Text, image, and video go in, text comes out — reasoning-effort levels and tool calling in one model (output sentences are format examples). What Qwen4-35B-A3B takes in and what it returns. Output sentences are format examples.

Put it side by side with the previous open line, Qwen3.8-27B, and the difference is sharp.

Attribute Qwen3.8-27B (previous gen) Qwen4-35B-A3B
Architecture Dense 27B MoE 35B-A3B + PLE 20.5B
BF16 footprint ~54GB ~114GB (57B × 2, arithmetic)
Minimum serving hardware 2 cards ⚠️ 1× H200 (BF16) ✅
Multimodal input Text only ⚠️ Text + image + video ✅
Day-zero ecosystem Community-led ⚠️ 410 quantizations + dedicated engine images ✅

The footprint arithmetic is simple. 57B parameters at 2 bytes per weight in BF16 is about 114GB. The HF Inference Endpoints recipe is 1× H200 141GB by default, with 2× H200 as the larger option. “The total is bigger than the previous generation” and “BF16 fits on one 141GB card” are both true at once. “Mid-size” is a word about the active 3.8B, not about the total 57B.

One H200: 330 tok/s single, 2,660 at 64 concurrent

The HF blog published serving measurements on a single NVIDIA H200 141GB, in BF16, with 2 MTP draft tokens.

vLLM does about 330 tokens per second on a single request, with roughly 90 ms to the first token. At 64 concurrent requests, aggregate output throughput is about 2,660 tokens per second. SGLang does about 260 tokens per second single, roughly 80 ms to first token, and about 2,180 tokens per second at 64 concurrent.

First two bars: per-request speed. Last two: aggregate output throughput at 64 concurrent requests. vLLM is 330 tok/s single and 2,660 tok/s at 64; SGLang is 260 tok/s single and 2,180 tok/s at 64. First two bars: per-request speed. Last two: aggregate output throughput at 64 concurrent requests.

The cloud recipes are public too. AWS SageMaker runs the FP8 checkpoint on a single H100 80GB (ml.p5.4xlarge), with LMCache disabled in the recipe because the hybrid attention layers are unsupported.

On Google Cloud, BF16 runs on a3-highgpu-2g (2× H100) with tensor parallelism of 2, weights staged in 192GB of /dev/shm. On-prem, it is tested on a Dell PowerEdge XE9680 (H200) and deployed through Dell AI Hub’s dell-ai models deploy.

Reading these numbers operationally gives two units. One is the floor. BF16 at 114GB means one H200 is the floor, and the path to smaller hardware is 4-bit quantization. The other is the shape. Per-request speed and batch throughput are not the same unit. Look at 330 for interactive workloads, and 2,660 for batch.

The model card’s sampling contract is worth writing down. For thinking mode: temperature 1.0, top_p 0.95, top_k 20, min_p 0.0, presence penalty 0.0, repetition penalty 1.0. For non-thinking mode: temperature 0.7, top_p 0.80, and presence penalty 1.5. Lowering the reasoning effort level to low shrinks the reasoning output budget itself, and that is the simplest lever for cutting batch costs.

Where this model fits in ThakiCloud’s products

Three places under the ai-platform lens. The first is KV cache economics. Once the cache stops scaling with sequence length, serving 1M context moves from “impossible” to “a sizing calculation.” The sizing input becomes the 2,048 tokens QSA selects, not the context length.

The variable in the GPU-counting capacity model changing from “context length” to “concurrent requests × 2,048 tokens” is a practically big deal when you evaluate 1M-context workloads in on-prem environments.

The second is the quantization ladder. A BF16, FP8, and INT4 ladder arriving on day zero means the platform’s role shifts from “building quantization” to “registering tiers.” The model registry just needs to hold the per-tier serving recipes.

The third is a storage-tiered serving pattern. oMLX moving the 20.5B PLE table to SSD is a preview of the pattern: when a lookup table outgrows GPU memory, push part of it to NVMe. It is a shape that slots directly into Metis’s on-prem serving tiers.

One line under the Paxis lens. The four reasoning effort tiers are the per-task cost control in an agent loop, and with multimodal input and tool calling in the same model, the workflow loses a hop. Giving routine tasks low and important decisions high is what execution economics look like at the unit level.

Four things to know before you run it

The first is the limit of benchmark verification. The model card’s text scores (Deep Swe 61.8, GPQA Diamond 86.9, Terminal Bench 4.1 21.2) have no baseline comparison on the card. The HF blog’s eight frontier benchmark comparisons (against Qwen3.8-Flash-Next, Qwen3.8-27B, and Inkling2 Mini) live in an image, and the prose only says “comparable, better in some tasks.”

The second is that inference cache tooling is still catching up. LMCache being disabled in the AWS recipe is a signal that the ecosystem around hybrid attention is still maturing. The third is the footprint. “Mid-size” is a word about active parameters, and the total 57B is about 114GB in BF16. H200 is the floor, and 4-bit is the path to smaller hardware.

The fourth is that the RL fine-tuning recipe is not mature yet. On the CyberDefense Bench’s 12 held-out tasks, the base model passed 4 of 12, the LoRA adapter passed 6 at update 50, and fell to 3 at update 100. A curve that rises then falls means the post-training recipe for this architecture is still being searched.

The right way to use these four points is not to abandon the model but to make them inputs to your smoke test. Serve it with the qwen4 image on your own hardware, then check the four points one by one.

Do TTFT and 64-concurrent throughput fit your capacity plan? What does the cache layer do in your stack? Do you actually have tasks that need fine-tuning? Deciding only on measured numbers is the attitude that fits this model’s day-zero maturity.

In closing

The Qwen4 open line showed in three numbers that the recipe is deployable. 3.8B active, 1M context, 330 tokens per second. The library consults only 8 desks, pulls the dossier by index card, and the entrance cards answer the short, frequent questions. What changed is not the model’s capability, but the fact that the shape of deployment was complete on day zero.

The first experiment you can do today is one. Serve the vLLM or SGLang qwen4 image on your own hardware, and measure TTFT and 64-concurrent throughput yourself. If that number lands inside your capacity plan, the serving decision for the next-generation open model no longer has to wait for the ecosystem.

Share this article:

Tags: 1m-context, hybrid-attention, moe, open-weight, qwen4, self-hosting, speculative-decoding

Categories:

Updated: