Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you remove the conditional and keep the same math, you divide by zero and get nans. In the limit as temperature goes to zero, you do in fact get maximum likelihood sampling.


if (t==0) argmax(logits) else pick(logits)


You are ignoring the limit taking.


If t < 0.1 return {error, 400}


Do you know that a mathematical limit is?




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: