Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for temp == 0 issue #684 #689

Closed
wants to merge 2 commits into from

Conversation

Fabio3rs
Copy link
Contributor

@Fabio3rs Fabio3rs commented Apr 1, 2023

I am not sure about comparing the float directly with 0.0f, so I used std::abs and FLT_EPSILON

Motivation:
Setting temp=0 does not work as expected #684

@Fabio3rs Fabio3rs requested review from ggerganov and anzz1 April 1, 2023 20:11
@Fabio3rs Fabio3rs requested a review from abetlen April 1, 2023 20:24
@abetlen
Copy link
Collaborator

abetlen commented Apr 1, 2023

Tested and it's working as expected now. Thank you!

@ivanstepanovftw
Copy link
Collaborator

Take a look at another approach #720

@prusnak
Copy link
Collaborator

prusnak commented Apr 3, 2023

Closed in favor of #720 which is less ad-hoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants