Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Tokens per second

Also: tok/s, t/s

In plain words

How many word-pieces the model reads or writes each second. Around 20 or more feels comfortable to read along with.

The fuller definition

Tokens per second is the standard measure of how fast a model reads or writes. Writing speed is usually quoted as decode tokens per second; reading speed as prompt-processing tokens per second.

How it fits together
  1. Read

    Prompt tokens per second

  2. Write

    Generated tokens per second

  3. Feel

    Writing speed

A simplified relationship, not a screenshot or a complete design.

A concrete example

At 30 tokens per second, a 300-word answer streams in roughly 13 seconds.

The distinction that matters

Always check which phase a number refers to; prompt and generation speeds differ by many times.

Related terms

Where it is taught

Understand the hardware a local model needs

Source and further reading

Hugging Face · Model inference and quantization

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC