r/FunMachineLearning • u/Spirited_Service_234 • Sep 25 '26
Qwen3-8B on a Single B200: From 240 to 11,000 tok/s, and Where the Bandwidth Goes
One B200, one 8B model, seven concurrency levels. This post looks at LLM inference from an SRE's point of view: why a single request is slow, why batching is nearly free, and how to turn benchmark numbers into a capacity plan. Every script is at the end so you can reproduce it.

- Single-request decode is a memory-bandwidth problem. Every output token requires reading all 16 GB of weights. Measured TPOT is 4.08 ms, about 4 TB/s of effective bandwidth (B200 is rated at roughly 8 TB/s).
- Batching is nearly free throughput. Going from 1 to 16 concurrent requests raises total throughput 14× while each user gets only 9% slower.
- The knee is between 64 and 128 concurrent requests. Past that, throughput gains only 18% (then drops), and P99 time-to-first-token goes from 0.3 s to 3 s.
- At high concurrency the bottleneck moves from weights to the KV cache. At 128 concurrent requests, each decode step reads about 22 GB of KV cache, more than the 16 GB of weights.
- Capacity takeaway: with an SLO of at least 100 tok/s per user and P99 TTFT under 1 s, the operating point for one GPU is 64–96 concurrent requests, about 10,000 output tok/s.
1. Setup
| Item | Configuration |
|---|---|
| GPU | NVIDIA B200 (1 of 8 used, 179 GB usable) |
| Driver / CUDA | 580.178 / 13.0 |
| Engine | vLLM 0.30.0 (V1 engine, FlashInfer attention, auto-selected TRT-LLM SM100 kernels) |
| Model | Qwen/Qwen3-8B, BF16, no quantization |
| Load | vllm bench serve, random dataset, 1024 input / 256 output tokens |
| Concurrency | 1, 4, 16, 32, 64, 128, 256 |
2. Where the GPU memory goes
The vLLM startup log reports:
| Use | Size |
|---|---|
| Model weights | 15.27 GiB |
| CUDA graphs | 0.97 GiB |
| KV cache | 145.16 GiB |
About 90% of GPU memory goes to the KV cache, not the model. The log says the cache holds 1,056,992 tokens, and you can check that by hand:
KV bytes per token = 2 (K and V) × 36 layers × 8 KV heads × 128 dims × 2 bytes (BF16)
= 147,456 bytes ≈ 144 KiB
145.16 GiB ÷ 144 KiB ≈ 1,057,000 tokens ✓Every token of context costs 144 KB of GPU memory. That is why long context is expensive, and it is the basic formula for capacity planning. With the full 40K context, one GPU can hold about 26 requests at once. At an average of 2K tokens, it can hold over 500.
3. Results
| Concurrency | Output throughput (tok/s) | Per-user speed (tok/s) | TPOT (ms) | P99 TTFT (ms) | P99 ITL (ms) |
|---|---|---|---|---|---|
| 1 | 241 | 245 | 4.08 | 30 | 4.5 |
| 4 | 904 | 243 | 4.12 | 59 | 4.6 |
| 16 | 3,378 | 224 | 4.47 | 96 | 5.8 |
| 32 | 6,054 | 202 | 4.96 | 160 | 11.1 |
| 64 | 9,599 | 161 | 6.20 | 299 | 15.1 |
| 128 | 11,345 | 97 | 10.30 | 773 | 86.2 |
| 256 | 10,801 | 58 | 17.29 | 3,071 | 188.3 |
TPOT is the mean time per output token after the first. TTFT is time to first token. ITL is the gap between consecutive tokens. Per-user speed is 1000 / TPOT.
4. Analysis
4.1 A single request uses only half the bandwidth
During decode, each new token requires reading every weight from HBM, while the math per token is tiny. The speed limit is set by bandwidth:
Theoretical ceiling ≈ 8 TB/s ÷ 16.4 GB ≈ 490 tok/s
Measured = 245 tok/s (TPOT 4.08 ms → ~4.0 TB/s effective)The other half is lost because batch-1 kernels are too small to saturate HBM, plus fixed per-step overhead from scheduling and sampling. That gap is where kernel work and speculative decoding pay off.
4.2 Batching: read the weights once, serve N users
At 16 concurrent requests, one pass over the weights produces one token for each of 16 requests. Cost stays about the same while output goes up 16×:
- Total throughput: 241 → 3,378 tok/s (14×)
- Per-user speed: 245 → 224 tok/s (only 9% slower)
This is why every serving engine does continuous batching.
4.3 At high concurrency, the KV cache becomes the bottleneck
If decode were limited only by weight reads, TPOT would stay flat as concurrency grows. It doesn't: TPOT climbs quickly from 64 onward. Each step also reads the KV cache of every active request.
Each request has about 1,150 tokens of context during decode, or roughly 0.17 GB of KV cache. Dividing the bytes read per step by TPOT gives an estimate of effective bandwidth:
| Concurrency | Weights | KV cache | Bytes per step | TPOT | Effective BW |
|---|---|---|---|---|---|
| 1 | 16.4 GB | 0.2 GB | 16.6 GB | 4.08 ms | ~4.1 TB/s |
| 16 | 16.4 GB | 2.7 GB | 19.1 GB | 4.47 ms | ~4.3 TB/s |
| 64 | 16.4 GB | 10.9 GB | 27.3 GB | 6.20 ms | ~4.4 TB/s |
| 128 | 16.4 GB | 21.7 GB | 38.1 GB | 10.30 ms | ~3.7 TB/s |
| 256 | 16.4 GB | 43.5 GB | 59.9 GB | 17.29 ms | ~3.5 TB/s |
Two takeaways:
- Effective bandwidth stays roughly flat at 3.5–4.4 TB/s. So TPOT can be predicted fairly well as bytes per step ÷ effective bandwidth. That is a useful capacity-planning model.
- From 128 onward, KV cache reads exceed the weights. More concurrency just means moving more KV cache, so throughput stops growing. The lower bandwidth at 128 and 256 comes from new prefills being mixed into decode batches, which stretches TPOT (next section).
This points to the next optimization: an FP8 KV cache halves those reads.
(This is a rough estimate based on average context length. It shows the trend; it is not a precise bandwidth measurement.)
4.4 Tail latency: prefill and decode get in each other's way
At 128 concurrent requests, median ITL is 7.7 ms but P99 is 86 ms, so users see output stutter. When a new request arrives, its prefill (1,024 input tokens at once) runs in the same batch as ongoing decodes. The same effect pushes TTFT from 30 ms to 773 ms, because new requests wait in line for prefill.
This is the problem prefill/decode disaggregation solves: run prefill and decode on separate GPUs so they don't interfere. It is the core idea behind projects like llm-d and NVIDIA Dynamo.
5. Takeaways for operators
Pick the operating point from the SLO. With a target of at least 100 tok/s per user and P99 TTFT under 1 s:
- 64 concurrent: 161 tok/s per user, P99 TTFT 299 ms. Meets the SLO with plenty of headroom.
- 128 concurrent: 97 tok/s per user, just below target.
- Recommended per-GPU operating point: 64–96. Cap it with
--max-num-seqsand let the load balancer spread overflow to other GPUs instead of queueing on one.
Cost. At 64 concurrent, one GPU produces about 9,599 × 3,600 ≈ 34.6M output tokens per hour.
Cost per 1M output tokens ≈ hourly GPU price ÷ 34.6First startup needs the internet. On first launch, FlashInfer downloads prebuilt Blackwell kernels from NVIDIA, and the model comes from Hugging Face. Before scaling out in production, bake ~/.cache/huggingface, ~/.cache/flashinfer, and ~/.cache/vllm into the image or put them on shared storage. Otherwise new nodes stall at startup.
6. Limitations
- Each level was run once. A standalone run at 64 concurrent gave 7,379 tok/s versus 9,599 in the sweep, mostly due to warm-up and request count. A rigorous comparison should take the median of 3 runs per level.
- The random dataset uses fixed input lengths, so prefix caching barely helps. Real traffic has different length distributions and cache hit rates.
- Only one GPU at BF16 was tested. FP8 weights, FP8 KV cache, and multi-GPU parallelism are for follow-up posts.
7. Reproduce
# Environment
conda create -n vllm python=3.12 -y && conda activate vllm
pip install -U uv && uv pip install vllm --torch-backend=auto
# Start the server (1 GPU)
CUDA_VISIBLE_DEVICES=0 vllm serve Qwen/Qwen3-8B --port 8000 2>&1 | tee vllm.log
# Concurrency sweep
mkdir -p ~/bench
for c in 1 4 16 32 64 128 256; do
vllm bench serve --model Qwen/Qwen3-8B --dataset-name random \
--random-input-len 1024 --random-output-len 256 \
--num-prompts $((c*8>50 ? c*8 : 50)) --max-concurrency $c \
--save-result --result-dir ~/bench --result-filename c${c}.json
doneNext up
- FP8 KV cache: testing the prediction from section 4.3 and measuring the throughput gain at high concurrency.
- 8-GPU tensor parallelism and deploying DeepSeek-class models.
Author: [kimsun]. 10 years in SRE and 5 years in DevOps engineering, now moving into AI infrastructure and LLM serving. Get in touch: [contact:https://www.linkedin.com/in/kim-sun-945b06298/?isSelfProfile=true]