Skip to content

Preserve successful results when resuming a benchmark - #9

Merged
Abhinavexist merged 2 commits into
InterfazeAI:mainfrom
ItsM0rty:code-fix/resumed-scores
Nov 19, 2026
Merged

Abhinavexist merged 2 commits into
InterfazeAI:mainfrom
ItsM0rty:code-fix/resumed-scores

Conversation

@ItsM0rty

@ItsM0rty ItsM0rty commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8.

A failed request stays in the response log after a successful retry. GPQA then counts both rows, so a correct answer can lower the score.

This keeps the full log and selects the latest successful response per sample for scoring. If every attempt failed, it retains the latest failure. Resume recognizes any completed response and ignores failed rows without the sample ID.

The regression runs the CLI with a fake provider and the real GPQA scorer, covering failed retries before success, a later failure after success, and a failed row without an ID. Result-store tests also cover a different sample ID key and preserve the original records.

28 focused tests pass, with four archived-result tests skipped. Ruff checks pass for the changed files. No model calls were made, and I haven't checked published scores.

@Abhinavexist Abhinavexist left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ItsM0rty, thanks for finding the issues.. , there is any 2 minors things that needs to be done before its gtg :)

was busy, so didn't get time to review earlier

Comment thread src/results.py Resolved
Comment thread src/results.py Resolved
@ItsM0rty ItsM0rty changed the title Score the latest attempt when resuming a benchmark Preserve successful results when resuming a benchmark Nov 12, 2026
@ItsM0rty

Copy link
Copy Markdown
Contributor Author

@Abhinavexist Fixed both; thanks for taking a look

@Abhinavexist Abhinavexist left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @ItsM0rty :)

@Abhinavexist
Abhinavexist merged commit 893d1bb into InterfazeAI:main Nov 19, 2026
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.

Resumed benchmark runs can count failed attempts in the score

2 participants