Skip to content
Peter Styk HPC & AI Platform Engineer

Reports · Qwen3.8-27B on one AMD Instinct MI300X · Small steps, default kernel

Small steps on the default kernel: more turns at 32 streams, a step every eight seconds above

The mixed load on the default kernel with room for 2,048 tokens in an engine step instead of 8,192. At 32 streams the engine makes three steps in four seconds. Above that the long prompt being read still fills every step: no more than 32 requests run while the load is on.

Test
Small steps, default kernel
Run
20261125T214036Z-series-batch2k

Also as a PDF of 6 pages.

01Overview

If a step that carries a long prompt's bite is slow, make the bite smaller. I gave the engine step room for 2,048 tokens instead of 8,192 and played the same mixed plan. At 32 streams the engine made 0.76 steps a second and the server wrote 18.8 answer tokens a second. Above that it made a step every 8 to 11 seconds, and the prompt being read still took all the room: until the plan stopped sending, no more than 32 requests ran.

  • 0.76 engine steps a second at 32 streams; 0.12 at 128, 0.09 at 256
  • 18.8 answer tokens a second at 32 streams; 8.9 with the long-prompt cap instead, the like-for-like pair
  • 32 requests running at most at 128 and 256 streams, as with large steps
  • 181.3 s until the first long prompt's first token; the same prompt took 83.9 s with large steps
Answer tokens a secondthis run, each secondno controlsmall steps (this run)8 streams32 streams128 streams256 streams0200400Engine steps a secondthis run, each secondno controlsmall steps (this run)02040Prompt tokens read a second (counted when a prompt's reading ends)no controlsmall steps (this run)05,0000306090120150180210seconds since the plan started
Figure 1The four loaded minutes. Colour: this run, with its single seconds thin and grey behind the 7-second centred mean. Grey line: the same plan on the same kernel without the control. Small steps give more engine steps and more answers in the second minute. In the third and fourth both runs lie flat.Source: plan-mixed-overlap/timeline.json of this run and of 20261125T201346Z-series

At 128 and 256 streams the server wrote 3.7 and 2.7 answer tokens a second, with 96 and 224 requests waiting at most. With large steps it wrote 1.6 and 1.1. In the two minutes after the last request was sent small steps did better: 107.4 answer tokens a second against 14.2.

One setting differs from the grey run. At 8 streams both were sent the same 21 requests. After that a closed loop sends each server its own: at 32 streams this run was sent one long prompt and the grey run two, so I write no ratio there. At that stair this run pairs with the other control, which was also sent one.

02How it was run

The machine, and the part that was changed

AMD Instinct MI300XQwen3.8-27B · vLLM 0.27.1streamsengine step0.12 a second at 128this testprefillbites of up to 2,048this testdecodeone token per streamattentionROCM_ATTNcachecompute unitsclientsCPU · 20 cores
Figure 2The card as every document in this series draws it. An engine step carries one new token for every stream that is answering and a bite of a prompt that is being read. This run gives the step a quarter of the room.Source: FACTS.json; summary.json config and plans.plan-mixed-overlap.stages[stage=mix-128]

What differs between the two runs

Room in one engine step 2,048 tokens here; 8,192 in the run before
Long-prompt cap none in both
Attention kernel ROCM_ATTN in both, by vLLM's own preference order
Cache 1,831,905 token slots here; 1,826,476 before
The run before 20261125T201346Z-series

The plan

  1. Four stages of 60 seconds: 8, 32, 128, then 256 requests kept open. A new one starts only when one ends.
  2. Each request draws its prompt from a mix: 70% short (256 to 2,000 tokens), 25% medium (4,000 to 16,000), 5% long (32,000 to 64,000); answers of 64 to 1,024 tokens.
  3. Then 120 seconds with no new requests; what is still open after that is closed by the load generator.

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 20261125T214036Z-series-batch2k, started 2026-11-25T21:40:49Z, server ready after 182 s
streams asked for832128256no control0266small steps0176the cap0176darker = more: long prompts sent in that minute
Figure 3Long prompts sent in each minute, in the three runs on the default kernel. Rows that agree carried a like load in that minute. At 32 streams the two controls agree with each other, not with the run without one.Source: plan-mixed-overlap/requests.jsonl of the three runs (stage, asked_in)

The plan is a closed loop: a new request is sent when one ends, so the moment each is sent depends on the server. Request number N has the same lengths in every run. "Ended inside the plan" is a fact about each run, not a ratio between runs.

One engine step, no control: room for 8,192 tokensstreams that are answeringeach takes one token of the stepa long prompt being readtakes what is left: a bite of upto 8,192 tokensthe step ends20.00 s later at 128 streams: onemore token for every streamthe linewhat did not fit waits for thenext stepOne engine step, small steps: room for 2,048 tokensstreams that are answeringeach takes one token of the stepa long prompt being readtakes what is left: a bite of upto 2,048 tokensthe step ends8.33 s later at 128 streams: onemore token for every streamthe linewhat did not fit waits for thenext step
Figure 4What one engine step holds in the two runs. The time is computed: one second divided by the engine steps a second at 128 streams.Source: each run's summary.json (config, plans.plan-mixed-overlap.stages[stage=mix-128].engine_steps_per_s); FACTS.json

03Stage by stage

Minute by minute, with and without the control

a second in which at least one answer token left the servera second with none, for anyone8 streams, no control7 of 60 silent8 streams, small steps2 of 60 silent32 streams, no control45 of 60 silent32 streams, small steps34 of 60 silent128 streams, no control57 of 60 silent128 streams, small steps53 of 60 silent256 streams, no control58 of 60 silent256 streams, small steps55 of 60 silent0102030405060seconds into the minute
Figure 5Every second of the four loaded minutes in both runs. The first minute is the same 21 requests in both. The rows at 32 streams are not like for like: one long prompt here, two in the other run. With small steps the second minute has more seconds with an answer token; the third and fourth hardly any.Source: plan-mixed-overlap/timeline.json of both runs (output_tok_s per one-second row)
Answer tokens a second, all streams togetherno controlsmall steps8 streams144.6128 streams3.7256 streams2.7050100150
Figure 6Answer tokens a second in the three minutes in which both runs were sent about as many long prompts.Source: both runs' summary.json stages[].server_output_tok_s
Engine steps a second (log scale)no controlsmall steps8 streams18.19128 streams0.12256 streams0.090.0100.100110100
Figure 7Engine steps a second in the same minutes. Every running stream gets one token per step.Source: both runs' summary.json stages[].engine_steps_per_s

The exact record of both runs

answer tokens/sprompt tokens/sengine steps/sseconds with no answer tokenrunning at mostwaiting at mostcache at most, %first token, median srequests sentcard, W
8 streams
no control158.81,06619.917 of 60803.70.6921413
small steps144.61,03318.192 of 60803.70.4921405
32 streams
no control6.31,1040.2445 of 60321813.55.5725505
small steps18.81,0600.7634 of 60321912.05.6424432
128 streams
no control1.69430.0557 of 60329614.9≥ 211.9396366
small steps3.700.1253 of 60329612.8≥ 172.3896312
256 streams
no control1.100.0358 of 603222415.8≥ 179.91128303
small steps2.700.0955 of 603222413.3≥ 179.90128305
drain: no new requests
no control14.22,2040.2493 of 1219622437.8-0359
small steps107.43,0001.4120 of 12111122341.6-0460

From each run's summary.json; seconds with no answer token are counted from its timeline.json. Tinted rows are this run. A stage row spans 59 s of its 60 s. The server counts a prompt's tokens when its reading ends. Running and waiting are the server's gauges, which move only when a step ends: with steps this long they are often old.

Like for like at 32 streams: the two controls, one long prompt each

at 32 streamsanswer tokens/sengine steps/sseconds with no answer tokenfirst token, median srunning at most
small steps18.80.7634 of 605.6432
the cap8.90.3340 of 604.3132

04The mechanism

Four times the steps for the same prompt, and nothing else gets in

room in a step, tokenscap on one prompt per stepthe prompt, tokenssent at secondits first answer token after, sengine steps in betweenanswer tokens written meanwhile, for everyonethat is, a second
no control8,192none54,6986083.9153954.7
small steps2,048none54,69860181.3601,5918.8
the cap8,1922,04854,69860119.0331,0919.2

The first long prompt of the plan is the same request in every run and was sent in the same second. Steps and answer tokens are counted from each run's timeline.json between its sending and its first token (computed). The tinted row is this run.

Seconds per engine step: no control832128256drain0.01 s0.1 s1 s10 s100 s060120180240300360seconds since the plan started
Figure 8Without the control: from the moment a long prompt is read, a step takes seconds, then tens of seconds.Source: timeline.json of 20261125T201346Z-series (steps_s)
Seconds per engine step: small steps832128256drain0.01 s0.1 s1 s10 s100 s060120180240300360seconds since the plan started
Figure 9With small steps: while the first long prompt is read, from second 73 to 241, each step takes as long as the one before or longer, from 1 second to 12. In the drain a step takes half a second at the median. Computed from the step counter: one second divided by the steps in it, or the seconds since the last step.Source: plan-mixed-overlap/timeline.json (steps_s)

The same prompt of 54,698 tokens, sent in the same second: with small steps its first token came after 181.3 s, with large steps after 83.9 s. Meanwhile the engine made four times the steps, each as long as the one before or longer, and the server wrote about twice the answer tokens a second for everyone: still under ten.

A prompt of 54,698 tokens is 26.7 bites of 2,048 and 6.7 bites of 8,192. Its reading took 2.1 times as long.

My reading: a smaller step gives the answering streams more turns, but the prompt being read needs four times as many of them, and on this kernel each still takes long. While it is read it takes all of every step, so nothing else is let in: the server never ran more than 32 requests before the drain.

The size of a bite is the server's setting. Its "tokens per step" counter is not the bite: it counts a whole prompt in the step that finishes reading it.

05The requests

What the clients saw

Every request: no controlat 8: 21at 32: 25at 128: 96at 256: 128832128256drain060120180240300360seconds since the plan started
Figure 10Every request of the run without the control as one line, in the order sent. Violet: no answer token yet. Blue: answering. Green dot: ended well. Black dot: a long prompt.Source: requests.jsonl of 20261125T201346Z-series
Every request: small stepsat 8: 21at 32: 24at 128: 96at 256: 128832128256drain060120180240300360seconds since the plan started
Figure 11The same for this run. The requests sent at 32 streams answer a little faster, and a few of them end. Those sent at 256 streams wait as before.Source: plan-mixed-overlap/requests.jsonl (t_sent, t_first, t_end, end)
requests sentlong prompts among themfirst token, median slongest, sended inside the plancut while answeringcut before a first token
sent at 8 streams
no control2100.75.01470
small steps2100.56.11650
sent at 32 streams
no control2525.6188.30250
small steps2415.6181.33210
sent at 128 streams
no control966209.8236.006333
small steps967171.8225.08817
sent at 256 streams
no control1286--00128
small steps1286--00128
all requests of the plan
no control27014187.2236.01495161
small steps26914166.1225.027107135

From each run's requests.jsonl. Tinted rows are this run. 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, so with steps seconds apart a first-token time can be a step or two late.

With small steps 11 of the 248 requests sent after the first minute ended inside the plan. None of the 128 sent at 256 streams got a first token, and 7 of the 96 sent at 128 streams did not.

Requests "cut at the end of the plan" (242 here) are not refusals and not failures: the load generator closed them when the plan's time was over. All 269 requests got HTTP 200.

06Underneath, and what it means

The card waits here too

Card power, watts (AMD's exporter)no controlsmall steps (this run)8 streams32 streams128 streams256 streamsdrain: no new requests0500Cache in use, %no controlsmall steps (this run)050100Requests running (the server's gauge)no controlsmall steps (this run)050100060120180240300360seconds since the plan started
Figure 12Both runs over the whole plan. Grey: without the control. Colour: this run. Power is AMD's device exporter, which refreshes every 11 to 16 s; cache and running are the server's gauges.Source: plan-mixed-overlap/timeline.json of both runs (watts, cache_percent, running)

At 128 and 256 streams the card drew 312 and 305 W, with its matrix units 0.2% and 0.2% in use. With large steps: 366 and 303 W.

In the drain the engine made 1.41 steps a second with small steps and 0.24 with large ones, and up to 111 requests ran.

What I take from it

  • At 32 streams small steps give 0.76 engine steps a second and 18.8 answer tokens a second; the cap, in the like-for-like minute, 0.33 and 8.9.
  • Above 32 streams the engine makes a step every eight to eleven seconds and, while the load is on, runs no more than 32 requests.
  • The long prompt itself is read more slowly: 181.3 s instead of 83.9 for the same prompt.
  • Smaller steps mean more turns for the streams and more steps for the prompt; on this kernel each step still takes long.

Not results, and limits

  • At 32 streams this run and the run without the control were not sent the same long prompts; no ratio is written there.
  • A closed loop: "ended inside the plan" is a fact about each run. The bench has a second plan with the same requests at the same moments for every server.
  • Default attention kernel throughout. Prompts are random tokens; nothing here is about the quality of an answer.

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.
Chunked prefill
a long prompt is read in bites across several engine steps, at most max_num_batched_tokens (8,192 here by default) per step for all requests together.

Every number in this document was read from these files at build time (sha256, first 12 characters):

FACTS.json 160f5ca0d495 · GLOSSARY.md 98323be796af · 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/plan-mixed-overlap/timeline.json 37662cd0f155 · 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/plan-mixed-overlap/timeline.json ced017b86f78 · runs/20261125T214036Z-series-batch2k/summary.json 3d4fa8438e60

90 values bound by path, 12 figures drawn from data.

Supporting material · PDF

The report as a document

6 pages · A4 · 608 KB · every number traced to its run file

Download the PDF