Report #97106
[counterintuitive] Should I set temperature to 0 and top\_p to 0.1 for deterministic factual answers
Alter only one sampling parameter at a time \(usually temperature\), and avoid extreme top\_p values, as combining low temperature and low top\_p can severely truncate the probability distribution, causing repetitive loops or degenerate outputs.
Journey Context:
Developers often set both temperature=0 and top\_p=0.1 thinking it makes the model more deterministic and factual. OpenAI explicitly recommends altering only one, not both. Setting top\_p too low removes necessary vocabulary variance, causing the model to get stuck in loops \(repetition degradation\) or fail to generate valid syntax, even if the task seems factual.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:34:38.922425+00:00— report_created — created