LLM & Transformer Fundamentals·Question 45 of 109Intermediate

The newest closed frontier models reject or ignore temperature and top_p. How do you get diversity, determinism and reproducible evals without them?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

First, the facts as of late 2026. Anthropic's Opus 5.5 guide says to omit temperature, top_p and top_k, Sonnet 5 returns 400 on non-default values, Haiku 5.5 can return 400, and the Python SDK v1.0 removed them from the Messages methods. OpenAI's GPT-6 Astra accepts no custom temperature, top_p or logprobs. Google deprecated them in July 2026: from Gemini 3.6 Flash they are ignored, later generations will return 400, and Google recommends system instructions for determinism. Open-weight models still publish recommended settings (Mistral Large 4 and Qwen3.8 recommend temperature 1.0 and top_p 0.95), so the knobs now mostly live in self-hosted serving.

Full worked answer

First, the facts as of late 2026. Anthropic's Opus 5.5 guide says to omit temperature, top_p and top_k, Sonnet 5 returns 400 on non-default values, Haiku 5.5 can return 400, and the Python SDK v1.0 removed them from the Messages methods. OpenAI's GPT-6 Astra accepts no custom temperature, top_p or logprobs. Google deprecated them in July 2026: from Gemini 3.6 Flash they are ignored, later generations will return 400, and Google recommends system instructions for determinism. Open-weight models still publish recommended settings (Mistral Large 4 and Qwen3.8 recommend temperature 1.0 and top_p 0.95), so the knobs now mostly live in self-hosted serving.

Why a provider would do this is partly inference on my part, but the plausible reasons are sound: reasoning models are RL-trained under one sampling configuration and can degrade outside it, adaptive thinking already sets how much the model explores, and fewer knobs means fewer ways for customers to break quality and then blame the model.

What I do instead, by goal:

  • Determinism for a given input. Cache the response keyed on the full request and model snapshot. That is the only real guarantee, and it was true even when temperature 0 existed, because batching and floating-point effects meant temperature 0 never guaranteed identical outputs. For behavioural consistency rather than byte equality, tighten the task: structured outputs with enums, explicit decision rules in the system prompt, and fewer degrees of freedom in the answer.
  • Diversity. Default sampling is already stochastic, so k independent calls still give k different samples and self-consistency still works. When I need guaranteed variety (brainstorming, test-case generation), I ask for N distinct candidates in one structured call with an explicit "must differ on X" constraint, or vary the prompt framing across calls. That gives more controllable diversity than temperature ever did.
  • Reproducible evals. Pin the model snapshot, run each item several times and report the mean and the spread, and use paired comparisons on the same items. A single run at temperature 0 was always a fragile basis for a ship decision; now it is not even available. For LLM judges, sample the judge more than once and take the majority, and calibrate it against human labels.
  • When you genuinely need the knobs (logprob-based confidence, min-p sampling for creative work, exact greedy decoding for a regression harness), that is an argument for an open-weight model you serve yourself, or for a purpose-built endpoint that returns probabilities.

Operationally, strip sampling parameters in the gateway per model, so an old config that sends temperature: 0 does not start throwing 400s the day you upgrade.

What a good answer covers

  • Anthropic's Opus 5.5 guide says to omit temperature, top_p and top_k, Sonnet 5 returns 400 on…
  • OpenAI's GPT-6 Astra accepts no custom temperature, top_p or logprobs
  • Google deprecated them in July 2026
  • Open-weight models still publish recommended settings (Mistral Large 4 and Qwen3.8 recommend temperature…
  • Why a provider would do this is partly inference on my part, but the plausible reasons are sound

Key terms: Determinism for a given input · Diversity · Reproducible evals

Interviewer follow-ups to expect

  1. Why did temperature 0 never guarantee identical outputs, even when it was supported?

  2. How would you run self-consistency on a model that ignores temperature?

  3. Where in your stack would you enforce per-model parameter rules?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep