Skip to content
inference.academy

glossary/compute/decode

Decode

also generation, autoregressive decoding

Producing output one token per step, each step reading the entire model and the request's cache to compute a single new token. The arithmetic per byte is close to one, so decode is memory-bound at any batch a cache can hold, and its step time is set by bandwidth. Batching more requests per step raises throughput almost for free; longer contexts slow it by adding cache to read.


1 FLOP per byte

At batch 1 in BF16: two operations per parameter over two bytes per parameter, two hundred times below the A100's ridge.


See it happen


Related