Skip to content

Run IFBench tasks in the reasoning regime by default - #420

Merged
abhishekraok merged 4 commits into
mainfrom
abhishekr/reasoning-max-tokens-399
Oct 12, 2026
Merged

abhishekraok merged 4 commits into
mainfrom
abhishekr/reasoning-max-tokens-399

Conversation

@abhishekraok

@abhishekraok abhishekraok commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Written by the Claude Code session ledger-worker (session id 72ea05cb-832c-5396-b05b-5bece635b222), for hill-climb-evals (#378).

Part of reasoning-responses-truncated (#399). Per-task cap-hit / empty / unclosed-think counts come in a follow-up PR.

Breaking change: the default sampling regime changes for ifeval_ood, ifeval_mt_wildchat_unused_withRewrite and ifeval_mt_ood_wildchat_unused_withRewrite, and so do their task hashes. Scores from before this PR are not comparable with scores after it. The old regime (greedy, max_tokens=2048) stays available as each task's :tulu variant, e.g. -t ifeval_ood:tulu.

Description

ifeval_ood (IFBench) and both ifeval_mt tasks generated greedily with a fixed 2048-token budget. A thinking model uses that budget up on its reasoning trace and never produces an answer. reasoning-responses-truncated (#399) measured 95–97% of responses with an unclosed <think> block on this task.

Their defaults now match the repo's other reasoning-regime tasks (ifeval, gpqa_diamond:cot, mmlu_cot, omega_500, popqa:chat): temperature 0.6, top-p 0.95, max_tokens=None. With max_tokens=None, generation is bounded only by the model's context. strip_thinking was already on for all three tasks (thinking-removal (#375)).

Repro on main, driving the real -o path (CLI parse → dotlist merge → runner split → prepare_task_items) with the dataset stubbed:

Invocation Effective max_tokens on main
-t ifeval_ood / -t ifeval_mt_* 2048, greedy
-o max_tokens=32768 32768: the override works, and has since derive-accepted-override-names (#367)
-o max_tokens=null the string 'null'
-o sampling_params.max_tokens=32768 AttributeError (sampling-params-override (#397))

So the override path worked, but the default was wrong for every thinking model and there was no way to ask for "uncapped" from the command line.

Why None and not 32768. The closest oe-eval-internal config (ifeval_ood::tulu-thinker-deepseek) caps at 32768. A fixed cap above a smaller model's context makes every request fail. On main that failure also reports Success with 0.0; fail-batched-requests-loudly (#418, still open) makes an over-context cap fail the task loudly instead. None is the repo's convention for these tasks and works on any context size. -o max_tokens=32768 still gives the bounded cap. I left out oe-eval's </answer> stop sequence: no other reasoning task here uses it.

Follow-ups, not in this PR:

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)

Testing

  • Unit tests pass locally (pytest tests/ --ignore=tests/integration/): 2899 passed, 19 skipped.
  • Integration tests pass (if applicable): not applicable, no GPU runs.
  • New tests added for new functionality: TestIFBenchSamplingRegime checks the three tasks' defaults (uncapped, sampled, strip_thinking on) and that their :tulu variants keep greedy 2048. It fails on main (6 subtests) and passes here.

ruff check and ruff format --check are clean. ty check src/ alembic/ shows the same 11 pre-existing diagnostics as main (vLLM provider typing and unused ignores, in files this PR does not touch), and none in the changed files.

Review

  • Codex (P2): keep sampling constants out of module docstrings. Fixed in 7ffc06f; the values live only in SamplingParams. For the record, the closest oe-eval-internal configuration to the new ifeval_ood default is ifeval_ood::tulu-thinker-deepseek (same sampling, 32,768 cap, </answer> stop).
  • Independent Claude review (fresh reviewer per PR, 2026-10-01): no findings. Each :tulu variant matches main's old SamplingParams field for field, and every provider handles max_tokens=None.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have added/updated documentation as needed (task docstrings)
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

🤖 Generated with Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T23:38:50.406721Z 7533d42 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 414ee2d655

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/olmo_eval/evals/tasks/ifeval_ood.py Resolved
abhishekraok and others added 2 commits October 1, 2026 18:08
ifeval_ood and both ifeval_mt tasks generated greedily with a fixed
2048-token budget, which a thinking model spends on its trace before it
reaches an answer. Their defaults now match the repo's other
reasoning-regime tasks: temperature 0.6, top-p 0.95, and max_tokens=None
so generation is bounded only by the model context. The previous greedy
2048-token regime stays available as each task's :tulu variant.

Co-Authored-By: Claude Code <[email protected]>
The values live in each task's SamplingParams; the docstrings now name the
regime and the :tulu variant without restating them, per AGENTS.md.

Addresses Codex review on #420.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abhishekraok
abhishekraok force-pushed the abhishekr/reasoning-max-tokens-399 branch from 414ee2d to 7ffc06f Compare October 1, 2026 18:30
@abhishekraok
abhishekraok requested a review from a team as a code owner October 1, 2026 18:30
abhishekraok added a commit that referenced this pull request Oct 1, 2026
The values live in each task's SamplingParams; the docstrings now name the
regime and the :tulu variant without restating them, per AGENTS.md.

Addresses Codex review on #420.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
abhishekraok added a commit that referenced this pull request Oct 1, 2026
…ench's budget

The nesting check looked only at direct children, so AVERAGE -> NONE -> GAP
passed and the runner then averaged the gap's two leaves. It now walks every
descendant.

With #420 in this branch, ifeval_ood generates to the model context, so the
budget test that held it as a known failure now asserts it like every other
task in the pass.

Addresses Codex review on #422.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
abhishekraok added a commit that referenced this pull request Oct 1, 2026
The values live in each task's SamplingParams; the docstrings now name the
regime and the :tulu variant without restating them, per AGENTS.md.

Addresses Codex review on #420.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
abhishekraok added a commit that referenced this pull request Oct 1, 2026
…ench's budget

The nesting check looked only at direct children, so AVERAGE -> NONE -> GAP
passed and the runner then averaged the gap's two leaves. It now walks every
descendant.

With #420 in this branch, ifeval_ood generates to the model context, so the
budget test that held it as a known failure now asserts it like every other
task in the pass.

Addresses Codex review on #422.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abhishekraok

Copy link
Copy Markdown
Collaborator Author

Note that newer EMO models may need higher temperature.

Update approved IFBench defaults with current main
@abhishekraok
abhishekraok enabled auto-merge (squash) October 12, 2026 23:36
@abhishekraok
abhishekraok merged commit 5ee1ca8 into main Oct 12, 2026
7 checks passed
@abhishekraok
abhishekraok deleted the abhishekr/reasoning-max-tokens-399 branch October 12, 2026 23:43
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.

2 participants