Skip to content

Freeze OMEGA hill-climb pair and pin LiveCodeBench grading data - #388

Merged
abhishekraok merged 13 commits into
mainfrom
codex/sft-hillclimb-evals
Sep 24, 2026
Merged

abhishekraok merged 13 commits into
mainfrom
codex/sft-hillclimb-evals

Conversation

@abhishekraok

@abhishekraok abhishekraok commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Codex · codex://threads/01a0b658-a648-7e20-bc79-f871e3fb4e18

Add omega_500:hillclimb for the pinned AllenAI snapshot and strict primary metric. Preserve the existing omega_500 dataset, flex primary, scorer, and context-adaptive generation default: the two snapshots differ in 11 problems and must not share a result identity. Both new OMEGA tasks default to a 32K generation cap; the SFT hill-climb launcher also sets it explicitly for its 64K serving context.

Add omega_500_out: 500 frozen test_out IDs matching the anchor's 35-family proportions. Normalize all eight family aliases to the anchor's names and report missing/extra ID examples plus duplicate counts on drift. The generator is importable and downloads only the required parquet splits from explicit immutable Hub revisions; generated provenance comes from those same arguments. SWE-bench and locked final sets are excluded.

Pin LiveCodeBench prompts and separately loaded execution test cases to the same revision. Resolve data sources through get_data_source() so URI-string overrides work. The hill-climb uses livecodebench:lite (release_v3, K=1), with its own 32K override. Existing SFT dev/paper batteries are retained.

Claude review addressed in bb5299d: isolated variant; preserved historical context-adaptive default; URI handling; canonical family labels; actionable drift errors; verified generator revisions and importable entry point; unittest guard at file end; cache cleanup in finally. The corresponding SFT launcher selects omega_500:hillclimb at open-instruct@14ccee75f.

Validation:

  • 1,041 task/extraction/generator tests passed, 6 skipped. The final explicit-revision CLI test adjustment also passed all 5 generator tests.
  • Direct OMEGA unittest execution runs all 13 tests.
  • Fresh pinned-snapshot manifest generation is byte-identical after formatting.
  • Source/test/script Ruff and formatting checks pass. Type checking has only the pre-existing unused-ignore warning in harness/sandbox/executor.py.
  • Hill-climb launcher dry-run confirms the new variant and explicit 32K overrides for both OMEGA tasks.
  • Previously completed real Docker LCB integration: 5 passed, covering stdin/call-based solutions, wrong answers, private cases, and the 612-problem v3 window. These review changes do not change the sandbox grader.

GPU serving qualification remains separate: the earlier B300 grouped-MoE gate failed before predictions, and a bounded native-MoE diagnostic was submitted. No model-quality result is claimed.

User-requested protocol update (e993bf3): default both new OMEGA tasks to 32768 tokens while leaving historical omega_500 unchanged. The 21 targeted OMEGA tests pass, as do repository Ruff lint and format checks.

Screen-reporting fix: retain finish reasons and completion-token counts from inline and server vLLM in prediction artifacts, including without logprobs. Chat logprob processing now preserves usage metadata. This makes cap-hit diagnostics available for future screen runs; already-running serving gates retain their original revision. Validation: 47 provider/prediction tests passed; repository Ruff checks passed.

OMEGA extraction performance: skip the leading-wildcard boxed-answer search when the normalized text contains no boxed opener. An impossible regex keeps the cascade position and format score unchanged. Differential tests compare the old cascade on unboxed/prefixed/boxed/incomplete-box answers; 22 OMEGA tests pass. A local synthetic unboxed input took 45 ms at 4K characters and 181 ms at 8K before this change; 128K characters takes about 4 ms afterward. Existing serving gates keep their pinned code; this improves future screens without changing answer selection.

The K=1 screen-diagnostics helper reports cap hits, empty outputs, grading errors, missing records and unknown telemetry, without recomputing aggregate task scores. Four tests cover missing telemetry, duplicate records, unsupported multi-sample inputs and candidate failures versus grader failures.


Claude Opus 5.5 (Claude Code) · claude://claude.ai/epitaxy/local_2cdf0c63-88a3-45aa-b486-78ff5a91ca2a

