Throughput (tokens per second)
Definition
How many tokens a model or serving system generates per second, measured per request or across all requests.
In more detail
Two numbers get called throughput. Per-request speed is how fast one answer streams, which shapes user experience. System throughput is the total tokens a GPU or cluster produces across many concurrent requests, which shapes cost.
They pull against each other: batching many requests together raises system throughput but can slow each individual stream. Serving engines like vLLM and SGLang use continuous batching to get both. When you compare local models or hosts, check which number is quoted and at what concurrency.
Related terms
Inference
Running a trained model to produce outputs, as opposed to training it. Inference cost and speed decide what an AI feature costs to run.
Latency
The time from sending a request to a model to getting the response, often split into time to first token and total generation time.
Speculative decoding
A speed-up where a small draft model proposes tokens and the large model checks them in one pass, keeping the ones it accepts.
Time to first token
How long a model takes to return the first token of a response after a request, the main driver of how fast a streamed reply feels.
Read more about Throughput (tokens per second)
- Local models
Running open-weight models on your own hardware for privacy, cost or offline use.
- vLLM
High-throughput inference and serving engine for LLMs with an OpenAI-compatible server.
- Run local models with Ollama
Install Ollama, run an open-weight model on your own machine, call it from scripts over the local API and choose a model size your hardware can handle, offline.
- LLM serving
Running models behind an API for many users, tuned for latency, throughput and GPU cost.