Skip to content
Peter Styk HPC & AI Platform Engineer

Reports · Qwen3.8-27B on one AMD Instinct MI300X · Staircase top, fast kernel

The fast kernel has the same ceiling: about 4,000 answer tokens a second

With short prompts the attention kernel does not decide the top. The fast kernel's server stops at 559 streams where the default one stops at 588, because it starts with 5.0% less cache; for each GiB of cache both run 5.22 streams, and both write about 4,000 answer tokens a second.

Test
Staircase top, fast kernel
Run
20261125T215049Z-series-fa

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

01Overview

For long prompts the fast attention kernel changes everything. For short ones I expected little, and played the top of the staircase on it to see: 64 tokens in, 512 out, 256 to 2,048 streams. With the server full it wrote 3,949 and 3,993 answer tokens a second, where the default kernel had written 3,856 and 4,096: about 4,000 either way. It stopped at 559 streams instead of 588, because its server starts with 5.0% less cache.

  • 3,993 answer tokens a second with 2,048 streams asked for; 4,096 on the default kernel
  • 559 streams running at once, at most; 588 on the default kernel
  • 5.0% less cache than the default kernel's server: 1,734,958 token slots against 1,826,476
  • 5.22 streams for each GiB of cache, on both kernels: computed from each server's log
default kernel = 100fast kernel050100the server on the default kernel = 100100.094.9token slotsthe server reports100.094.9cache memory,GiB100.095.0most streamsrunning at once100.097.4answer tokens a second,2,048 asked for
Figure 1The fast kernel's server against the default kernel's, each measure with the default kernel set to 100. Cache and streams are a twentieth lower, together. The output with 2,048 streams asked for is within 3%.Source: summary.json of this run and of run 20261125T201346Z-series (server.kv_cache_tokens, stages[stage=up-2048].running_max, server_output_tok_s); cache memory from each server.log ("Available KV cache memory")

With 1,024 and with 2,048 streams asked for both servers are full, and that is where they compare. This one wrote 3,949 and 3,993 answer tokens a second, the default kernel's 3,856 and 4,096. Neither is ahead at both stairs.

The 29 streams between 559 and 588 are the cache: 107.05 GiB against 112.71. For each GiB both servers ran 5.22 streams.

02How it was run

The machine, and the one setting

AMD Instinct MI300XQwen3.8-27B · vLLM 0.27.1streamsat most 559 at oncethis testengine stepprefilldecodeattentioncache1,734,958 token slotsthis testcompute unitsclientsCPU · 20 cores
Figure 2The card as every document in this series draws it: seven parts wired left to right, the clients outside, the host CPU below. The setting changes the attention kernel; what this plan measures is how many streams fit and what the card then writes.Source: FACTS.json; summary.json server.kv_cache_tokens, plans.plan-staircase-top.stages[stage=up-2048].running_max

The top of the staircase, on an empty server

2565121,0242,048line emptying05001,0001,5002,000streams04080120160200seconds since the plan started
Figure 3The plan: streams asked for over time. Each stair lasts 40 seconds; then the generator waits 60 seconds for the line to empty and stops.Source: plan-staircase-top/timeline.json (target); plans/staircase-top.json
  1. A closed loop: the load generator keeps 256, then 512, 1,024 and 2,048 requests open, 40 seconds each. A new request starts when one ends.
  2. Every prompt is 64 random token ids, so no two share a prefix; every answer is forced to 512 tokens.
  3. One setting differs from the series run: AMD's AITER kernels are switched on and the decoder's attention uses the flash-attention one. The server's log confirms the kernel in use.
  4. The other side is not the same plan. The default kernel's server played the full staircase, from 1 stream up, and reached 256 already busy; this one starts there empty. Only the two top stairs, where both servers are full, compare one to one.
  5. Beside each run a sampler read 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 20261125T215049Z-series-fa, started 2026-11-25T21:51:02Z, server ready after 97 s

The load is made on the same machine as the server and shares its CPU cores. Both servers had 1,024 stream slots and vLLM's default share of the card's memory, 92%.

Words used

Attention kernel
(--attention-backend) the GPU code that lets each token look back over the context. Four exist here: ROCM_ATTN (the default pick), ROCM_AITER_FA (AITER flash attention), ROCM_AITER_UNIFIED_ATTN, TRITON_ATTN.
AITER
AMD's library of GPU kernels for inference. Off by default in this install (VLLM_ROCM_USE_AITER).
Cache
(KV cache) the GPU memory where the server keeps what the model computed for every token of every open stream, so it need not be recomputed.
Stream
one request being answered, from the moment it is sent until its last token.
Closed loop
the load keeps N requests in flight; a new one starts only when one ends. The server sets the pace.
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.

03Stair by stair

Full at 559 streams, and writing as much as the default kernel

Streams runningasked fordefault kernelfast kernel2565121,0242,048line emptying0250500Answer tokens a second (7-second centred mean)default kernelfast kernel02,0004,000Cache in use, %default kernelfast kernel050100020406080100120140160180200220seconds since the plan started
Figure 4This run in colour; in grey the same four stairs of the default kernel's full staircase, moved to the same clock. Streams running follow the request (thin steps) to 512, then stop at 559 here and at 588 there. Output is a 7-second centred mean. Shaded bands are the stairs; in the last band nothing new is sent to this server (the grey run went on with other stairs and is not drawn there).Source: plan-staircase-top/timeline.json of this run; plan-staircase-short/timeline.json of run 20261125T201346Z-series

The exact record

serverrunning at mostwaiting at mostcache at most, %answer tokens/sprompt tokens/sengine steps/stokens per stepfirst token, median sTFLOPS, est.
256 streams asked for
default kernel256243.53,50064713.743021.02191
fast kernel25612445.83,12942412.242902.05164
512 streams asked for
default kernel5122587.03,9135597.665841.20206
fast kernel51213291.63,2038626.296462.13186
1,024 streams asked for
default kernel58843699.93,8568626.5871733.63217
fast kernel559465100.03,9494317.0861938.20203
2,048 streams asked for
default kernel5881,46099.94,0962566.97624≥ 144.63202
fast kernel5591,489100.03,9935107.16629≥ 99.90208

One row per stair and server, from the two summary.json files. Running, waiting and cache are the most seen in the stair; output, prompts and steps are the server's counters over it; the first-token time is the median for requests sent in that stair. A stage row spans 39 s of a 40 s stair. TFLOPS is vLLM's estimate.

The two lower stairs do not compare the kernels. Here 256 requests start in the same instant on an empty server and move together; there the server arrives at 256 with streams of every age. The lower output here (3,129 and 3,203 against 3,500 and 3,913) may be the plan as much as the kernel.

1,536 of this run's 2,863 requests were "cut at the end of the plan": still open when the generator's 60 s ran out, and closed by it. They are not refusals. All 2,863 got HTTP 200.

04Where the 29 streams went

The fast kernel keeps more memory for itself, and the cache gets less

weights and the rest of the serverset aside for the busiest stepthe cachethe share of the card it may plan with04080120160default kernel112.71 GiB92%: 176.35 GiBfast kernel107.05 GiB92%: 176.35 GiBfast kernel, 2,048 stream slots103.65 GiB92%: 176.35 GiBfast kernel, 97% of the card113.23 GiB97%: 185.94 GiBfast kernel, 8-bit cache103.36 GiB92%: 176.35 GiBGiB of the card's 191.69
Figure 5Where each of the five servers that played this plan put the card's memory, by its own log: what the server itself consumed, what it set aside for its busiest step, and the cache, which gets the rest of the share it may plan with. This run is in bold.Source: server.log of each run ("Desired GPU memory utilization is ... Actual usage is ...", "Available KV cache memory")
520540560580600most streams running at once100104108112116cache memory, GiB (the server's log)the grey line: 5.22 streams for each GiB of cachedefault: 588fast: 5592,048 slots: 54197%: 5918-bit: 539
Figure 6The most streams running at once against the cache's size in GiB, five servers: the default attention kernel, this one, and the fast kernel with 2,048 stream slots, with 97% of the card and with an 8-bit cache. They lie on one line through zero: the streams that fit follow the bytes.Source: summary.json of each run (running_max at 2,048 asked for); cache GiB from each server.log
GiB, by each server's own logdefault kernelfast kerneldifference
Share the server may plan with92%: 176.3592%: 176.35+0.00
Consumed by the server itself (weights and the rest)53.0753.00-0.07
Set aside for the busiest step10.5716.31+5.74
The cache: what is left of the share112.71107.05-5.66
Compiled graphs, taken after the cache was sized6.8312.90+6.07
All four together, on a card of 191.69183.18189.26+6.08

The fast kernel's server sets 16.31 GiB aside for its busiest step where the default kernel's sets 10.57 aside: 5.74 more, and its cache is 5.66 GiB smaller.

This server's cache gauge moves in whole steps, 2,236 to a full cache. A running stream of this plan takes 4, and 559 x 4 = 2,236 fills it. The default kernel's gauge has 2,354 steps: 588 x 4 = 2,352, and one more stream does not fit. A step is 49.0 MiB here and 49.0 MiB there.

My reading: a stream of at most 576 tokens gives an attention kernel little context to look back over, so the kernel does not decide the top. It matters where the context is long, which other plans of this run show.

The five servers, exactly

servershare of the card, %consumed, GiBset aside, GiBcache, GiBtoken slotsmost streams runningstreams per GiBMiB of cache per streamslots per streamanswer tokens/s: 1,024 asked2,048 asked
default kernel9253.0710.57112.711,826,4765885.22196.33,1063,8564,096
fast kernel9253.0016.31107.051,734,9585595.22196.13,1043,9493,993
fast, 2,048 stream slots9253.0619.64103.651,679,8935415.22196.23,1053,9233,921
fast, 97% of the card9753.0619.64113.231,835,0085915.22196.23,1054,1023,941
fast, 8-bit cache9253.3619.64103.363,309,7595395.21196.46,1413,9624,182

Memory is each server's own log; slots and streams are each run's summary.json; the three ratios are computed.

05What it means

What I take from it, and what it does not show

What I take from it

  • Full of short streams, the card writes about 4,000 answer tokens a second on either attention kernel.
  • The fast kernel's server runs 559 streams at most, the default kernel's 588.
  • That difference is the cache, 5.0% smaller on the fast kernel: both servers run 5.22 streams for each GiB of it.
  • Choosing the fast kernel costs nothing at the top with short prompts, and a twentieth of the streams that fit. Where it pays is long context.

What it does not show

  • The kernels below the ceiling. The stairs at 256 and 512 streams were reached in two different ways and do not compare.
  • One stream alone, or a few: this plan starts at 256.
  • Anything about long prompts. Those are this run's context ladder and mixed plan.
  • One run each. A stair's output swings with the moment at which new prompts are read.

Underneath: the card did the same work

servercompute, TFLOPS (est.)memory read, TB/s (est.)matrix units in use, %wattsCPU busy, %engine cores
1,024 streams asked for
default kernel217.30.7124.875011.72.02
fast kernel203.40.7936.774911.71.98
2,048 streams asked for
default kernel202.00.6850.075111.72.00
fast kernel207.80.6117.374811.82.00

Stage rows of the two summaries. Compute and memory read are vLLM's estimates from the model's shape, not hardware counters; matrix units and watts are readings of AMD's device exporter.

measured: read from a run file · computed: arithmetic on measured values · estimate: vLLM's, from the model's shape · my reading: interpretation, not measurement

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

FACTS.json 160f5ca0d495 · GLOSSARY.md 98323be796af · plans/staircase-top.json 7671a9348c18 · runs/20261125T201346Z-series/plan-context-ladder/samples.jsonl f2696347bb5b · runs/20261125T201346Z-series/plan-kv-growth/samples.jsonl 015baec3f8a7 · runs/20261125T201346Z-series/plan-kv-pressure/samples.jsonl 17363b9b3ac4 · runs/20261125T201346Z-series/plan-mixed-overlap/samples.jsonl 0d25a29a74d9 · runs/20261125T201346Z-series/plan-overload-open/samples.jsonl 497385ff88bf · runs/20261125T201346Z-series/plan-smoke/samples.jsonl b48c999d88a9 · runs/20261125T201346Z-series/plan-staircase-short/samples.jsonl cede4b79f5ca · runs/20261125T201346Z-series/plan-staircase-short/timeline.json 477032b70206 · runs/20261125T201346Z-series/server.log c008d4941d1a · runs/20261125T201346Z-series/summary.json aab3940eb12e · runs/20261125T215049Z-series-fa/plan-context-ladder/samples.jsonl a5711b1d5bc5 · runs/20261125T215049Z-series-fa/plan-mixed-overlap/samples.jsonl 793988ae70b7 · runs/20261125T215049Z-series-fa/plan-smoke/samples.jsonl 3b722aa306b9 · runs/20261125T215049Z-series-fa/plan-staircase-top/samples.jsonl fb46e627e0cb · runs/20261125T215049Z-series-fa/plan-staircase-top/timeline.json 067529026b74 · runs/20261125T215049Z-series-fa/server.log a2aa2d010fcc · runs/20261125T215049Z-series-fa/summary.json ec0c01913c37 · runs/20261125T224501Z-series-kvfp8/server.log 12a55b33336a · runs/20261125T224501Z-series-kvfp8/summary.json 561b6d9e405a · runs/20261125T225329Z-series-mem97/server.log 18247a4dd0d4 · runs/20261125T225329Z-series-mem97/summary.json ab4cc85f7ebd · runs/20261126T013018Z-series-fa-seqs2048/server.log 5a8a691ca70f · runs/20261126T013018Z-series-fa-seqs2048/summary.json 94ecccaf84b3

61 values bound by path, 6 figures drawn from data.

Supporting material · video

The same result in a minute

The whole series

Supporting material · PDF

The report as a document

5 pages · A4 · 363 KB · every number traced to its run file

Download the PDF