Skip to content

Fix floating point error with ndot progress printing in Perplexity and show stats with < 100 tasks#7348

Merged
ggerganov merged 1 commit intoggml-org:masterfrom
strawberrymelonpanda:master
May 18, 2024
Merged

Fix floating point error with ndot progress printing in Perplexity and show stats with < 100 tasks#7348
ggerganov merged 1 commit intoggml-org:masterfrom
strawberrymelonpanda:master

Conversation

@strawberrymelonpanda
Copy link
Copy Markdown
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 ggml-org:master May 18, 2024
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
…7348)

Fix floating point error with ndot printing, allow end stats on lower task numbers if multiple-choice tasks.
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
…7348)

Fix floating point error with ndot printing, allow end stats on lower task numbers if multiple-choice tasks.
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.

3 participants