vLLM on MI250X: one flag speeds decode, slows prefill
One vLLM flag on AMD MI250X makes decode up to 1.84x faster on long prompts and the first token up to 11% later. Measurements and which setting to use when.
Publisher
November 12, 2026
3 min read
vLLM on AMD's Instinct MI250X has two attention backends, and one command-line flag switches between them. In a served 27-billion-parameter model that flag made decoding up to 1.84 times faster on long prompts, and made the first token arrive up to 11% later. Which setting is right depends on what your requests look like. We measured both sides in November 2026 on LUMI-G.
The flag
By default vLLM 0.30 on ROCm uses its own attention backend. Starting the server with --attention-backend TRITON_ATTN selects the Triton one. Nothing else changes: same model, same weights, same hardware.
A request has two phases. Prefill reads the whole prompt once and ends when the first token appears. Decode then produces one token per step. The two phases use attention very differently, which is why one setting can win one phase and lose the other.
An interactive figure. With the Triton attention flag, decode on 8k-token prompts is 1.84, 1.52 to 1.54 and 1.36 to 1.38 times faster at 1, 8 and 32 streams, and 2 to 5% faster on short prompts. Time to first token is 2% later at 2.9k prompt tokens, 4% at 5.7k, 7% at 7.7k and 11% at 14.2k.
Decode: a large gain on long prompts
With an 8k-token prompt and one stream, the default produced 17.4 tokens per second and the flag 32.2. At 8 streams it was 114.2 against 176.2, and at 32 streams 426.5 against 589.5. Energy on the GPU fell with it, from 18.9 to 14.5 joules per output token at one stream.
On short prompts the gain is small, 2 to 5%, because attention is a small part of a decode step when there is little context to read.
Prefill: a growing cost on long prompts
The same flag makes prefill slower, and more so as prompts grow: 2% at 2.9k tokens, 4% at 5.7k, 7% at 7.7k and 11% at 14.2k. When vLLM prefills a prompt in one step the cost reaches 16% at 14.2k tokens. The card also used 9 to 13% more energy for those prefill-heavy requests.
Which to use
- Long conversations and long outputs: use the flag. Most of the time is decode, and decode is where it wins.
- Long documents with short answers, such as retrieval, extraction or classification: stay on the default. Most of the time is prefill.
- Mixed traffic: we did not measure a mix, so we cannot give a number. The two tables above let you estimate it from your own ratio of prompt to output tokens.
No single stock setting was best for both phases. That is worth knowing before comparing any custom kernel with "stock vLLM", because the answer changes with the baseline you pick.
Setup and limits
A 27B model on one MI250X card (two GPUs, tensor parallel 2), vLLM 0.30 on ROCm, November 2026. Decode numbers are medians of three repetitions in one job, with a second job on a different node for the ratios. Prefill numbers come from two jobs; one of them lost its node before finishing, so its second reading rests on fewer repetitions. Prompts were synthetic. We did not test MI300-class GPUs or other vLLM versions.
We acknowledge the EuroHPC Joint Undertaking for awarding this project access to the EuroHPC supercomputer LUMI, hosted by CSC (Finland) and the LUMI consortium, through a EuroHPC Development Access call (EHPC-DEV-2026D11-419).