Reports · Qwen3.8-27B on one AMD Instinct MI300X · Mixed lengths
One long prompt among 32 streams, and everyone's answer stops
Short, medium and a few very long prompts sent together. With 8 streams the server writes 158 answer tokens a second. With 32, one prompt of 54,698 tokens is being read, the engine makes a step every four seconds, and all streams together get 6.
- Test
- Mixed lengths
- Run
20261125T201346Z-series
Also as a one-minute video and a PDF of 7 pages.
01Overview
I sent one server a mix of prompts, 70% short, 25% medium and 5% very long, and raised the streams kept open from 8 to 32, 128 and 256. With 8 streams it wrote 158.8 answer tokens a second. In the second minute one prompt of 54,698 tokens was being read among 32 streams: the engine made a step every 4 seconds, and all 32 streams together got 6.3 answer tokens a second. Above that it was about one.
- 6.3 answer tokens a second for 32 streams together; 158.8 with 8
- 0.24 engine steps a second at 32 streams; 19.91 at 8
- 45 of 60 seconds at 32 streams with no answer token for anyone
- 14 of 270 requests ended inside the plan; none was refused, none failed
In the third and fourth minutes the server ran 32 requests and no more, though it allows 1,024 and its cache was 15.8% full. The rest waited, 224 of them by the end of the fourth minute, and the server's reason for every one was "capacity".
Nothing was refused and nothing failed: all 270 requests got HTTP 200. 14 ended inside the plan; 256 were still open when its time ran out and were closed by the load generator.
The machine, and the three parts this test leans on
The plan
- Four stages of 60 seconds, back to back: 8, 32, 128, then 256 requests kept open. A new one starts only when one ends.
- Every request draws its prompt length from a mix: 70% short (256 to 2,000 tokens), 25% medium (4,000 to 16,000), 5% long (32,000 to 64,000). Its answer is forced to a length between 64 and 1,024 tokens.
- Prompts are random token ids, so no two share a beginning and nothing is reused between requests.
- After the last stage the generator waits 120 seconds for the open requests, then closes those still open.
- Beside it a sampler reads the server's counters, the card and the CPU once a second.
Settings
| Model | Qwen3.8-27B: 27.8 billion parameters, BF16 weights, 262,144 tokens of context |
| Card | one AMD Instinct MI300X: 304 compute units, 191.7 GiB of memory |
| Server | vLLM 0.27.1+rocm723, ROCm 7.2.3, PyTorch 2.11.0+gitd0c8b1f |
| Machine | a cloud GPU virtual machine: 20 virtual cores, Intel Xeon Platinum 8568Y+ |
| This run | 20261125T201346Z-series, started 2026-11-25T20:13:59Z, server ready after 94 s |
| Attention kernel | ROCM_ATTN, by vLLM's own preference order |
| Room in one engine step | 8,192 tokens, the default on this card |
| Stream slots | 1,024 |
| Cache | 1,826,476 token slots |
The load is made on the same machine as the server and shares its CPU cores; no request leaves the machine. The lengths are drawn in order from one seeded sequence, so request number N has the same lengths in every run of this plan. A faster server ends requests sooner and gets further down the sequence.
Eight streams run. Thirty-two already crawl
The exact record, the server's side
| streams asked for | running at most | waiting at most | answer tokens/s | prompt tokens/s | engine steps/s | engine steps, counted | seconds with no answer token | cache at most, % | TFLOPS, est. | card, W | matrix units, % |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 8 | 8 | 0 | 158.8 | 1,066 | 19.91 | 1,197 | 7 of 60 | 3.7 | 67.2 | 413 | 5.6 |
| 32 | 32 | 18 | 6.3 | 1,104 | 0.24 | 15 | 45 of 60 | 13.5 | 135.1 | 505 | 9.4 |
| 128 | 32 | 96 | 1.6 | 943 | 0.05 | 3 | 57 of 60 | 14.9 | 32.5 | 366 | 0.2 |
| 256 | 32 | 224 | 1.1 | 0 | 0.03 | 2 | 58 of 60 | 15.8 | 26.6 | 303 | 0.1 |
| none new (drain) | 96 | 224 | 14.2 | 2,204 | 0.24 | 28 | 93 of 121 | 37.8 | 117.4 | 359 | 13.6 |
One row per stage from summary.json; a row spans 59 s of its 60 s stage. "Engine steps, counted" and "seconds with no answer token" are from the one-second rows of timeline.json. The server counts a prompt's tokens in the second its reading ends, so the zero in the prompt-tokens column at 256 streams means no prompt was finished in that minute, not that none was read. TFLOPS is vLLM's estimate, too high for long prompts (attention counted in 64 layers, the model has it in 16); power and matrix units are AMD's exporter.
With 8 streams the mix held no long prompt: 15 short and 6 medium ones. Even so, 7 of that minute's seconds passed with no answer token for anyone, each of them between the sending of a medium prompt and its first token.
With 32 streams the engine made 15 steps in the whole minute, then 3 and 2 in the two minutes after. Asking for more streams added nothing: the server kept 32 running and the rest in line.
A step that carries a bite of a long prompt takes seconds, and every stream waits for it
| the prompt being read | sent at second | the prompt before it was read by second | counted as read at second | engine steps in between | seconds each took | first answer token after |
|---|---|---|---|---|---|---|
| 54,698 tokens | 60 | 73 | 143 | 7 | 4 · 11 · 19 · 3 · 3 · 4 · 26 | 83.9 s |
| 56,098 tokens | 108 | 143 | 295 | 7 | 7 · 14 · 21 · 28 · 36 · 44 · 2 | 188.3 s |
Every step while those two prompts were read
| step ended at second | it took, s | answer tokens given | prompt tokens counted as read | cache gauge, % | gauge rose by, token slots | card, W |
|---|---|---|---|---|---|---|
| 73 | 3 | 31 | 12,313 | 10.96 | 8,600 | 631 |
| 77 | 4 | 31 | - | 11.43 | 8,600 | 631 |
| 88 | 11 | 31 | - | 11.85 | 7,700 | 309 |
| 107 | 19 | 31 | - | 12.06 | 3,800 | 447 |
| 110 | 3 | 30 | - | 12.49 | 7,900 | 447 |
| 113 | 3 | 30 | - | 12.96 | 8,600 | 740 |
| 117 | 4 | 30 | - | 13.51 | 10,000 | 740 |
| 143 | 26 | 31 | 54,698 | 13.98 | 8,600 | 326 |
| 150 | 7 | 31 | - | 14.40 | 7,700 | 326 |
| 164 | 14 | 31 | - | 14.87 | 8,600 | 321 |
| 185 | 21 | 31 | - | 15.29 | 7,700 | 305 |
| 213 | 28 | 31 | - | 15.76 | 8,600 | 301 |
| 249 | 36 | 31 | - | 16.23 | 8,600 | 301 |
| 293 | 44 | 31 | - | 17.08 | 15,500 | 303 |
| 295 | 2 | 34 | 58,016 | 17.54 | 8,400 | 303 |
From timeline.json. Tinted: a step in which the server counted prompts as read. The gauge's rise is computed with the cache size (1,826,476 slots), rounded to hundreds.
My reading: every decoding stream gets one token per engine step, so a step that carries a long prompt's prefill bite makes all of them wait. A step has room for 8,192 tokens. The streams that are answering take one each, the prompt being read takes all the rest, and nothing is left to start another request. That would be why the server says "capacity" with its cache 15.8% full.
While the second long prompt was read, the cache gauge rose from 13.98% to 16.23% over five steps: about 8,200 token slots a step, the size of one bite. Each of those steps gave 31 answer tokens: 0.3% of what the step carried.
The server's "tokens per step" counter does not show the bite: it counts a whole prompt in the step that finishes reading it. It reads 31 for most of these steps and 54,729 for the step that finished the first long prompt, so its stage means (4,601 at 32 streams, 18,264 at 128) are not the size of a step.
Not explained: the steps are not equally slow. Three of the first prompt's seven took three or four seconds, with the card drawing 447 W or more. The others took longer the more of the prompt had been read, with the card near 303 W. I cannot say what decides between the two.
What a client saw: a first token, then almost nothing
The exact record, the clients' side
| requests | sent | short | medium | long | first token, median s | longest, s | ended inside the plan | cut while answering | cut before a first token |
|---|---|---|---|---|---|---|---|---|---|
| sent at 8 streams | 21 | 15 | 6 | 0 | 0.7 | 5.0 | 14 | 7 | 0 |
| sent at 32 streams | 25 | 18 | 5 | 2 | 5.6 | 188.3 | 0 | 25 | 0 |
| sent at 128 streams | 96 | 69 | 21 | 6 | 209.8 | 236.0 | 0 | 63 | 33 |
| sent at 256 streams | 128 | 93 | 29 | 6 | - | - | 0 | 0 | 128 |
| all | 270 | 195 | 61 | 14 | 187.2 | 236.0 | 14 | 95 | 161 |
From requests.jsonl. The median and the longest first-token time are over the requests that got a first token. The client takes the first piece of visible text as the first token; a token without visible text sends nothing, so when steps are seconds apart a first-token time can be a step or two late.
All 25 requests sent at 32 streams got a first token. Then each got a token only when a step ended: in the five minutes that followed, none of them received more than 48 pieces of text, of answers that were to be 69 to 843 tokens long.
Of the 96 sent at 128 streams, 63 got a first token, after 176 to 236 s. None of the 128 sent at 256 streams got one.
14 long prompts were sent and the server read two: 54,698 tokens in 83.9 s and 56,098 in 188.3 s. Alone on this same server, a prompt of 64,000 tokens had its first token after 22.0 s.
The 256 requests "cut at the end of the plan" are not refusals and not failures: the load generator closed them when the 120 s after the last stage were over. 95 were in the middle of an answer, 161 had no first token yet. How many ended inside the plan is itself the result.
The same plan with a switch changed: what can be compared, and what cannot
The plan was played on four other servers, and they did not meet the same prompts. It is a closed loop and draws each prompt's length as the request is sent, so a faster server is sent more requests and draws further into the sequence. In the 32-stream minute this run was sent two long prompts, the runs with the cap and with small steps one each, the two fast-kernel runs four each. At that stair only two pairs are like for like: the cap against small steps, and the fast kernel against all three.
| the row, and what differs from this run | attention kernel | requests the plan sent | long prompts among them | ended inside the plan |
|---|---|---|---|---|
| no switch: nothing: this run | ROCM_ATTN | 270 | 14 | 14 |
| the cap: long-prompt cap at 2,048 tokens | ROCM_ATTN | 269 | 14 | 14 |
| small steps: 2,048-token engine steps | ROCM_ATTN | 269 | 14 | 27 |
| fast kernel: fast attention kernel | ROCM_AITER_FA | 297 | 16 | 167 |
| all three: fast attention kernel, 2,048-token engine steps and long-prompt cap | ROCM_AITER_FA | 342 | 17 | 166 |
"What differs" is the cross file's own wording, against the settings of this run. "Ended inside the plan" is a fact about each run, not a comparison between rows: the rows were sent different requests.
Like for like at 32 streams, one long prompt each, default kernel: 8.9 answer tokens a second with the cap, 18.8 with small steps. Four long prompts each, fast kernel: 11.1 with steps of 8,192 tokens, 122.7 with small steps and the cap.
At 128 and 256 streams every run was sent six or seven and six long prompts in the minute; what each still carried from the minute before differs. There the three runs on the default kernel stay under one engine step a second, with or without a control. The two on the fast kernel make 0.88 to 3.46 steps a second.
Even the fast-kernel pair is disturbed at 32 streams. In 27 of that minute's seconds the fast-kernel run's engine process used no CPU: its log shows it building three attention kernels it had not used before (21.7, 3.8 and 3.7 s). The run with all three came later and found them built, so its lead in that minute is larger than the settings alone would give.
"All three" differs from "fast kernel" in two settings, step size and cap, so it cannot say which of the two does the work. The bench has a second plan for this comparison, with the same requests sent at the same moments to every server; its runs are the ones to trust for a ranking.
07Underneath, and what it means
While everyone waited, the card was nearly idle
At 128 and 256 streams the card drew 366 and 303 W, with its matrix units 0.2% and 0.1% in use. At the top of the staircase on this same server it drew 751 W with 50.0% of them in use.
The CPU is not what it waits for: the machine was 10.6% busy and the engine process used 2.0 cores, the same as with one short stream in the staircase (2.0).
What I take from it
- With 5% long prompts in the mix this server falls from 158.8 answer tokens a second at 8 streams to 6.3 at 32 and 1.6 at 128.
- One long prompt at a time is enough. It costs time, not requests: nothing was refused, nothing failed.
- Every decoding stream gets one token per engine step, so a step that carries a long prompt's bite makes all of them wait.
- The slow steps are not heavy work for the card. I read them as the default attention kernel going through a long context narrowly. Not confirmed in the source.
Not results, and limits
- Requests "cut at the end of the plan" were closed by the load generator: not refused, not failed.
- Prompts are random tokens: nothing repeats, and this says nothing about the quality of an answer.
- One plan, one seed, played once. Another seed would place the first long prompt elsewhere.
measured: read from a run file · computed: arithmetic on measured values · estimate: vLLM's, from the model's shape · my reading: interpretation, not measurement
Words used
- Engine step
- one pass of the model over a batch: one new token for every decoding stream, plus a bite of prefill.
- Capacity
- (waiting reason) the server's label for a request it cannot schedule now, because the cache or the step's token budget is used up. Reported in
vllm:num_requests_waiting_by_reason.
Every number in this document was read from these files at build time (sha256, first 12 characters):
FACTS.json 160f5ca0d495 · GLOSSARY.md 98323be796af · cross/mixed.json 4db3ea4c9fb2 · plans/mixed-overlap.json b86c1f4ef044 · runs/20261125T201346Z-series/plan-mixed-overlap/requests.jsonl ec7778099e60 · runs/20261125T201346Z-series/plan-mixed-overlap/t0 f79227400789 · runs/20261125T201346Z-series/plan-mixed-overlap/timeline.json 328dd803edea · runs/20261125T201346Z-series/summary.json aab3940eb12e · runs/20261125T213149Z-series-longprefill2k/plan-mixed-overlap/requests.jsonl 774120396827 · runs/20261125T213149Z-series-longprefill2k/plan-mixed-overlap/t0 c945be467c45 · runs/20261125T213149Z-series-longprefill2k/summary.json 110822c67acb · runs/20261125T214036Z-series-batch2k/plan-mixed-overlap/requests.jsonl d80dc5271519 · runs/20261125T214036Z-series-batch2k/plan-mixed-overlap/t0 fffb5e8db961 · runs/20261125T214036Z-series-batch2k/summary.json 3d4fa8438e60 · runs/20261125T215049Z-series-fa/plan-mixed-overlap/requests.jsonl 694b08ff0653 · runs/20261125T215049Z-series-fa/plan-mixed-overlap/t0 2ee118d3a1b0 · runs/20261125T215049Z-series-fa/plan-mixed-overlap/timeline.json 2136a1e512e7 · runs/20261125T215049Z-series-fa/summary.json ec0c01913c37 · runs/20261125T223438Z-series-fa-batch2k/plan-mixed-overlap/requests.jsonl c524013589a6 · runs/20261125T223438Z-series-fa-batch2k/plan-mixed-overlap/t0 ddda6d548584 · runs/20261125T223438Z-series-fa-batch2k/summary.json 35fa706c2022
118 values bound by path, 15 figures drawn from data.
Supporting material · video
The same result in a minute
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.
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.
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.
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.
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.
Supporting material · PDF
The report as a document
7 pages · A4 · 650 KB · every number traced to its run file