QUESTION 1 OF 10

What is time to first token?

Reveal the answer and explore the explanation.

01
EasyCore

What is time to first token?

Answer
Answer

Elapsed time until the first generated token becomes available.

Practical example

Measure how quickly a streaming response begins.

PythonRelated concept example
from statistics import quantiles
latencies = [90,100,110,130,220,300]
print(quantiles(latencies,n=100,method='inclusive')[94])

Illustrative percentile in milliseconds; use larger production samples.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As