Qwen4-35B-A3B came out today and, luckily, I was having a good day, so I took it for a good long ride on a local AI workstation: vLLM on one RTX PRO 6000 Blackwell Max-Q (300 W).
If you’re just here for the numbers, here’s the TL;DR: 243 tokens per second for a single stream and 1,033 in aggregate at eight concurrent requests.
The rest of this note digs into the specifics. First the question I care about most, where the model’s n-gram table should live. Then the setup, the full numbers, and a short test of a second engine, mlx-serve, whose new CUDA build I tried on the same card. The answer to the n-gram question closes the note.
Sparse Table Placement: Why It Matters So Much to Me
My favorite part of the latest Qwen family is the n-gram table. My eyes lit up the first time I saw it. I’ve spent a lot of time with RAG and sparse retrieval: sparse embeddings and inverted indexes, hybrid search, kNN and approximate nearest neighbors, and the matmuls underneath all of it. I know how much more efficient an LLM pipeline gets when an answer doesn’t need every attention pass and every transformer layer. The n-gram table is that idea built into the model. A very large table of cheap entries sits next to the dense network, and each token pulls only the few rows it needs. That’s a memory read instead of a matmul. Almost all of the table goes untouched on any given request, which is what sparse means here. I knew right away the payoff would be huge: a lot of stored knowledge for almost no compute. There’s a whole family of sparse and multi-stage designs behind that idea, and I’m skipping it so this note stays on one question.
The question is where the table lives. With Qwen3.8-Flash-Next I had no choice. The weights took the whole RTX PRO 6000, so the table could only sit in host RAM. Qwen4-35B-A3B is small enough to leave room on the card, and that opens the test I care about most: the same model with its n-gram table in three different places, the way storage people think about tiers.
- Tier 1, VRAM. The table sits in the card’s own memory, next to the weights.
- Tier 2, host RAM. The table sits in the server’s memory, and the card reaches it across the PCIe slot. This is vLLM’s default.
- Tier 3, NVMe. The table is never loaded. The rows are read from the checkpoint files on the drive as they are needed.
Pay attention to what changes between them. In tier 1 nothing is consulted outside the card: no PCIe, no CPU, no host memory in the path of a token. In tier 2 every token’s lookup leaves the card, crosses the PCIe link, goes through the CPU’s root complex and memory controller, reaches the DRAM, and the rows come back the same way. Tier 3 adds one more stop behind all of that, the drive.
The three places the n-gram table can live on an x86 host, and the path a lookup takes in each.
The three paths have very different speed limits. In tier 1 a lookup is bounded by the card’s own memory: 96 GB of GDDR7 with a theoretical bandwidth of about 1.8 TB/s. In tier 2 everything has to squeeze through the PCIe Gen5 x16 link, which tops out around 63 GB/s in each direction, well under what the host’s DDR5 can deliver, so the link is the bottleneck. On paper that’s a gap of roughly 28 times, before counting the extra hops. Tier 3 has a PCIe bottleneck of its own. The drive holding the checkpoint is a consumer NVMe on a two-lane Gen5 link, about 7.9 GB/s at the very most, eight times narrower than the card’s slot, and a drive answers small scattered reads far more slowly than it streams a big file. What this field note answers is whether those gaps have any direct impact on a model being served from a single GPU.
I’ve written a few articles about how latency compounds with every hop away from the processor, from the Beowulf cluster that taught me the lesson in 2006 to performance engineering as the A in CIA. Everything in that work says tier 1 should win, and by a lot. That made this the result I wanted most from release day, and it’s the one this note ends on.
The Model and the Checkpoints
Qwen4-35B-A3B is a mixture of experts, close to a scaled-down Qwen3.8-Flash-Next: 35B parameters with 3B active, 256 experts with 8 routed per token, a 1M context, vision, Apache 2.0. Two parts of it matter for serving. There is a 1-layer MTP head, a small extra head that drafts the next few tokens so the main model can accept several in one step. And there is an n-gram embedding table of roughly 20B parameters (n-gram size 3) that the model looks up by hash on every token. That is the table from the section above.
A model this new exists in several packagings, and which one you load decides most of the result. Two of them deserve a word before the table.
The first is the work of ddalcu, the author of mlx-serve, an MIT-licensed model server built for Apple Silicon. He published an 8-bit pack of Qwen4-35B-A3B for it on release day. mlx-serve had already given me very good results with Qwen3.8-Flash-Next on an M5 Ultra, and its releases now include a Linux build for NVIDIA GPUs, so a short test of that build is in this note too. Credit where it’s due: a working pack and a CUDA build on day one is a lot of work, and none of it was mine.
The second is DFlash2. Speculative decoding is a simple deal: something small guesses the next few tokens, the big model checks all the guesses in one pass and keeps the ones it agrees with, so the answer is still the big model’s answer, only faster. Qwen4 ships with a guesser built in, the MTP head. DFlash2 is a separate small model, a drafter, that guesses a whole block of tokens at once. In my DFlash 2 vs MTP test the drafter decoded code at 2.16 times the speed of the MTP profile I had been running, and the Ripple-65B study went deeper into block sizes. After that experience I couldn’t leave the Qwen4 drafter out of this test. As of today no engine I could run on this card accepts it for Qwen4, so it has a row in the table and none in the results yet.
Table 1. The checkpoints.
| Checkpoint | What is inside | Runs on |
|---|---|---|
Qwen/Qwen4-35B-A3B-FP8 | The official release in 8-bit floating point, from the base model | vLLM |
RadixArk/Qwen4-35B-A3B-NVFP4 | Routed experts in NVFP4 (4-bit weights and activations), n-gram table in FP8, the rest in BF16; made with ModelOpt for SGLang | vLLM |
local-inference-lab/Qwen4-35B-A3B-NVFP4 | Routed experts in NVFP4, attention projections in MXFP8, n-gram table in FP8; made with ModelOpt for vLLM | vLLM, in the b12x run |
RadixArk/Qwen4-35B-A3B-Dflash2 | The DFlash2 drafter, 395M parameters | nothing on this card yet |
ddalcu/Qwen4-35B-A3B-MLX-Serve-8bit | 8-bit pack for mlx-serve | mlx-serve, in its own short test |
How I Set It Up and What I Measured
I didn’t invent a configuration. The vLLM project publishes a recipe for Qwen4-35B-A3B, a recommended launch command with notes, and I started from it. Where I ran something different, it was because this card or this host could not do what the recipe asks, or because I wanted both sides of a comparison.
Table 2. The recipe’s values and mine.
| Setting | The recipe suggests | What I ran | Why |
|---|---|---|---|
| vLLM version | The vllm/vllm-openai:qwen4 Docker image | Nightly wheel 0.35.0rc1.dev267+g937ab3837 | I installed vLLM without Docker. No release knows qwen4_moe yet, v0.34.0 included, so I used the wheel of main from release day (PR #71659). It is not the same build as the image |
| Code from the model repo | --trust-remote-code | Off | The repo’s tokenizer-compat files do the same job without running its Python |
| KV cache | NVFP4 | FP8 | NVFP4 KV does not start on this card |
| Context limit | auto, up to the 1M window | 163,840 tokens | One fixed limit for every run |
| Prefix caching | On | On | |
| Speculative decoding | MTP, 3 draft tokens | The same, and every checkpoint also without it | To show what MTP adds |
| FlashInfer autotune | Disabled, for a faster start | Left on | The recipe says to leave it on for the best prefill speed |
| Vision encoder | Loaded | Skipped (text only) | Every prompt here is text |
| Sampling | Temperature 1.0, top-p 0.95, top-k 20 | The same |
The card ran driver 620.70.06 with CUDA 13.5.
Then four tests, each answering a question someone sizing a server would ask.
Table 3. The tests.
| Test | What it does | What it answers |
|---|---|---|
| Single stream | A 12,765-token coding-agent prompt, 2,200 tokens of answer at reasoning effort high; median of seven warm requests | How fast one user gets text |
| Concurrency | The same kind of request with 800-token answers, sent 1, 2, 4 and 8 at a time, eight requests per level | How much total output the card gives when shared |
| Prefill | Prompts of 2k, 16k, 64k and 128k tokens, timed until the first token | How long a big context waits before the answer starts |
| Short answers | Code problems and 50 GSM8K math questions, greedy, effort low | Whether the output is right, and the speed on small jobs |
Prompt token counts were identical across every run, so each configuration did the same work.
Qwen4-35B-A3B Performance on vLLM: The Numbers
Table 4. vLLM on the card, tokens per second. Aggregate is at 1, 2, 4 and 8 concurrent requests.
| Engine, weights, arm | Decode c=1 | Aggregate c=1 / 2 / 4 / 8 | Prefill 2k / 16k / 64k / 128k | TTFT at 128k |
|---|---|---|---|---|
| vLLM FP8 | 159.8 | 158 / 246 / 408 / 637 | 18.9k / 23.5k / 23.2k / 22.6k | 5.65 s |
| vLLM FP8 + MTP k=3 | 197.8 | 193 / 324 / 496 / 713 | 19.2k / 23.1k / 22.6k / 22.0k | 5.82 s |
| vLLM NVFP4, Marlin MoE† | 182.8 | 182 / 302 / 569 / 952 | 20.4k / 22.2k / 21.9k / 21.5k | 5.97 s |
| vLLM NVFP4, Marlin MoE† + MTP k=3 | 242.8 | 243 / 408 / 686 / 1,033 | 21.3k / 21.6k / 18.3k* / 20.8k | 6.15 s |
*At 64k the two samples were 15.4k and 21.3k tok/s, so read that cell as a spread.
†I evaluated NVFP4 on two kernels. One is b12x, the kernel written for this card’s SM12x architecture and always my first choice for MoE, which runs the experts with 4-bit weights and 4-bit activations. The other is Marlin, the fallback, which reads the same 4-bit weights and keeps the activations at full precision. The rows in this table are the Marlin runs. The b12x run finished late and is in the edit at the end of this article.
MTP adds about 24% to single-stream decode on FP8 and 33% on NVFP4, and the gain survives load: at eight requests NVFP4 goes from 952 to 1,033. Acceptance length, counted as 1 plus accepted over drafted, was 2.28 to 2.31 on the long decode and 2.87 to 2.95 on code. On short greedy code answers at effort low the winning arm runs 316 tok/s per stream, and it scores 50 of 50 on GSM8K at 318 tok/s.
A Short Test of mlx-serve’s CUDA Build
This section is mostly a thank-you to ddalcu, the author of mlx-serve. His work on the M5 is outstanding, and it deserves a special mention here: he is shipping one engine for two platforms and two very different architectures at the same time, Metal on Apple Silicon and CUDA on Linux, and he had both ready for a brand-new model on release day. The idea behind this build is fantastic, and it’s my go-to engine on the M5 for the coming days and weeks at least.
mlx-serve has a dedicated path for this model family: it memory-maps the n-gram table, gathers the rows on the CPU and drafts with the model’s own MTP head. With Qwen3.8-Flash-Next on an M5 Ultra it gave me 148.9 tok/s for one stream on a 12.7k-token prompt, twice the 74.4 I had from llama.cpp with MTP on the same machine, and a 128k-token prompt reached its first token in 28.7 s instead of about 87. That is why its new Linux build for NVIDIA GPUs earned a small test here. Both machines ran v26.12.1 with ddalcu’s 8-bit pack on the same harness.
Table 5. mlx-serve v26.12.1, Qwen4-35B-A3B 8-bit, tokens per second.
| Machine | Decode c=1 | Aggregate c=1 / 2 / 4 / 8 | Prefill 128k | TTFT at 128k |
|---|---|---|---|---|
| M5 Ultra (Metal) | 153.7 | 156 / 203 / 245 / 304 | 4.6k | 27.6 s |
| RTX PRO 6000, CUDA build | 42.3 | 41 / 42 / 67 / 94 | 1.39k | 92.4 s |
On the Mac, where the engine is at home, Qwen4-35B-A3B decodes at 153.7 tok/s. MTP is worth 14% of that with one request (134.1 without) and nothing from four requests up. Short greedy code answers run at 304 tok/s per stream, with 50 of 50 on GSM8K. The --ple-gpu flag moves the table gather to the GPU and buys 8.7% single-stream (167.0) while peak GPU memory in use goes from 46 to 93 GB. The Mac stays what the M5 Ultra and RTX PRO 6000 comparison found it to be, a machine for one person’s agent turns: at eight requests it aggregates 304 tok/s where vLLM on the card reaches 1,033.
On the card the CUDA build loads the same pack and answers correctly (49 of 50 on GSM8K, 95 tok/s on the short code answers), at 42.3 tok/s for one stream. That is about a quarter of vLLM’s slowest arm on the same card. A 128k prompt takes 92.4 s to reach its first token. --ple-gpu has no effect there, since the table stays memory-mapped and gathered on the CPU, the build exposes no MTP counters, and it loads the DFlash2 drafter config and then serves without it. None of that takes anything away from the work. This is a young port of an engine built for Metal, and the numbers are its starting point. The design that works so well on the Mac is all there, and I expect great results on CUDA as soon as the code on that side gets the same breadth. For serving on this card today the answer is still vLLM, and I’ll be glad to rerun this test as the port matures.
Three Tiers for the N-Gram Table: What Happened
Now the test this note opened with. Same card, same official FP8 checkpoint, MTP on, and only one thing changed between runs: where the n-gram table lives. To keep the numbers close to what a person would feel, the table below turns them into three everyday situations: one user waiting for a long answer, eight users sharing the card, and someone dropping a very large document into the prompt.
Table 6. The same model with its n-gram table in three places.
| Tier 1: VRAM | Tier 2: host RAM (default) | Tier 3: NVMe | |
|---|---|---|---|
| One user, a 2,200-token answer | 11.1 s (197.9 tok/s) | 11.1 s (197.8 tok/s) | 11.5 s (191.8 tok/s) |
| Eight users at once, total output | 720 tok/s | 713 tok/s | 652 tok/s |
| A 128k-token prompt, wait for the first word | 5.79 s | 5.82 s | 9.10 s |
| Room left on the card for conversations (KV cache) | 33.5 GiB | 52.6 GiB | 52.6 GiB |
| Host memory the table holds | none | about 24 GB, pinned | none pinned |
It did not go the way I expected. Tier 1 and tier 2 are the same machine as far as a user can tell: the long answer arrives in the same 11.1 seconds, eight users get 720 against 713 tokens per second, and the big prompt starts answering three hundredths of a second sooner. A gap of 28 times on paper turned into nothing I could measure.
The reason is that bandwidth is a ceiling, and this workload never gets near it. The model’s config says how little a lookup is: 16 rows per token (bigrams and trigrams, 8 hash heads each) at 128 bytes a row, about 2 KB per token. At the fastest rate this card reached, 22,000 prompt tokens per second, that is 45 MB/s on a link built for 63 GB/s, less than a tenth of one percent. The link would only fill at around 30 million tokens per second. Meanwhile the expert weights that same token reads are far larger and sit in VRAM in every tier. And vLLM is smart about the trip: the rows a token needs depend only on the token ids, which are known before the first layer runs, so it fetches them ahead of time on a side stream while the card is busy with the layers before the lookup. The walk across PCIe happens while nobody is waiting for it.
Think of a dictionary while you write. In tier 2 it is on a shelf in the next room, and someone brings you the page you need while you are still finishing the previous sentence, so you never stop. Tier 1 puts the dictionary on your desk, where it covers the space your drafts were spread on.
That is the real trade-off, and it goes against tier 1. The table takes 19 GiB of VRAM, so the room left for conversations drops from 52.6 to 33.5 GiB, 36% less. That room is what decides how many users and how much context the card can hold at once. Tier 1 buys a speed-up that never shows up, and pays for it with the one resource a serving card is always short of.
Tier 3 is where the path finally shows. One user barely notices, 11.5 seconds instead of 11.1. Eight users lose about 9% of their total output. The big document is where it hurts: 9.10 seconds before the first word instead of 5.82, more than half again as long, because a long prompt needs rows for every one of its tokens at once and nothing can be fetched ahead. What tier 3 buys is host memory. Nothing is pinned, and the operating system keeps the rows it has already read in its file cache, which it can give back when something else needs the memory. That also means my tier 3 numbers are the friendly case, with warm files, and a cold drive would do worse. It is a fair option for a host that is short on RAM and serves short prompts.
So tier 2 stays. vLLM’s default is the right one on this card: the speed of tier 1 and all of the card’s memory left for the people using it. I wanted tier 1 to win. I’m glad I measured it before I believed it.
Qwen4 as Local AI on One GPU: The Verdict
Let me say it plainly. For agentic runs at low concurrency, hosting the n-gram table in VRAM is a luxury. And when the tasks are usually small, as local agent turns and coding mostly are, the trade-off between RAM and NVMe is likely imperceptible too, with the kernel’s file cache filling up as you go.
There is a limit somewhere, and I’ll cook up some future tests to find where the placement between VRAM and RAM starts to matter. The trip to host memory is not free. A DRAM access is around 100 nanoseconds, and a round trip over PCIe adds somewhere between hundreds of nanoseconds and a few microseconds. Now compare that with how long the card works on each step. In the tier 2 run it produced 197.8 tokens per second while accepting 2.31 tokens per step, which puts one decode step at about 12 milliseconds‡. That is thousands of times longer than the trip, and vLLM hides the trip behind it. The fixed cost is invisible.
And keep in mind which card this is: nothing NVIDIA sells outside a data center has faster memory. If the gap between VRAM and host RAM were going to show anywhere on a desk, it would show here.
‡Estimated, not measured directly: 197.8 tokens per second divided by an acceptance length of 2.31 tokens per step gives about 86 steps per second, or 11.7 ms per step, on the FP8 checkpoint with MTP at k=3.
What can show up is jitter. On a host that is busy with other work, some of those trips come back late, and that lands on the tail latency, the slowest requests, long before it moves an average. That is a problem for heavily loaded hosts serving at huge concurrency. With a ceiling of 96 GB of VRAM on a single serving GPU, I doubt those limits ever get touched.
So this is how I’m serving Qwen4-35B-A3B on a workstation today: vLLM, the NVFP4 checkpoint with MTP at three draft tokens, the n-gram table in host RAM where vLLM puts it, and every gigabyte of VRAM left for the people using it. That is the setup behind the 243 tokens per second for one user and the 1,033 across eight.
Edit: The b12x Run
Added late on 4 December. The b12x run for NVFP4 finished after the rest of this note was written, so here it is. It used --moe-backend b12x, with the experts computed in 4-bit weights and 4-bit activations on this card’s own kernels, on two NVFP4 checkpoints: RadixArk’s, and the one from local-inference-lab, which was built for vLLM and also puts the attention projections in MXFP8. This was a shorter check than the main benchmark: six correctness probes, then one 1,000-token generation per configuration. Read these numbers next to each other, not next to Table 4.
Table 7. NVFP4 on two kernels, short check, tokens per second.
| Checkpoint | Kernel | MTP | Probes correct | tok/s |
|---|---|---|---|---|
| RadixArk NVFP4 | b12x | off | 6 of 6 | 187.9 |
| local-inference-lab NVFP4 | Marlin | off | 6 of 6 | 202.4 |
| local-inference-lab NVFP4 | b12x | k=3 | 6 of 6 | 243.8 |
The conclusion is a calm one. b12x serves this model correctly on the card with both weights and activations in 4 bits, and in this check it lands in the same range as the Marlin fallback instead of opening a gap over it. For a model with 3B active parameters on one card, the kernel is not where the remaining speed is. I’ll put b12x through the full benchmark next and add it to Table 4.