Skip to content
Peter Styk HPC & AI Platform Engineer

Reports · Qwen3.8-27B on one AMD Instinct MI300X · Baseline level sweep

56 tokens a second for one stream, 1,327 for 256 together

The recipe's own command with nothing changed: the baseline every other run is judged against. 256 streams get 23.6 times the output of one, each of them a tenth of the speed, and wait six seconds on average for a first token.

Test
Baseline level sweep
Run
20261125T184034Z-recipe

Also as a one-minute video and a PDF of 6 pages.

01Overview

I started the server with the vLLM recipe's own command, changed nothing, and asked it for 1, 8, 32, 128 and 256 streams at once: 1,024 tokens in and 256 out, every time. One stream gets 56.2 answer tokens a second. 256 streams together get 1,327.3, 23.6 times as much, while each of them slows to 5.2 a second and waits 6.2 s on average for its first token. Not one of the 1,704 requests failed.

  • 56.2 answer tokens a second for one stream alone first token after 0.14 s
  • 1,327.3 for 256 streams together 6,636.6 a second counting the prompt tokens
  • 23.6 times the output of one stream, from 256 times the streams
  • 5.2 answer tokens a second for each of the 256 first token after 6.2 s on average
05001,000answer tokens a second, all streams together56.21287.18782.7321,210.51281,327.3256streams kept in flight
Figure 1Answer tokens a second for all streams together, by level. Each stair holds more streams than the one before; the last two are almost level.Source: summary.json sweeps.random-1k-256.levels[].output_tok_s (the load tool's result)
0204060answer tokens a second, for each stream1832128256streams kept in flight (log scale)5.256.235.924.59.5
Figure 2The same output divided by the streams: what one stream gets.Source: summary.json sweeps.random-1k-256.levels[].output_tok_s_per_stream

1 stream 56.2 answer tokens a second together, 56.2 each. First token after 0.14 s on average.

8 streams 287.1 answer tokens a second together, 35.9 each. First token after 1.29 s on average.

32 streams 782.7 answer tokens a second together, 24.5 each. First token after 2.10 s on average.

128 streams 1,210.5 answer tokens a second together, 9.5 each. First token after 4.10 s on average.

256 streams 1,327.3 answer tokens a second together, 5.2 each. First token after 6.20 s on average.

The stairs flatten. Four times the streams, from 32 to 128, bring 54.6% more answer tokens a second; twice the streams again, from 128 to 256, bring 9.6% more.

The price is paid by each stream: 56.2 tokens a second alone, 24.5 among 32, 5.2 among 256. A whole request takes 4.6 s alone and 49.2 s among 256.

My reading of the flat top: it is not the card's top for writing answers. In this load four tokens in five are prompt tokens, and while the server takes in prompts it writes almost nothing. The page on why the stairs flatten gives the grounds.

02How it was run

The machine, and the part this test leans on

AMD Instinct MI300XQwen3.8-27B · vLLM 0.27.1streams1 to 256 at oncethis testengine step8,192 tokens at mostprefilldecodeattentioncache1,821,823 token slotscompute unitsclientsCPU · 20 cores
Figure 3The card as every document in this series draws it. This test asks how many streams one card answers at once, and what each gets.Source: FACTS.json; summary.json server.kv_cache_tokens

One loop, repeated

load toolkeeps N requests in flight; a newone starts when one endsthe linerequests not scheduled yetengine steptakes in up to 8,192 prompttokens and writes one token forevery running streamanswerexactly 256 tokens, streamed back
Figure 4A closed loop: the load tool keeps a fixed number of requests in flight, and the server sets the pace.Source: summary.json sweeps.random-1k-256.load_tool_arguments; FACTS.json server_defaults_on_this_card
  1. The server is started with the recipe's own command for one card: no environment switch, no tuning argument.
  2. vLLM's own load tool keeps N requests in flight: N is 1, 8, 32, 128, then 256. A level is 4 requests per stream, at least 8, after 2 warm-up requests.
  3. Every prompt is 1,024 random tokens; every answer is forced to exactly 256. The plain completions endpoint: no chat template.
  4. The server's counters are saved before and after each level, and the card is read every 2 s.

What was played

streams requests failed seconds
1 8 0 36.4 a result
8 32 0 28.5 a result
32 128 0 41.9 a result
128 512 0 108.3 a result
256 1,024 0 197.5 a result
512 stopped: not a result
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 20261125T184034Z-recipe, started 2026-11-25T18:40:34Z, server ready after 197 s

What the server chose by itself

Attention kernel ROCM_ATTN, vLLM's own pick
Tokens per engine step 8,192 at most
Streams at once 1,024 at most
Share of card memory 92.0%, 176.35 GiB
Cache 1,821,823 token slots in 112.41 GiB
Start ready after 197 s, 36.3 s compiling
Card power, watts1 stream8 streams32 streams128 streams256 streams0500Memory read and write activity, %02550060120180240300360420480seconds since the sweep started
Figure 5The sweep on the card's own meter, read every 2 s. Each band is one run of the load tool. Under load the card draws full power at every level, one stream included; at 128 and 256 streams its memory activity moves between two values, which the page on why the stairs flatten explains.Source: random-1k-256/gpu-samples.txt (the card's power and memory activity every 2 s); level marks from c1.t0 to c256.t1

03The record

The exact record

streamsanswer tokens/sper streamwith promptsfirst token s: medianmean99thgap ms: medianmean99threquest sin line sprompt sanswer s
156.256.2281.00.140.140.1417.317.317.84.60.000.134.41
8287.135.91,435.30.931.292.6622.622.923.27.10.001.195.79
32782.724.53,913.32.252.103.7926.132.798.310.50.161.548.30
1281,210.59.56,052.32.924.1014.9847.289.8997.227.01.341.9222.84
2561,327.35.26,636.62.986.2029.5676.6168.71,044.849.23.251.9942.94

One row per level. Tokens a second, first-token times, gaps and whole-request times are the load tool's, measured at the client. The last three columns are the server's own timers per request, warm-up requests included. This early run kept no record per request and no CPU or network samples.

99th percentilemeanmedian0.1110seconds to the first token (log scale)1832128256streams kept in flight (log scale)2.986.2029.6
Figure 6Seconds from sending a request to its first token. The median settles near three seconds; the mean and the slowest requests keep climbing with the level.Source: random-1k-256/c1.json to c256.json (median_ttft_ms, mean_ttft_ms, p99_ttft_ms)
99th percentilemeanmedian101001000milliseconds between two tokens of a stream (log scale)1832128256streams kept in flight (log scale)76.61691,045
Figure 7Milliseconds between two tokens of one stream. The median is one engine step that writes answers only. From 32 streams up the slowest gaps are several times the median, at 128 and 256 streams more than ten times: steps that also take in prompts.Source: random-1k-256/c1.json to c256.json (median_itl_ms, mean_itl_ms, p99_itl_ms)

At 256 streams half of the requests have their first token within 2.98 s, one in ten waits more than 19.0 s and one in a hundred more than 29.6 s. The server's own timers put 3.25 s of that in line and 1.99 s in reading the prompt, per request on average.

A stream among 256 gets a token every 76.6 ms at the median, and waits 864 ms or more for one token in ten. Alone it gets one every 17.3 ms, and its slowest gap is 17.8 ms.

The long waits are the level's start. In the probe run's record of the same level, the first 256 requests arrive together and wait 15.3 s for a first token at the median, 31.0 s at most. The 768 that follow, each starting when another ends, wait 2.95 s at the median and 4.1 s at most. The level's mean mixes the two: 6.2 s there, 6.2 s here.

waiting in linereading the promptwriting the answer010203040seconds per request, the server's own timers0.00.14.41 stream0.01.25.88 streams0.21.58.332 streams1.31.922.8128 streams3.32.042.9256 streams
Figure 8Where a request's time goes, by the server's own timers. Reading the prompt takes about two seconds from 32 streams up; writing the answer takes longer with every level, because each stream gets fewer steps a second and shares them with the prompts of others.Source: summary.json sweeps.random-1k-256.levels[].server_queue_s_per_request, server_prefill_s_per_request, server_decode_s_per_request (the server's counters across each level, warm-up requests included)

04Why the stairs flatten

A level's mean hides its best second

the level's meanits best second1 stream598 streams36032 streams1,248128 streams2,816256 streams3,58401,0002,0003,000answer tokens a second, all streams together
Figure 9Each level's mean output and the most it wrote in any one second. From 32 streams up the best second is far above the mean.Source: random-1k-256/c1.json to c256.json (output_throughput, max_output_tokens_per_s)

In its best second the 256-stream level wrote 3,584 answer tokens, 14 for each stream. Its mean is 1,327.3: 37.0% of that.

Of the 6,636.6 tokens a second the server handles at 256 streams, 19.9% are answer tokens. The rest are prompts: four tokens in five.

streamsmean of the levelbest secondbest second, per streammedian gap, msthat is steps a secondmean as a share of the best
156.2595917.357.795.2%
8287.13604522.644.279.7%
32782.71,2483926.138.362.7%
1281,210.52,8162247.221.242.9%
2561,327.33,5841476.613.137.0%
1 stream: answer tokens received in each second0255032 streams: answer tokens received in each second05001,000256 streams: answer tokens received in each second02,00005101520253035404550seconds since the level's first request (the probe run's record of the same levels)
Figure 10The first 50 seconds of three levels, second by second. One stream writes steadily. 32 streams write in bursts between short stretches of taking in prompts. 256 streams take in prompts for half a minute, writing almost nothing, and then write at full speed. This run kept no record per request: these are the same levels as the probe run played them, with the same serving settings and instruments on.Source: runs/20261125T192827Z-probe/random-1k-256/c1.json, c32.json, c256.json (each request's first token and every gap after it)

In the probe run's record of the 256-stream level, 64.6% of the seconds are spent taking in prompts, with about 239 answer tokens written in a second; in the rest the card writes about 3,328 a second. Its mean over the level was 1,324.6, against 1,327.3 here.

A level here is two loads taking turns. An engine step that takes in prompts carries up to 8,192 tokens and lasts about a second; every stream already answering gets one token from it. So 1,327 a second is what is left for answers when four tokens in five are prompts, not what the card can write.

05Other servers, same load

The same load on six other servers

Every run that played this load, level by level, with the baseline in colour. Each differs from the baseline in what its name says.

One stream

baseline56.2AITER switch56.4instruments55.3draft head94.8152 units50.776 units45.5
Figure 11Answer tokens a second for one stream. Only the draft head and the masks move it.Source: cross/levels.json

32 streams

baseline782.7AITER switch785.3throughput set783.1instruments745.9draft head516.2152 units597.876 units386.1
Figure 12The one level every run played.Source: cross/levels.json

256 streams

baseline1,327.3throughput set1,353.7instruments1,324.6152 units893.876 units512.2
Figure 13The top: the settings leave it where it is.Source: cross/levels.json
streams kept in flight1832128256512baseline56.2287.1782.71,210.51,327.3AITER switch56.4306.0785.3throughput set783.11,222.11,353.71,384.9instruments55.3745.91,324.6draft head94.8516.2152 units50.7597.8893.876 units45.5386.1512.2darker = more: answer tokens a second, all streams together
Figure 14The same values, exactly, for every level. Empty cells: that run did not play that level, or the level is not a result.Source: cross/levels.json (each run's summary.json)
run what differs from the baseline requests per stream
AITER switch AMD's AITER kernels switched on (one environment switch) 4, as here
throughput set AITER, throughput mode, more of the card's memory and tokens streamed in groups: four things at once 4, as here
instruments vLLM's estimates and counters on, a sampler beside it 4, as here
draft head the model's draft head guessing 3 tokens ahead, estimates on 4, as here
152 units, 76 units half, and three quarters, of the card's compute units masked off; estimates on 2

At 256 streams the throughput settings give 1,353.7 answer tokens a second and the instruments run 1,324.6, against 1,327.3 here. At one stream the AITER switch gives 56.4 against 56.2. Its 8-stream level came out 6.5% higher, in 32 requests played once in each run.

Nothing in the serving settings moved the top of this curve. What moved it was taking arithmetic away from the card, and letting the model guess ahead. Each of those runs has its own document, where it is compared like for like.

Left out of the matrix: the 512-stream level of this run and the 128-stream level of the AITER run, both stopped by hand, and the 1,024-stream level of the throughput run, where the load tool ran out of open files and most requests failed on the client side.

06What it means

What I take from it

  • One stream gets 56.2 answer tokens a second, a token every 17.3 ms, with its first token after 0.14 s.
  • 256 streams together get 1,327.3 a second, and 6,636.6 counting prompt tokens.
  • That is 23.6 times the output of one stream, and 9.2% of its speed for each stream.
  • The first token takes 6.2 s on average at 256 streams, and 29.6 s for the slowest in a hundred.
  • Nothing failed and nothing was refused at any level.

The flat top of this sweep belongs to this load. With prompts of 64 tokens instead of 1,024, the same card wrote 3,499.7 answer tokens a second at 256 streams (the staircase of the series run, by the server's counter). A longer prompt for the same answer moves the top down; it does not mean the card is full.

The baseline is a reference, not a recommendation. Its attention kernel is the one vLLM picks by itself, and later runs found a faster one for long contexts. With prompts this short the choice matters little.

Not results, and limits

The 512-stream level was stopped by hand after the 256 level. The first attempt at the sweep finished no level: the load tool could not find the tokenizer under the server's short model name, and was started again with the full name.

  • One sweep, each level played once.
  • Prompts are random tokens, so nothing repeats between requests: a cache of shared prefixes or a draft head cannot show here. This is speed and behaviour, nothing about the quality of answers.
  • The loop is closed: at high stream counts the first-token time is mostly waiting in line.
  • No record per request, no CPU or network samples in this early run.

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

Level
one step of a sweep: a fixed number of streams kept in flight until the level's requests are used up.
Closed loop
the load keeps N requests in flight; a new one starts only when one ends. The server sets the pace.
First token
(time to first token) from sending the request to receiving the first answer token. It contains waiting in line and prefill.
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 · cross/levels.json 27321854fd2f · plans/staircase-short.json 6a2be1bf2346 · runs/20261125T184034Z-recipe/random-1k-256/c1.json 7486559e63d4 · runs/20261125T184034Z-recipe/random-1k-256/c1.t0 1710fab1d5f6 · runs/20261125T184034Z-recipe/random-1k-256/c1.t1 807160081f1d · runs/20261125T184034Z-recipe/random-1k-256/c128.json 45c22ee34d8b · runs/20261125T184034Z-recipe/random-1k-256/c128.t0 3429606d52e7 · runs/20261125T184034Z-recipe/random-1k-256/c128.t1 5c7c9258c6a5 · runs/20261125T184034Z-recipe/random-1k-256/c256.json 2150cae7d6da · runs/20261125T184034Z-recipe/random-1k-256/c256.t0 7d90046b581f · runs/20261125T184034Z-recipe/random-1k-256/c256.t1 511cc7440c7c · runs/20261125T184034Z-recipe/random-1k-256/c32.json 0d4fb62fe038 · runs/20261125T184034Z-recipe/random-1k-256/c32.t0 b80b35a0a264 · runs/20261125T184034Z-recipe/random-1k-256/c32.t1 3837c10b2542 · runs/20261125T184034Z-recipe/random-1k-256/c8.json 9286ae635eb5 · runs/20261125T184034Z-recipe/random-1k-256/c8.t0 fa95094d980f · runs/20261125T184034Z-recipe/random-1k-256/c8.t1 0f8fc59695b1 · runs/20261125T184034Z-recipe/random-1k-256/gpu-samples.txt 84524f003fa1 · runs/20261125T184034Z-recipe/summary.json f93dd689d428 · runs/20261125T185511Z-aiter/summary.json fd7bee7efee0 · runs/20261125T190633Z-aiter-max/summary.json 409c92f9bb01 · runs/20261125T192827Z-probe/random-1k-256/c1.json 37f8347fd437 · runs/20261125T192827Z-probe/random-1k-256/c256.json 2306cd81b021 · runs/20261125T192827Z-probe/random-1k-256/c32.json e5ea8f77b051 · runs/20261125T192827Z-probe/summary.json 064f25b0020b · runs/20261125T201346Z-series/summary.json aab3940eb12e

113 values bound by path, 14 figures drawn from data.

Supporting material · video

The same result in a minute

The whole series

Supporting material · PDF

The report as a document

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

Download the PDF