Review follow-up (ed6f291, 91569af).

  • omega_500 keeps positional instance IDs again, so its task hash and native_ids match main and older runs still pair.
  • omega_500:hillclimb is now its own registered subclass rather than a variant. It uses the dataset's IDs, the strict primary, and a 32K default. omega_500_out builds on it.
  • vllm_server stores completion_tokens only for single-choice responses, because response usage sums all choices. Multi-sample predictions no longer carry inflated per-output counts.
  • LiveCodeBench reads test cases from the configured data source's repository as well as its revision.
  • The OMEGA revisions are defined once in the task modules. The manifest moved to tasks/constants/omega_500_out.py and the scripts to scripts/internal/.

Result identity changes. Pairing is by (task_hash, native_id).

Task Hash vs earlier runs
omega_500 unchanged from main
omega_500_out with the launcher's -o max_tokens=32768 unchanged from this PR's earlier head
omega_500:hillclimb changed: runs from before ed6f291 will not pair with new ones
livecodebench, livecodebench_hidden changed from main: pinning revision enters the hash; the data is identical because the pin is the current Hub HEAD

Validation: 2458 unit tests passed, 28 skipped. Ruff and format pass. ty shows only the existing unused-ignore warning. Real Hub loads return 500 unique instances for all three OMEGA tasks, with matching family sets for hillclimb and out. The moved generator reproduces the manifest byte-for-byte.

Freeze OMEGA hill-climb splits and pin LiveCodeBench prompts and graders
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 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-09-18T21:30:17.003207Z c1efc68 PR opened
ℹ️ 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: c1efc68b3d

ℹ️ 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".

Use the frozen LiveCodeBench revision in the real sandbox regression
Test frozen OMEGA manifest generation with local parquet fixtures

@abhishekraok abhishekraok left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Review by Claude Fable 5.1 (Claude Code).

Reviewed at cc11270; 6320156 only adds tests/scripts/test_freeze_omega500_out.py.

Verified directly: all three pinned revisions exist (LCB revision has test.jsonl–test6.jsonl); all 35 manifest parquet paths exist at the omega-explorative revision; regenerating the manifest with the script against fresh snapshots at those revisions is byte-identical after ruff format; the real omega_500_out load returns 500 unique instances; touched unit tests, ruff, and ty pass.

Blocking question: omega_500 is rewritten in place rather than getting a variant. I loaded both datasets: allenai/omega-500@113a7eb differs from saumyamalik/omega-500 in 11 of 500 problems (all logic_puzzles_blocked_grid, different grids and answers). With the strict primary and 32K cap, results stored under omega_500 before and after this PR are silently incomparable, and the deleted comment warned about exactly this. Suggest omega_500:hillclimb (or a new name) and leaving the certified regime untouched.

Other items inline: unclamped max_tokens=32768 (400s on ≤32K-context models), config.data_source.revision breaks on URI-string data sources, family keys differ across the in/out pair for the 8 aliased families, generator stamps revisions it never verifies (the subprocess tests added in 6320156 cover selection, thanks), new test class sits after the __main__ guard.

Comment thread src/olmo_eval/evals/tasks/omega_500.py Resolved
Comment thread src/olmo_eval/evals/tasks/omega_500.py Resolved
Comment thread tests/evals/tasks/test_omega_500.py Resolved
Comment thread tests/evals/tasks/test_livecodebench.py Resolved
Address Claude review: preserve OMEGA baseline, pin generator inputs, align family metadata
Default development OMEGA tasks to a 32K generation cap
Preserve vLLM termination diagnostics in evaluation predictions
Retain termination and token counts for inline vLLM too
Audit screen cap hits, empty outputs, errors and missing telemetry
Merge current eval main for compatible screening diagnostics

# Conflicts:
#	tests/runners/io/test_builders.py
Avoid quadratic OMEGA extraction when no boxed opener exists
@gregorybchris

Copy link
Copy Markdown
Collaborator

This review was generated by an agent following REVIEW_GUIDE.md. It is not from a human reviewer. Reply in the PR thread and a maintainer will follow up.

Looks good overall! The frozen manifest, the drift error, and the revision guards are careful work. Two things should be fixed before merging.

I found two blocking issues. Both affect persisted per-instance data. The first changes the stored instance IDs of the historical omega_500 task without changing its task hash. The second persists a wrong per-output token count when num_samples > 1. The non-blocking items cover the variant's shape, LiveCodeBench task identity, and structure.

I ran the project checks on the branch head. Ruff and formatting pass. ty shows only the existing unused-ignore warning in harness/sandbox/executor.py. The unit suite passes (2450 passed, 28 skipped). I also checked the Hub: all three pinned revisions (livecodebench/code_generation_lite@0fe84c39, allenai/omega-500@113a7eb8, allenai/omega-explorative@b04ae8d4) are the current HEAD commits.

Blocking

  1. src/olmo_eval/evals/tasks/omega_500.py:158
    process_doc now prefers doc["id"]. saumyamalik/omega-500 has an id column (omega_500_000, ...), so the historical omega_500 task now stores native_id="omega_500_000" where it used to store "0". The task hash does not change. I computed TaskConfig.to_dict() on main and on this branch and got the same hash. On the same dataset row, process_doc returns 0 on main and 'omega_500_000' here. analysis/pairwise.py matches instances by (task_hash, native_id). A run of omega_500 from before this PR and one from after it therefore share a hash but have no instances in common. The description says the historical task is preserved, and this is the one place it is not.
    Could we keep doc.get("index", index) for omega_500 and use the dataset ID only in the new tasks? Registering the AllenAI snapshot as its own Omega500 subclass (see non-blocking 1) makes that easy. Omega500Out already overrides process_doc. If you and the maintainers would rather take the better IDs everywhere, please say so in the PR description, since older omega_500 runs will stop pairing with newer ones. Either way, please add a test that pins the native_id the historical task produces for a row that has an id column.

  2. src/olmo_eval/runners/io/builders.py:74, with src/olmo_eval/inference/providers/vllm_server.py:958 and :787
    The server path fills completion_tokens from the response-level usage. The server sums that over all n choices. I built a chat response with two choices of 10 and 90 tokens and usage.completion_tokens=100, ran it through _generate_chat and build_predictions with num_samples=2, and both persisted outputs report completion_tokens: 100. The inline vllm provider stores len(completion.token_ids) per output. The same prediction field therefore means different things depending on the provider. Before this PR the value stayed in in-memory metadata. Now it is written to every prediction row. screen_diagnostics.py refuses K>1, so your own use is safe. Any other reader, or a pass@k task on vllm_server, gets inflated per-sample counts, and a cap check against them would report false cap hits.
    Please persist only per-output counts, and add a test with two choices. usage is only consumed from metadata by build_predictions (the throughput collector reads the response directly), so one option is to drop the field when the response has more than one choice:

    if usage:
        metadata["prompt_tokens"] = usage.prompt_tokens
        if len(response.choices) == 1:
            metadata["completion_tokens"] = usage.completion_tokens

    The completions path (_build_completion_output via _completion_usage_metadata) needs the same treatment.

Non-blocking

  1. src/olmo_eval/evals/tasks/omega_500.py:174
    omega_500:hillclimb names a research protocol and bundles three separate changes: a different dataset snapshot, a different primary metric, and a 32K cap. Per the decisions in the guide, regimes compose from variants, and variant names describe a format or metric modifier. The AllenAI snapshot corrects some questions and answers, which fits the versioned-fix pattern. Could it be omega_500:v2 (or a separate registered task) with the strict primary, and the 32K cap set by the launcher through a sampling override? The launcher already sets it explicitly. The snapshot revision also appears in three places (this variant, OMEGA_REVISION in the freeze script, and the tests). Could we define it once in omega_500.py and import it?

  2. src/olmo_eval/evals/tasks/livecodebench.py:352 and :421
    revision is serialized in DataSource.to_dict(), so pinning it changes the task hash of every existing livecodebench and livecodebench_hidden result. The pin is the current HEAD, so the data is unchanged and the change only affects identity. That is fine, but please state it in the PR description so nobody is surprised when new LCB runs do not pair with earlier ones.

  3. src/olmo_eval/evals/tasks/livecodebench.py:391
    test_revision now follows the configured data source, but test_repo is still the hard-coded LIVECODEBENCH_REPO. If data_source is overridden to point at a mirror, the grader fetches the canonical repo at the mirror's revision. The question_id check in _stage_problem makes that fail loudly, so it is not a silent-zero risk. Could test_repo also come from self.config.get_data_source().path?

  4. scripts/hillclimb/
    Both scripts serve one internal development protocol, and scripts/internal/ already exists for that kind of tooling. Could they move there? Alternatively, the diagnostics script could become a general predictions audit that is not tied to the hill-climb name.

  5. This PR bundles six independent changes: the OMEGA variant, the new omega_500_out task, the LCB pin, finish_reason persistence in the vLLM providers, the extraction speedup, and the diagnostics script. No need to split it now, but separate PRs would make changes like these easier to review and revert in the future.

Nits

  • Nit: src/olmo_eval/evals/tasks/_omega_500_out_ids.py could live in src/olmo_eval/evals/tasks/constants/, alongside the other static task tables.
  • Nit: scripts/hillclimb/freeze_omega500_out.py:71 validates the candidate pool with assert, which python -O skips. A ValueError would always run.
  • Nit: tests/evals/tasks/test_omega_500.py:132 TestOmegaAnswerPrefixes holds a stable-ID test. The class name doesn't match its contents.
  • Nit: every commit is titled Codex · codex://threads/.... Please give the squash commit a descriptive message.

Before merge

Please fix the two blocking items and add regression tests for each: a pinned native_id for historical omega_500, and per-output completion_tokens with two choices. After that, you may merge once CI is green.

abhishekraok and others added 2 commits September 23, 2026 17:58
- omega_500 keeps positional instance IDs, so stored results still pair
  by (task_hash, native_id).
- Register the AllenAI snapshot as omega_500:v2 with dataset IDs and the
  strict primary; omega_500_out builds on it. The 32K cap moves to the
  launcher's sampling override.
- vllm_server stores completion_tokens only for single-choice responses,
  since response usage sums all choices.
- LiveCodeBench grades from the configured data source's repository.
- Define OMEGA revisions once; move the manifest to tasks/constants and
  the scripts to scripts/internal; replace asserts with ValueError.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The subclass keeps the spec the SFT launchers select, and the 32K cap
remains the protocol default the task was asked to carry.

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

Copy link
Copy Markdown
Collaborator Author

Claude Opus 5.5 (Claude Code) · claude://claude.ai/epitaxy/local_2cdf0c63-88a3-45aa-b486-78ff5a91ca2a

@gregorybchris thanks, this was a careful review. Addressed in ed6f291 and 91569af.

Blocking

  1. Historical omega_500 IDs. Fixed. omega_500 uses doc.get("index", index) again. On a row with an id column it now returns 0, and its task hash is 4a504548233d37ea on both main and this branch. test_historical_task_keeps_positional_id pins this. Dataset IDs are used only by the new subclass and omega_500_out.
  2. Multi-choice completion_tokens. Fixed as you suggested, on both paths. _completion_usage_metadata now drops completion_tokens when the response has more than one choice, and the chat path uses the same helper. Tests cover two choices through chat into build_predictions, SDK completions, and raw-HTTP completions. They fail on the previous code. This also fixes the throughput collector, which summed the response total once per output.

Non-blocking

  1. Variant shape. It is now a separate registered task, Omega500HillClimb, following the mbpp:3shot:v2 pattern, because a variant can't change process_doc. I kept the spec omega_500:hillclimb rather than :v2. The open-instruct launchers and the experiment ledger select it by that name, and making it a separate task changes its hash anyway, so a rename would only add churn. The 32K default stays in the task because the author chose it as the protocol default. The launcher also passes -o max_tokens=32768, so resolved hashes are the same either way. The revisions are now defined once, as OMEGA_500_REVISION in omega_500.py and OMEGA_EXPLORATIVE_REVISION in omega_500_out.py. The freeze script and the tests import them, and a test checks that the manifest's recorded provenance matches both pins.
  2. LCB hash change. Now stated in the PR description, with a table of which task hashes move.
  3. test_repo. Done. It comes from get_data_source().path with hf:// stripped, and is tested with a mirror DataSource, a URI string, and the default.
  4. Scripts. Moved to scripts/internal/.
  5. Bundling. Understood. I'll leave it as is for this PR.

Nits

  • The manifest moved to tasks/constants/omega_500_out.py.
  • The generator raises ValueError for duplicate or insufficient candidate pools.
  • The class is renamed TestOmegaDocIds, and the answer-prefix tests stay separate.
  • For the squash commit, the PR title makes a descriptive message.

Validation: 2458 passed, 28 skipped. Ruff and format pass. ty shows only the existing executor warning.

@gregorybchris gregorybchris 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.

This review was generated by an agent following REVIEW_GUIDE.md. It is not from a human reviewer. Reply in the PR thread and a maintainer will follow up.

Thanks for the follow-up. Both blocking items are fixed in ed6f291 and 91569af, and the non-blocking items and nits are addressed. The unit suite, Ruff, and ty all pass at 91569af, and the task hashes for omega_500 and omega_500_out match the earlier runs. Approving.

@abhishekraok
abhishekraok merged commit 1d6938d into main Sep 24, 2026
10 checks passed
@abhishekraok
abhishekraok deleted the codex/sft-hillclimb-evals branch September 24, 2026 22:22
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