firehose> #llmops

A foundation model does not emit a single definitive answer; it produces a probability distribution over next tokens, and how you sample from that distribution materially changes the output. Greedy sampling always takes the highest-probability token — fast and deterministic, but repetitive and flat. To introduce variation you reach for sampling controls: temperature scales the model's confidence (higher ≈ 0.7–1 is more creative and less accurate; near-zero is deterministic and focused); top-k restricts the choice to the k most likely tokens (typically 50–500); top-p / nucleus keeps the smallest set of tokens whose cumulative probability clears a threshold p (0.9 ≈ the tokens making up 90% of the mass). The load-bearing point is not the knob values but the framing: because generation is probabilistic, behaviors like inconsistency under minor input changes and confident hallucination are inherent, not bugs to be fully eliminated.

Claims


Linked from