Benchmarks & Comparisons8 min read

Qwen4-35B-A3B on an H200 and Two RTX 5090s: 310 tok/s Alone, 6,500 at 128, a 479k Prompt in 15 s

Qwen4-35B-A3B came out on 4 December and we had it serving the same day. We measured it with vLLM in FP8 on one H200 NVL and on a pair of RTX 5090s: speed from 1 to 128 concurrent requests, prompts up to 479k tokens, how much context fits, what the MTP draft tokens buy, and what a million tokens costs on each. The recipe is included.

310 tok/s
one request on one H200, 255 on two RTX 5090s
6,510 tok/s
in total at 128 concurrent requests on the H200
15.2 s
to the first token on a 479k-token prompt
7 million
tokens of KV cache on one H200, in FP8
Qwen4-35B-A3B, 310 tokens per second on one H200 and 6,510 in total at 128, over an AI-generated long exposure of light trails on a desert highway at dusk

Qwen4-35B-A3B came out on 4 December, the first open model of the Qwen4 family, under Apache 2.0. It is a mixture of experts: 35 billion parameters in all, about 3 billion active for each token, with vision and a native context of a million tokens. Qwen publishes an official FP8 checkpoint and a vLLM recipe with it.

A model that reads only 3B parameters a token should be fast and cheap to serve, and a 35B one should still fit on hardware people can rent. We put it on the inference API the same day, on two kinds of machine, and measured both: one H200 NVL (141 GB) and a pair of RTX 5090s (2x 32 GB).

What we measured

vLLM, FP8 weights, FP8 KV cache, MTP with 3 draft tokens. Each request streams 600 tokens from a short prompt:

Concurrent requestsH200, in totalH200, each request2x RTX 5090, in total2x RTX 5090, each request
1280299 to 334250246 to 264
81,4662131,000132
162,3581661,47098
323,5131321,44081
645,210901,67982
1286,510571,71281

Output tokens a second. Time to the first token stayed under 0.9 s on the H200 at every load. On the 5090s it was 0.09 s alone and 0.18 s at 32, then requests started to queue: 7.6 s median at 64, 15.7 s at 128.

One long promptH200: first tokenthen2x RTX 5090: first tokenthen
12,000 tokens0.54 s301 tok/s0.87 s245 tok/s
48,000 tokens1.55 s308 tok/s3.15 s263 tok/s
120,000 tokens7.89 s259 tok/s
192,000 tokens5.90 s308 tok/s
374,000 tokens11.74 s300 tok/s
479,000 tokens15.20 s309 tok/s
MemoryH200 NVL2x RTX 5090
Weights, FP837.3 GiBsplit over both cards
KV cache left85.5 GiB, 6,963,569 tokens7.7 GiB a card, 629,450 tokens
Context window we serve512k256k

What that means:

  • One request runs at about 300 tokens a second on the H200 and 255 on the 5090s. For comparison, the dense Qwen3.8-27B gave 170 on the same H200 and 150 on two 5090s. Reading 3B parameters a token instead of 27B is most of the difference.
  • The length of the prompt does not slow the answer down. On the H200 the speed after the first token was the same at 479,000 tokens of context as at 12,000. Prefill ran at about 31,000 tokens a second on the H200 and 15,000 on the 5090s, so a whole codebase or a long contract is read in seconds.
  • The H200 keeps scaling, the 5090s stop at about 32. Past that, a pair of consumer cards adds no throughput and only makes requests wait. The H200 was still growing at 128, with every request above 50 tokens a second.
  • Context is cheap on this model. One H200 holds seven million tokens of KV cache: thirteen requests at the full 512k at once, or thousands of ordinary chats. The 5090s hold 629k, enough for 256k windows with room for a few more requests beside them.

What the MTP draft tokens buy

The recipe turns on Qwen4's multi-token prediction: the model guesses 3 tokens ahead and vLLM checks them in the same step. Over these runs about 36% of drafted tokens were accepted, so each step produced 2.1 tokens on average instead of 1, the same on both machines. The first guess was right most often, the third rarely. Text that repeats more, like code edits or structured output, usually does better than our generated prose.

What it costs

At the catalogue rental price on the day, if you run it yourself and keep it busy:

One request at a timeUnder full loadPer million output tokens, full load
H200 NVL, $3.80/h1.1 M tokens/h23.4 M tokens/h (128)about $0.16
2x RTX 5090, $1.10/h0.9 M tokens/h6.2 M tokens/h (64)about $0.18

Per token at full load, the two cost about the same. The difference is what the load looks like: the pair of 5090s is the cheaper machine for one user or a small team ($1.10 an hour for 255 tokens a second), and the H200 is the one for many users at once or for prompts beyond 256k.

How to run it

On a rented machine with Docker (an H200, or two RTX 5090s), our settings on top of the official recipe:

docker run --gpus all --ipc=host -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e VLLM_USE_RUST_FRONTEND=1 \
  vllm/vllm-openai:qwen4 \
  Qwen/Qwen4-35B-A3B-FP8 --served-model-name qwen4 \
  --trust-remote-code --enable-prefix-caching \
  --max-model-len 524288 --gpu-memory-utilization 0.92 \
  --kv-cache-dtype fp8 --attention-config.indexer_kv_dtype fp8 \
  --speculative-config '{"method":"mtp","num_speculative_tokens":3,"index_share_for_mtp_iteration":true}' \
  --enable-auto-tool-choice --tool-call-parser qwen4 --reasoning-parser qwen4

On two RTX 5090s add --tensor-parallel-size 2 and use --max-model-len 262144.

Things to know before you start:

  • The first start downloads about 40 GB. vLLM prints nothing while it does: after "Initializing model" it can sit silent for 15 to 20 minutes on an ordinary connection (842 s of download on the 5090 machine, about 21 minutes to load on the H200). Starts after that, with the weights on disk, take about 3 minutes.
  • FP8 KV cache instead of the recipe's NVFP4. NVFP4 is a Blackwell feature; an H200 does not have it, and FP8 runs on Ada, Hopper and Blackwell alike.
  • Plan on about 64 GB of VRAM. The weights take 37 GiB, and a 256k window wants the rest of two 32 GB cards. We did not measure anything smaller.
  • Host RAM matters too. The recipe offloads a 20.5 GB n-gram table to system memory, so give the machine at least 32 GB of RAM.

Or use it on the API

It is on the ParalonCloud API as qwen4-35b-a3b, OpenAI-compatible, with tool calling, JSON mode, images in the prompt and the reasoning returned apart from the answer. It also answers on /v1/messages (Anthropic's format) and /v1/responses. Measured through the public API, one request at a time: 251 tokens a second median over 14 runs, the first token in 0.17 s.

curl https://paraloncloud.com/v1/chat/completions \
  -H "Authorization: Bearer $PARALON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"qwen4-35b-a3b","messages":[{"role":"user","content":"Hello"}]}'

It costs $0.08 per million input tokens and $0.42 per million output tokens (pricing), billed by the token with nothing to keep running. Running it yourself is cheaper per token only while the machine stays busy: at one request at a time, the H200 above works out at about $3.40 per million output tokens and the 5090 pair at about $1.20.

Good to know

  • We measured speed, not quality. For how the model scores, see Qwen's card.
  • Our prompts were generated text, and every request had a fresh prefix. Real chats and coding agents repeat most of their prompt from one turn to the next, so vLLM's prefix cache makes their first token come faster than in our tables.
  • The 5090 pair was measured with a 128k window, the one its worker started with that day; the long-prompt row stops at 120k for that reason. The window does not change the speed of shorter requests: the memory for context is set aside either way.
  • The image is a preview build (vllm/vllm-openai:qwen4), made for this release. Pin the digest when you deploy it.

The scripts and the raw output of every run: concurrency.py, long_prompt.py, results.txt.

Want the hardware? Rent an H200 or an RTX 5090, billed by the minute.

Run it yourself

Rent an H200 NVL by the minute

From $3.00 an hour, billed for the minutes it runs, on a machine we benchmarked before listing it. No contract.

Keep reading

Related articles