Term
每秒词元数(TPS)
Next Token / Wiki

Tokens per Second (TPS)

Tokens per second (TPS) measures how fast a language model generates text — the number of tokens it outputs per second, usually counted after the first token arrives. Higher values mean text appears faster.

Also known as

TPS · 每秒词元数 · Tokens per Second

Definition

Tokens per second (TPS) measures the throughput of language model inference: how many tokens the model outputs per second. It usually counts the steady generation speed after the first token arrives, which is why it is also called output speed.

How it works

The metric is obtained by counting tokens produced per unit of time in an inference service or benchmark, and it varies with model size, hardware, context length, and concurrent load. The same model can score very differently across deployment setups.

Usage

TPS is used to compare inference services and hardware options and to estimate user waiting time; in streaming output it governs how fast the “typewriter” renders text.

TPS describes the speed at which the model emits one next token after another, and the KV cache is a key optimization behind that speed. Unlike benchmark capability scores, TPS measures speed, not answer quality.

Sources