Skip to content

Add gsm8k:platinum and gsm8k:chat variants - #414

Merged
gregorybchris merged 5 commits into
mainfrom
chrisg/gsm8k-platinum
Sep 28, 2026
Merged

gregorybchris merged 5 commits into
mainfrom
chrisg/gsm8k-platinum

Conversation

@gregorybchris

@gregorybchris gregorybchris commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds two GSM8K variants. They can be used separately or together.

  • gsm8k:platinum evaluates on GSM8K-Platinum, a cleaned version of the GSM8K test set. The authors removed 110 ambiguous or flawed questions and corrected 10 mislabeled answers, leaving 1,209 questions with no rewording. The variant only swaps the data source to madrylab/gsm8k-platinum, pinned to revision e762492.
  • gsm8k:chat is a zero-shot chat setup for instruct and reasoning models. The base task's 8-shot completion prompt is capped at 512 tokens and stops at a blank line, which cuts off chain-of-thought output. The chat variant:
    • asks for the final answer in \boxed{}
    • removes the token cap and stop sequences
    • strips <think> traces before scoring
    • reads the boxed number and drops trailing decimal zeros, so a boxed 57.00 matches a gold answer of 57

Variants compose. For example, gsm8k:chat:platinum runs the chat setup on Platinum data, and gsm8k:olmo3base:platinum runs the OLMo 3 base-model setup on it. The plain gsm8k task keeps its original data, prompt, and extractor, so earlier results stay comparable. To let a formatter apply, GSM8K.format_request now uses the configured formatter when one is set, and extract_answer uses the configured answer_extractor when one is set.

Results: DeepSeek-R1-Distill-Qwen-32B

Both runs used gsm8k:chat and gsm8k:chat:platinum, sampling at temperature 0.6 and top-p 0.95 with one sample per question and a 32k context. Each run used 2 GPUs:

  • Run A: 2× A100 on ai2/saturn, Beaker experiment 01M3D7ASTQPA5H57SG1T1EED67.
  • Run B: 2× B300 on ai2/holmes, Beaker experiment 01M3DF19MB8Z9Y0H317RNQ9T3H.
Task Questions Run A accuracy (errors) Run B accuracy (errors)
gsm8k:chat (original) 1,319 96.51% (46) 96.21% (50)
gsm8k:chat:platinum 1,209 98.92% (13) 99.17% (10)

Where the original errors fall. Most errors on the original set are on questions that Platinum removed or relabeled: 38 of 46 in run A and 43 of 50 in run B. Both runs answered 9 of the 10 relabeled questions correctly against the corrected labels.

How the scores were computed. Both jobs ran code from before the trailing-zero fix. Answers boxed as values like 57.00 were marked wrong, so the jobs reported lower numbers:

Run Original Platinum
A 95.83% 98.59%
B 95.68% 98.92%

The table above comes from rescoring the saved outputs with the extractor in this PR. The model outputs are unchanged.

Caveat. The two tasks draw independent samples, so outcomes on the questions they share can differ from run to run.

Running on B300 GPUs. Run B passed -o provider.kwargs.attention_backend=TRITON_ATTN and --env VLLM_USE_FLASHINFER_SAMPLER=0. The current image (CUDA 12.8, runtime base) has no nvcc. On B300, vLLM's default FlashInfer TensorRT-LLM attention backend tries to JIT-compile with nvcc and fails at startup. With Triton attention, the evaluation took 3,629 s, compared with 8,850 s on A100: 2.4× faster.

Testing

  • Added unit tests for the pinned Platinum data source, settings inherited from the base task, and parsing of a relabeled record.
  • Added unit tests for the chat request format, the chat generation settings, boxed-answer extraction (including trailing zeros and the fallback to the last number), trace stripping before extraction, and composition with platinum.
  • Loaded the real Platinum dataset through the task: 1,209 instances.
  • ruff check, ruff format --check, and pytest tests/ --ignore=tests/integration (2,777 passed) pass. ty check reports one warning about an unused type: ignore in harness/sandbox/executor.py. That warning also appears on main.

🤖 Generated with Claude Code

gregorybchris and others added 4 commits September 25, 2026 10:56
GSM8K-Platinum removes 110 ambiguous or flawed questions from the GSM8K
test set and corrects 10 mislabeled answers. The variant swaps in the
pinned madrylab/gsm8k-platinum dataset and keeps the base task's prompt,
parsing, and scoring unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The base GSM8K prompt is an 8-shot completion capped at 512 tokens that
stops at a blank line, which truncates chain-of-thought output. The chat
variant sends a zero-shot chat prompt asking for a boxed answer, lifts the
token cap, strips thinking traces, and reads the boxed number. It composes
with the platinum variant.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Reasoning models often box money answers as 57.00, which exact match
scored as wrong against a gold answer of 57. The base task's extractor is
unchanged so its scores stay comparable with earlier runs.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@gregorybchris gregorybchris changed the title Add gsm8k:platinum variant using the GSM8K-Platinum test set Add gsm8k:platinum and gsm8k:chat variants Sep 26, 2026
Comment thread src/olmo_eval/evals/tasks/gsm8k.py Resolved

@mgmorgan23 mgmorgan23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me!

@no0p no0p left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for doing this.

Let's live with it a while, and if it's a good experience, maybe one day add a comment that this is preferred, or conditions when it is preferred.

LGTM

@gregorybchris
gregorybchris enabled auto-merge (squash) September 28, 2026 22:36
@gregorybchris
gregorybchris merged commit eac110d into main Sep 28, 2026
8 checks passed
@gregorybchris
gregorybchris deleted the chrisg/gsm8k-platinum branch September 28, 2026 22:42
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.

3 participants