Skip to content
Peter Styk HPC & AI Platform Engineer

Project · Serving on one GPU

Qwen3.8-27B on one GPU: 588 streams, over 4,000 tokens a second

One model, one card, one evening: Qwen3.8-27B served by vLLM on a single AMD Instinct MI300X, measured for one person, for hundreds at once, and past its limits. Each finding answers one question from the data of one run.

The four questionsAll findingsThe videos

What the study asks

Four questions, each answered with a measured number

01For one person

02For hundreds at once

03What gives first

04Which switch matters

The machine

Seven parts inside one card

Every finding leans on some of these parts: streams come in, each engine step reads prompts (prefill) and writes answers (decode), attention looks back over the context, the cache holds it, and the compute units do the arithmetic.

The map of the server in the series. Clients send streams into one AMD Instinct MI300X running Qwen3.8-27B on vLLM 0.27.1. Inside the card, left to right: streams, engine step, prefill and decode, attention, cache, compute units. Below it, the host CPU with 20 cores.
The machine every episode opens onDownload SVG

Keep in mind

What this study does not say

  • Speed and behaviour only: the prompts are synthetic, so nothing here says how good the answers are.
  • One card on one evening: the card is the AMD Instinct MI300X; the machine around it has an Intel Xeon CPU with 20 virtual cores.
  • A count such as 588 streams belongs to its settings (kernel, memory share, prompt length), not to the card.

Findings in this project

What the measurements showed

One question per report, answered from the data of one run, each readable here in full.

The same results, a minute each

Videos

The whole series
01 Across runs 1:04 One evening in six numbers The series in a minute: one card, one evening, six measured numbers, from one stream's 56.2 answer tokens a second to a prompt of 990,000 tokens and 5,519 requests with 2 turned away. 02 Across runs 1:07 The stack: what is inside the box What is inside the box, from the model down to the card: the model's weights take 26.6% of the card's memory and most of the rest is kept for conversations. 03 Run 1:04 Nothing tuned: one stream, then 256 Out of the box, nothing tuned: one stream gets 56.2 answer tokens a second; 256 streams together get 23.6 times that, while each stream slows to 5.2. 04 Across runs 1:01 Saturation: 2,048 asked, 588 at once I asked one server for 2,048 conversations at once. It ran 588, kept the rest waiting in line, and refused nobody. 05 Across runs 1:09 The cache: every stream takes the same big slice 588 short requests fill the whole cache: each running stream takes about 3,106 slots, of which at most 576 are its own tokens. 06 Across runs 1:03 Overload: it costs time, not requests Twelve requests a second, more than the server can finish: nobody is refused, a line forms, and the backlog of 813 is gone 81 seconds after arrivals stop. 07 Run 1:04 Six staged loads, one server One server, six staged loads, 5,519 requests. It turned away 2: the two prompts I made too long for the model to read. 08 Across runs 1:06 Prefill against decode: a long prompt slows the model twice A long prompt slows the model twice: first while it is read, then on every token it writes. At full context the answer comes at 1.8 tokens a second, down from 43.6. 09 Run 1:02 The fast kernel: the default is the slowest of four The attention kernel the install picks by itself is the slowest of four. AMD's flash-attention kernel writes 14.8 times faster at 128,000 tokens of context. 10 Run 1:10 The portable kernel still beats the default A third attention kernel, one written for no card in particular. At 128,000 tokens of context it still writes 10.2 times faster than the default; the wait for the first token barely changes. 11 Run 1:03 The full ladder: at full context, 24.7× faster The model's full context, 262,000 tokens, with one switch changed: the answer is written 24.7 times faster and the first token comes 4 times sooner. 12 Run 1:13 A million tokens: it works, after twelve minutes A prompt of 990,000 tokens, 3.7 times the model's own limit. It works: the first token takes 12 minutes 26 seconds, then the answer is written at 26.4 tokens a second. 13 Run 1:10 What the card is doing Every instrument switched on: the card is never idle, with one stream or 256, and still its arithmetic runs at 23.3% of AMD's stated peak (vLLM's estimate). 14 Across runs 1:04 Memory or math What does the card run short of? One stream uses about half its memory traffic and 1% of its arithmetic; 256 streams turn that around (vLLM's estimates). 15 Across runs 1:05 The CPU: 20 cores, about 2 in use Beside the card sit 20 CPU cores. The server uses about 2 of them, with one stream and with 256. 16 Run 1:07 Half the card Half of the card's 304 compute units switched off: one stream is 8.3% slower, 256 streams 32.5% slower. 17 Run 1:11 A quarter of the card A quarter of the card left on: one stream keeps 82.2% of its speed, a crowd keeps 38.6%. 18 Run 1:09 The switch that’s off: AMD’s kernels, switched on AMD's own kernels ship switched off. Switched on, 32 streams gained 0.3%, because the switch never reached the kernel that reads the context. 19 Run 1:01 Throughput mode: everything turned up Five throughput settings turned all the way up, one after another. Together they bought 1.9% at 256 streams. 20 Run 1:05 The draft head: a win alone, a loss in a crowd The model can guess three tokens ahead. Alone that is 71.4% faster; with 32 streams at once it is 30.7% slower. 21 Run 1:06 Small steps on the fast kernel A few very long prompts stalled everyone, even on the fast kernel. With smaller engine steps as well, 32 streams got 11.0 times the answer tokens and no silent second. 22 Run 1:06 The fix, everywhere else: what small steps cost the other loads The settings that kept answers moving under a mixed load, replayed on every other load. Nothing else was lost; one thing cost more: the wait for the first token of a 262,000-token prompt, 22.5% longer. 23 Run 1:10 Leave room in the cache Keeping a tenth of the cache free: 21 running streams are thrown out and redone instead of 47, and the longest silence falls from 171 to 72 seconds. 24 Run 1:09 A long common start: read it once Many requests start with the same long text. Asked to, the server reads that start once: sixteen requests at once wait 9.7 seconds at the median instead of 83.1. For this model the switch is off by default. 25 Run 0:55 Died on start: it loaded the weights, already dead A failed start, told straight: the server loaded 51.1 GiB of weights and shut down 155 seconds in, because its front end had refused one setting at the very beginning. 26 Run 0:55 The second try: one setting fewer, dead again The sequel: I removed the setting it refused, and it died again, 151 seconds in, on the model's own chat template. 27 Across runs 1:10 The rig: everything inside one machine How every number in this series was measured: the server, the load and the instruments all inside one machine. Watching cost at most 4.7%.

Other projects

Where else the study goes

All research