1. While experimenting in the GitHub Models Playground, a developer notices that setting the temperature to 0.0 on a code-generation model produces nearly identical responses on repeated runs, while a temperature of 1.5 produces highly varied output. Which explanation is MOST accurate?
- A. Temperature controls the maximum number of tokens the model generates per response.
- B. Temperature scales the probability distribution over the model's next-token predictions; lower values make the distribution sharper, favoring the highest-probability token, while higher values flatten it, increasing randomness.✓ Correct
- C. Temperature determines how many candidate responses the model generates internally before selecting the best one.
- D. Temperature adjusts the size of the context window used during inference, with lower values consuming fewer tokens.
Explanation
Temperature is a softmax scaling parameter applied to logits before sampling. At 0.0 (or near 0), the model greedily picks the top token, yielding deterministic output. At high values like 1.5, the distribution flattens, making lower-probability tokens more likely and output more random. Option A is wrong — that describes `max_tokens`. Option C describes beam search or best-of-N sampling, not temperature. Option D is wrong — context window size is a model architecture constant, not controlled by temperature.