Tokens per Second (TPS)
The rate at which a language model generates or processes tokens, commonly used to measure inference throughput.
Tokens per second (TPS) measures the speed of an LLM during inference-how many output tokens are produced per second for text generation, or input tokens processed. It's a critical performance metric for user experience: higher TPS reduces perceived latency. TPS depends on hardware (GPU compute, memory bandwidth), model size (parameters), quantization, batch size, and sequence length. On a single A100 80GB with FP16 weights, a 7B parameter model might achieve ~80-100 TPS for generation, while a 70B model might deliver ~10-15 TPS. Quantizing to int4 or int8 can double or triple TPS by reducing memory bandwidth pressure. Techniques like FlashAttention and KV cache optimizations also improve TPS, especially for long sequences. For batched inference, TPS is often reported as total tokens across all requests per second (aggregate throughput) or per-user tokens (throughput / batch size). There's a fundamental tradeoff with latency: maximizing TPS via large batches increases per-request latency, which is unacceptable for real-time apps. AI builders must balance user-facing latency (e.g., <200ms per token) with backend throughput (e.g., hundreds of TPS). Profiling TPS across different batch sizes, sequence lengths, and hardware is essential for capacity planning. Tools like vLLM, TensorRT-LLM, and llama.cpp report TPS. Remember that output tokens cost more than input because of autoregressive generation.
TPS = total_tokens / total_time_secondsHigher TPS always means better inference-but a large batch can achieve high TPS while each user waits longer for their first token.
Related terms
Concepts you'll usually encounter alongside this one.
A key tradeoff in LLM serving: throughput measures total requests processed per time, while latency measures response time per individual request.
The number of independent inputs processed simultaneously during training or inference, affecting computational efficiency and memory usage.
An inference technique that uses a smaller draft model to guess multiple future tokens, verified in parallel by the large model to reduce latency.
Used in benchmarks
Workloads on MyAI Bench that involve Tokens per Second (TPS).
Mentioned in tutorials
Hands-on guides that put this concept to work.
Stand up a fully functional local LLM stack on Ubuntu 22.04, NVIDIA drivers, CUDA, Ollama, and your first model, in under 30 minutes.
Run local LLMs on Windows 11 the right way, WSL2, the WSL CUDA toolkit, and Ollama with full GPU acceleration. Native installer covered too.
Apple Silicon is shockingly good at LLM inference. Get Ollama running with unified memory acceleration on any M-series Mac in 15 minutes.
DeepSeek's reasoning model rivals GPT-4 on math and code. Run the distilled 7B/14B/32B variants on consumer hardware in 30 minutes.
See how this term affects your memory budget.
Real numbers, real chips, every workload.
Picks for builders, by use case.
Stay Ahead of the AI Curve
Get weekly AI hardware news, benchmark updates, and deals in your inbox. Founding-subscriber list, be one of the first.