r/programminghumor • • 6d ago

Mantis wisdom

685 Upvotes

233 comments sorted by

View all comments

Show parent comment

1

u/DrDerivative 1d ago

This is only true if the LLM doesn’t use floating point arithmetic, otherwise temp=0 is only deterministic for the same model of GPUs

1

u/fvancesco 1d ago

Even with the same quantization? Tbf depends on the rounding conventions, not sure

2

u/DrDerivative 1d ago

Floating point airthmetic is not associative, that combined with GPUs running their own scheduling algorithms and also running diffrrrent floating point formats. For wuantized models, different GPUs have different strategies for what happens if the bit width of an accumulator is exceeded (which sometimes is turning it into a floating point number and back). You would need to turn off GPU scheduling, and fully audit the quantization bit width behavior and set temperature to 0 to achieve determinism with an LLM