AI inference glossary
Serving

Decode

Also known as autoregressive generation, token generation

In plain English

Decode is the model writing its answer one token at a time after it has read the prompt.

Technical definition

Decode is the inference phase that generates output tokens autoregressively, normally one accepted token per sequence per model step.

Engineering details

Each new token depends on preceding tokens, which limits parallelism across time. The model repeatedly reads weights and the sequence’s KV cache, making decode especially sensitive to memory bandwidth, batching, and communication.

Why it matters

Decode controls streaming interactivity and often dominates the cost of long outputs. Techniques such as speculative decoding, MTP, quantization, and wide expert parallelism aim to reduce the work or time required per accepted token.

How to read it in InferenceX

InferenceX decode performance appears as tok/s/user and aggregate tok/s/GPU across concurrency. Output sequence length, batch shape, precision, and parallelism must match for a fair comparison.