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 floating point error with ndot progress printing in Perplexity and show stats with < 100 tasks #7348

Merged
merged 1 commit into from
May 18, 2024

Conversation

strawberrymelonpanda
Copy link
Contributor

This simple 2 line PR is to allow --multiple-choice with a --binary-file that has less than 100 tasks.

I've made a JSON->bin encoder, but as I discovered here when testing the encoder, with fewer than 100 tasks you get a floating point error on a simple function that just prints progress dots.

I've also changed a line to allow printing the stats at the end (score % vs guess %) if you're using all multiple choice tasks (of any number), rather than just >= 100.

Fix floating point error with ndot printing, allow end stats on lower task numbers if multiple-choice tasks.
@mofosyne mofosyne added bugfix fixes an issue or bug Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix labels May 18, 2024
@ggerganov ggerganov merged commit ca57e0f into ggerganov:master May 18, 2024
61 of 63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix fixes an issue or bug Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants