Repository navigation
Add SciCode - #153
Merged
Merged
Add SciCode#153
Conversation
…ored-By: Claude Opus 4.7 <[email protected]>
…nizers Co-Authored-By: Claude Opus 4.7 <[email protected]>
…thored-By: Claude Opus 4.7 <[email protected]>
…Co-Authored-By: Claude Opus 4.7 <[email protected]>
…hored-By: Claude Opus 4.7 <[email protected]>
…now) Co-Authored-By: Claude Opus 4.7 <[email protected]>
… iteration. Co-Authored-By: Claude Opus 4.7 <[email protected]>
…ence Co-Authored-By: Claude Opus 4.7 <[email protected]>
… Co-Authored-By: Claude Opus 4.7 <[email protected]>
…s Co-Authored-By: Claude Opus 4.7 <[email protected]>
…Authored-By: Claude Opus 4.7 <[email protected]>
…o-Authored-By: Claude Opus 4.7 <[email protected]>
…dles it Co-Authored-By: Claude Opus 4.7 <[email protected]>
…hored-By: Claude Opus 4.7 <[email protected]>
…types Co-Authored-By: Claude Opus 4.7 <[email protected]>
… Co-Authored-By: Claude Opus 4.7 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e47c6b9c5
ℹ️ 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".
…Co-Authored-By: Claude Opus 4.7 <[email protected]>
…ck coverage Co-Authored-By: Claude Opus 4.7 <[email protected]>
…lm-venv Co-Authored-By: Claude Opus 4.7 <[email protected]>
… _get_num_multimodal_tokens Co-Authored-By: Claude Opus 4.7 <[email protected]>
…ssor has _get_num_multimodal_tokens Co-Authored-By: Claude Opus 4.7 <[email protected]>" This reverts commit 6022305.
…Authored-By: Claude Opus 4.7 <[email protected]>
…hored-By: Claude Opus 4.7 <[email protected]>
…ct Co-Authored-By: Claude Opus 4.7 <[email protected]>
…base Co-Authored-By: Claude Opus 4.7 <[email protected]>
…By: Claude Opus 4.7 <[email protected]>
…y: Claude Opus 4.7 <[email protected]>
finbarrtimbers
force-pushed
the
finbarr/scicode
branch
from
April 27, 2026 18:25
6696d6e to
113ba3c
Compare
# Conflicts: # src/olmo_eval/harness/sandbox/image.py
…hored-By: Claude Opus 4.7 <[email protected]>
undfined
suggested changes
Apr 27, 2026
undfined
left a comment
Contributor
There was a problem hiding this comment.
I noticed a few cases that will likely raise exceptions that we should fix and just one hygiene request to avoid adding Ai2 paths in source when possible.
…default, both sandbox capabilities, bump swerex venv to 3.12 Co-Authored-By: Claude Opus 4.7 <[email protected]>
…s set Co-Authored-By: Claude Opus 4.7 <[email protected]>
5 tasks done
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.
Adds SciCode as an
ExternalEval.Verification:
google/gemma-4-31b-itwithenable_thinking=true:sub_step_accuracy= 42.01% (121/288).microsoft/Phi-4-mini-instructgets 9.375% vs AA's 10.8% target.microsoft/Phi-4-mini-instruct(commit 28cda45, 2026-04-29):sub_step_accuracy= 10.07% (29/288), matching AA's 10.8% target. Beakerh5py_host_pathis requiredThe eval expects the SciCode reference numerics file (
test_data.h5) to be available on the host and bind-mounted into the sandbox. There is no default — pass-A h5py_host_path=...at launch. Running without it raisesValueError. Ai2 internal users (detected byBEAKER_TOKENin env) get a hint in the error message pointing at/weka/oe-adapt-default/finbarrt/scicode/test_data.h5.Sandbox image changes
This PR also reworks
src/olmo_eval/harness/sandbox/image.pyto support SciCode's verifier:uv sync --active --frozen --no-dev --project ...inside the sandbox to install per-problem dependencies.uv sync --activerequires a real venv pointed to byVIRTUAL_ENV, which the previous/root/pythonraw-interpreter layout did not provide. The Dockerfile now bakes a venv at/root/venvand exportsVIRTUAL_ENV, so SciCode's runtimeuv synclands deps in the right place.python-build-standalonetarball (x86_64-only, ~2-year-old build) toCOPY --from=ghcr.io/astral-sh/uv:0.11.7 /uv /uvx ...as a build stage. This is multi-arch, maintained, and letsuvpick the Python interpreter (uv venv --python 3.12).pip install uvstep now thatuvis the bootstrap.SWEREX_IMAGE_VERSIONso the cache key reflects the new on-disk layout (/root/python→/root/venv).JSON round-trip for
-a/-KargsThe Beaker launcher passes parsed eval args to the inner
run-externalCLI as repeated-a key=valuestrings, and the inner CLI re-parses them via_coerce_value. Before, the launcher used Python's defaultstr()formatting, so:["13.1", "13.2"]became"['13.1', '13.2']"— Python repr with single quotes is not valid JSON, so_coerce_valuereturned a literal string instead of a list.True/Nonesimilarly became"True"/"None"rather than JSON'strue/null.This bit the SciCode smoke test concretely:
--problem-idsis list-typed, and the GPU-side eval received a string. The fix is symmetric:json.dumpson the way out (job_assembler.py),json.loadson the way in (cli/utils.py).tests/cli/test_arg_round_trip.pypins the round-trip for str / bool / int / float / list / dict / None.Reproducing
Phi-4 Mini (non-reasoning, AA-compliant, ~14m on 1×H100):
Gemma-4-31b-it (reasoning, ~1h 48m on 2×H100):
Stacked PRs
The bake-once sandbox image / launch-host pre-bake mechanism has been split into a follow-up PR that depends on this one.