Repository navigation
Fix AIME answer extraction before sentence-ending periods - #31
Open
zhachar14h-cell wants to merge 1 commit into
Open
zhachar14h-cell wants to merge 1 commit into
zhachar14h-cell wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The AIME numeric fallback rejects an integer followed by a sentence-ending
period:
The answer is 42.produces(None, "none"), whileThe answer is 42produces("42", "tail_number"). This causes falsenegatives with
--judge ruleand incorrect rule-based extraction diagnostics.The default LLM judge makes its own correctness decision.
Allow a trailing period unless it is followed by a digit. Preserve the
existing rejection of decimal fragments, numbers longer than three digits,
and word-embedded digits, as well as the priority of boxed answers.
Add 17 CPU-only regression cases covering extraction and rule scoring.
They are marked for both GPU and NPU core test selections.
Validation on Windows with Python 3.13.12, pytest 8.4.2, and Ruff 0.15.0:
python -m pytest -q tests/eval/test_aime.py— 17 passed.ruff check --no-cache— passed across the repository.ruff format --check --no-cache— all 271 Python files already formatted.git diff --check— passed.The full Linux/GPU/NPU inference suite and Python 3.12 were not exercised.