Tokens Per Second (TPS)

Also known as: TPS

Category: Generative AI / LLM

A performance metric measuring how many tokens a language model can generate per second, indicating the speed of text generation.

Full Explanation

Tokens per second (TPS) is the primary throughput metric for language model generation, measuring how quickly the model produces output tokens. TPS varies based on the model size, hardware, batch size, quantization level, and serving framework. Typical ranges span from 10-30 TPS for large models on consumer GPUs to hundreds of TPS for optimized serving of smaller models. For user-facing applications, TPS directly affects the perceived response speed and user experience. TPS can be measured for a single user (generation speed) or aggregated across all concurrent users (system throughput). Optimizations like quantization, speculative decoding, continuous batching, and specialized serving frameworks (vLLM, TensorRT-LLM) all aim to improve TPS. The metric is distinct from prefill speed (processing the input) versus decode speed (generating output), with decoding typically being the bottleneck. TPS benchmarks are commonly used to compare serving solutions.

Related Terms

More in Generative AI / LLM

Explore More