New Tool Radar

Local AI

How to See Token Counts and Timings for an Ollama Reply

Add --verbose to ollama run and read the timing lines after each reply to see how many tokens your prompt and answer used and how fast they ran.

Schematic diagram with three steps: run ollama run llama3.2 --verbose, read the prompt eval count and eval count lines, then compare the eval rate in tokens per second.

When a local model feels slow, “slow” is not enough to act on: the delay might be loading the model, reading your prompt, or writing the answer. The --verbose flag on ollama run prints a timing summary after each reply that splits those three apart, with a token count and a speed for the prompt and for the answer. The Ollama commands cheat sheet calls it the quickest benchmark you have, and says it is the flag for load time and tokens per second. You can also switch the same timings on inside a running chat with /set verbose, and off again with /set quiet.

Run one prompt with –verbose

Add the flag to a normal one-shot run, with a prompt as the next argument:

ollama run llama3.2 --verbose "Why is the sky blue?"

The question is the Ollama README’s own sample prompt. After the answer, Ollama prints the timing lines. The worked example below is the cheat sheet’s own run, on qwen3.5:4b with the prompt “Name the default SSH port. Reply with just the number.” and the model already loaded, so the load time is tiny; your numbers will be different, and the first run on your machine will show a much larger load duration because the model has to load from disk first.

Timing line (cheat sheet’s run) Value What it means
total duration 968.190644ms The whole call, from start to finish
load duration 493.044µs Time spent loading the model; tiny here because it was already loaded
prompt eval count 24 token(s) How many tokens your prompt used
prompt eval duration 674.588ms How long the model spent reading your prompt
prompt eval rate 35.58 tokens/s How fast it read your prompt
eval count 3 token(s) How many tokens the answer used
eval duration 237.829ms How long the model spent writing the answer
eval rate 12.61 tokens/s How fast it wrote the answer — the generation speed

The answer in that run was “22”, the default SSH port, in 3 tokens. That matters for reading the numbers: the cheat sheet warns that 12.61 tokens per second is on a 3-token answer, and short answers flatter the rate, so read the eval rate from a response of 50 tokens or more before you compare machines.

Try it: read your own numbers

Run the command above, then answer the three checks from your own output.

Check What you should see What it means
Prompt tokens A prompt eval count line with a token number How much of the context your prompt used
Answer tokens An eval count line with a token number How long the answer was, in tokens rather than words
Generation speed An eval rate line in tokens/s How fast this model writes on your computer

Expected result. We checked the Ollama commands cheat sheet, which lists –verbose as the flag for load time and tokens per second and prints the timing lines above from its own run. We did not run ollama run –verbose on this machine, so we have no timings of our own; the numbers in the table are the cheat sheet’s, not ours.

Limits

The timings describe one reply on one machine, so they do not transfer to another computer, another model, or a longer prompt. The first run after a model has been unloaded includes the load time, and a model that is already loaded shows almost none, so compare warm runs with warm runs. A short answer makes the eval rate look better than it is, and the rate also changes with the context length and with what else your computer is doing. The --verbose flag and the timing lines in this guide come from a third-party cheat sheet that was checked against Ollama 0.40.14, not from Ollama’s own documentation. We did not test any of this ourselves.

Sources

See all