Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by toolslive on Friday July 11, 2025 @04:18AM
(#44529574)
I, naively (an uninformed guess), considered the non-determinism (multiple results possible, even with temperature=0 and fixed seed) stemming from floating point rounding errors propagating through the calculations.
How wrong am I ?
[ Parent
| on HN ]
Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by zahlman on Friday July 11, 2025 @07:41AM
(#44531008)
You may be interested in https://www.lesswrong.com/posts/aPeJE8bSo6rAFoLqg/solidgoldm... .
> The non-determinism at temperature zero, we guess, is caused by floating point errors during forward propagation. Possibly the “not knowing what to do” leads to maximum uncertainty, so that logits for multiple completions are maximally close and hence these errors (which, despite a lack of documentation, GPT insiders inform us are a known, but rare, phenomenon) are more reliably produced.
Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by impossiblefork on Friday July 11, 2025 @04:54AM
(#44529836)
With a fixed seed there will be the same floating point rounding errors.
A fixed seed is enough for determinism. You don't need to set temperature=0. Setting temperature=0 also means that you aren't sampling, which means that you're doing greedy one-step probability maximization which might mean that the text ends up strange for that reason.
Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by williamdclt on Friday July 11, 2025 @04:49AM
(#44529801)
Also uninformed but I can't see how that would be true, floating point rounding errors are entirely deterministic
Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by saagarjha on Friday July 11, 2025 @09:27AM
(#44531897)
Not if your scheduler causes accumulation in a different order.
Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by williamdclt on Friday July 11, 2025 @11:29AM
(#44533285)
Are you talking about a DAG of FP calculations, where parallel steps might finish in different order across different executions? That's getting out of my area of knowledge, but I'd believe it's possible
Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by saagarjha on Saturday July 12, 2025 @08:02PM
(#44546301)
Well a very simple example would be if you run a parallel reduce using atomics the result will depend on which workers acquire the accumulator first.
Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by bmicraft on Friday July 11, 2025 @04:43AM
(#44529754)
They're gonna round the same each time you're running it on the same hardware.
Re:Grok: Searching X for "From:Elonmusk (Israel or Palestine...
by toolslive on Friday July 11, 2025 @06:33AM
(#44530559)
but they're not: they are scheduled on some infrastructure in the cloud. So the code version might be slightly different, the compiler (settings) might differ, and the actual hardware might differ.