Skip to content
pvjohnston.com
Home Résumé Writing About Contact
Menu
Home Résumé Writing About Contact
Writing 2 notes

#floating-point

Every note tagged #floating-point, newest first — or browse the full archive.

July 16, 2026 Engineering

Temperature zero is not determinism: your logits depend on who else is in the batch

Enumerating every ordering of a signed sum shows that reordering moves the result by one ulp — far too little to explain why temperature-zero endpoints return different paragraphs. The rest of the story is batch invariance, bfloat16, and argmax.

#llm#inference#determinism#reproducibility#floating-point#gpu#numerical computing
July 14, 2026 Engineering

Two runs, two answers: floating-point sums aren't associative

Run the same simulation on four cores and eight and the total energy disagrees in the twelfth digit. That is not a bug in your code — it is floating-point addition refusing to be associative, and the fix is not to make the hardware lie but to know your noise floor.

#floating-point#numerical computing#reproducibility#ieee 754#scientific computing#hpc
pj Peter V. Johnston

Science, AI-powered tools, automation, and technical writing — with the math, code, references, and diagrams left in.

Site

Résumé Writing How it’s made

Elsewhere

GitHub ORCID Google Scholar noprofits.org Contact
© 2026 Peter V. Johnston · BSD-3-Clause · Built with Hakyll + Pandoc Seattle