Repository navigation
Add single-turn IFEval task - #297
Conversation
Registers the google/IFEval dataset (541 prompts) as an ifeval task, mirroring the ifeval_ood implementation: chat format, max_tokens=2048, greedy decoding, primary metric prompt_level_loose_acc. The vendored ifbench instruction registry covers all 25 instruction IDs used by the dataset, so the existing IFEvalScorer and its four metrics apply unchanged. Sampling params are inherited from ifeval_ood and have not been validated against oe-eval's ifeval::tulu config on a live model; no reasoning-mode variant is included pending a shared regime variant. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B9VUctQuzfAtrdpk4wDjEx
CPU parity against oe-eval's own code (no GPU required)Verified this port directly against Config matches
|
| key | letter |
effect |
|---|---|---|
| 1122 | '#' |
non-alphabetic |
| 1129 | '!' |
non-alphabetic |
LetterFrequencyChecker.build_description rejects any letter outside a–z and substitutes random.choice(string.ascii_letters), so it scores a randomly chosen letter's frequency instead of the one the prompt asks for. Both oe-eval's vendored verifier and ifbench do this. Verified by repeated builds: oe-eval drew x, c, t, i, c, t on consecutive calls to the same row, flipping the verdict between runs.
Effect is bounded — 2/541 prompts, so at most ~0.37 points of prompt-level noise — but it is not a port difference, and it is why the comparison above excludes those rows. Worth fixing upstream in the dataset alongside the VGraf/ifeval_mt row noted on #314.
What this does not cover
An end-to-end score cell against a real model. Prompts and scorer verdicts are now exact, so a GPU run would be confirming the generation path rather than the port.
Covers registration and the ifeval::tulu-matching config, the null-padded kwargs strip that keeps None out of the verifiers, single-user-message formatting, verbatim answer extraction, and scoring end to end through IFEvalScorer for compliant, non-compliant and instruction-free rows. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
|
GPU parity evidence — allenai/Olmo-3-7B-Instruct, run from ifeval (google/IFEval, n=541, greedy):
Paired scorer check (oe-eval's stored generations through this PR's Also first-ever execution of the multi-turn tasks (no oe-eval counterpart run; validation, not parity): Not covered: 🤖 Generated with Claude Code |
| ) | ||
| primary_metric = _PRIMARY_METRIC | ||
| sampling_params = SamplingParams( | ||
| max_tokens=2048, |
There was a problem hiding this comment.
IFEval was functionally run with overrides for max_tokens (32768), temperature (0.6), and top_p (0.95) to match the other post-training tasks
There was a problem hiding this comment.
Claude Code · https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
Confirmed from the PAPER runs' stored config: ifeval::hamish_zs_reasoning_deepseek — T=0.6, top-p 0.95, max_gen_toks = model max_length = 32768 (i.e. context-bounded), plus model-level process_output: r1_style for both Instruct and Think models. Switched the task to that regime in 583f997 (max_tokens=None is the context-bounded form, same as the other post-training ports) and added <think> stripping before verification.
|
Overall this looks good to me – I think like MMLU it might be best to use pytest for the tests to stay consistent. I also would suggest running a couple more parity tests on additional models for full verification! |
…ning The Olmo 3 paper ran ifeval as ifeval::hamish_zs_reasoning_deepseek (temperature 0.6, top-p 0.95, generation bounded by the model context) with oe-eval's model-level r1_style processing removing <think> content before verification. Mirror both: sampled decoding with max_tokens=None, and extract_think_answer as the task's answer extractor. The scorer now verifies the extracted answer when a task provides one, falling back to the raw text; the existing IFEval tasks extract verbatim, so they are unchanged. Tests converted to pytest functions. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
|
Claude Code · https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ Tests are pytest now (583f997). Parity against the paper's own oe-eval generations (prompts byte-identical to the logged requests; r1-style stripping reproduces oe-eval's scored text 541/541):
The 5 disagreements are environment, not port logic: keys 1122/1129 are the random-letter rows (#320); key 279 is unseeded Without the |
Summary
Adds
google/IFEval(541 prompts) as anifevaltask. It is in the post-trainingOLMO_3suite in open-instruct but had no counterpart here — only the OOD slice (ifeval_ood) existed. Mirrorsifeval::hamish_zs_reasoning_deepseek, the Olmo 3 post-training regime: chat format, temperature 0.6 / top-p 0.95 with generation bounded by the model context (max_tokens=None),<think>reasoning stripped before verification (as oe-eval's model-levelr1_styledoes), primary metricprompt_level_loose_acc. The vendoredifbenchregistry covers all 25 instruction IDs the dataset uses (verified: 25/25, none missing), so the existingIFEvalScorerand its four metrics apply unchanged.Parity
Against the paper's own oe-eval generations: Olmo-3-7B-Think 539/541 and Olmo-3-7B-Instruct-SFT 538/541 on all four metrics, prompts byte-identical (see the parity comment below for the 5 explained disagreements). Earlier greedy
ifeval::tuluchecks, which established prompt/dataset/scorer equivalence, follow.Parity with oe-eval
ifeval::tulu(original, greedy)Verified against
oe-eval-internaldirectly, not by inspection. Checks run on the merged state of this PR and #314.Config — matches on every field:
ifeval::tuluuse_chat_format: TrueRequestType.CHATmax_gen_toks: 2048max_tokens=2048do_sample: False, temperature: 0.0stop_sequences: []traintrainprompt_level_loose_accprompt_level_loose_accDataset — oe-eval reads
HuggingFaceH4/ifeval, this readsgoogle/IFEval. They are content-identical: 541 rows, same 24 kwargs schema keys,key/prompt/instruction_id_listequal on every row. Rawkwargsdiffer on all 541 rows through HF null-padding alone, and 0/541 differ after the None-strip this task applies.Prompts and scorer verdicts — drove
oe_eval.dependencies.ifeval.utils.process_resultsand this PR's scorer over the same inputs, all 541 prompts × 6 response shapes (compliant, empty, markdown-wrapped, refusal, prompt echo, long filler):Stable across three runs. Details and the two excluded rows are in this comment.
Known caveat, not specific to this port
Two dataset rows (keys 1122, 1129) specify a non-alphabetic
letterforkeywords:letter_frequency. Every IFEval verifier —ifbenchand oe-eval's alike — rejects those and substitutesrandom.choice(string.ascii_letters), so those rows score a random letter and flip between runs. Bounded at 2/541 prompts (~0.37 points of prompt-level noise) and present in any IFEval harness. Filed with the other upstream defects in #320; excluded from the comparison above.Scope
No reasoning-mode variant here. oe-eval runs this under
ifeval::hamish_zs_reasoning_deepseek(temp 0.6 / top-p 0.95, uncapped budget). That regime should land once as a shared variant across all post-training tasks rather than as a one-off here, so this PR deliberately doesn't set the convention.Not covered
An end-to-end score cell against a live model. With prompts and scorer verdicts exact, a GPU run would be confirming the generation path rather than the port.
Test plan
tests/evals/tasks/test_ifeval.py): config, null-padded kwargs strip, single-user-message formatting, verbatim extraction, scoring end to endruff check,ruff format --check,ty checkcleanifeval::tuluon a fixed checkpoint🤖 Generated with Claude Code
https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