You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I reviewed the Discussions, and have a new bug or useful enhancement to share.
Expected Behavior
Setting sampling temperature to 0 should produce valid and "predictable" tokens.
Current Behavior
Setting temperature to 0 causes sampling to fail completely. This is due to plogits being scaled by 1.0f/temp before sampling here. I believe a workaround for this would be to make sampling deterministic when temp==0 by setting top_p=0.0 and top_k=1 and setting temp>0.
The text was updated successfully, but these errors were encountered:
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Setting sampling temperature to
0
should produce valid and "predictable" tokens.Current Behavior
Setting temperature to
0
causes sampling to fail completely. This is due toplogits
being scaled by1.0f/temp
before sampling here. I believe a workaround for this would be to make sampling deterministic whentemp==0
by settingtop_p=0.0
andtop_k=1
and settingtemp>0
.The text was updated successfully, but these errors were encountered: