← Back to LLM Fundamentals

How LLMs Think

What is temperature, and why the same prompt gives different answers

Temperature is a dial that controls how random a model is. At 0 it always picks the most likely next word, and at 1.2 it often picks an unlikely one.

Start by reading the article for this lesson.

Read the articleOpens in a new tab

Check what you learned

Answer all 3 questions. You need at least 2 right to pass.

1. What does temperature control?

2. Which temperature range is best for code, facts, and summaries?

3. What happened when the author ran the same prompt twice at temperature 0?