AI and LLMs · Junior · Question 73 of 75

Why do long answers take noticeably longer than long prompts?

Show the answer

Correct answer: Output is generated token by token, so long answers are slow

Explanation

The prompt is processed in parallel, but each output token depends on the previous one. Asking for concise answers is one of the easiest latency wins.

Further reading

Problem with a question

AI and LLMs · Junior · question 73

Test yourself

Take the AI and LLMs · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz