Repository navigation
fix(litmus-bench): give prepared rows a stable task_id - #6650
Conversation
Gym plans and selects tasks by `task_id`, `problem_id` or `instance_id`. Litmus-Bench rows carried none, so `gym eval plan --benchmark litmus-bench` refused all 2056 rows and its tasks could not be selected by id. Each prepared row now carries `task_id`, the row's `metadata.uuid`, which the release already guarantees unique and which does not change if rows are reordered. The litmus_agent task-data schema gains the optional field, and the provenance fingerprint covers the id rule so a cached file without it is prepared again. Same approach as #4610 for IFEval. Signed-off-by: Ingo Guehring <[email protected]>
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
LGTM — no concerns found. I reviewed all four PR files and traced preparation, cache invalidation, planning, task selection and verifier passthrough. The two additional base-to-head test differences are upstream drift, not edits introduced by this PR.
CI on b80e5d5 passed Lint check, Unit tests / Test, Unit tests / Combined core coverage and Unit tests / Server suite. Changed server tests and Session routing end-to-end were skipped, not passed.
I ran prepare_cache_probe.py, planner_probe.py and schema/request-class probes in 766267172432.dkr.ecr.us-east-2.amazonaws.com/ghcr/astral-sh/uv:python3.12-trixie-slim. Using five committed example rows, they confirmed that old caches are rejected for the combined benchmark and every subset, preparation adds only task_id, IDs survive reordering, and UUID selection preserves repeats. The isolated planner rejected the base rows and accepted the new rows. UUID-bearing and absent-ID inputs remained compatible.
These probes used local inputs and isolated imports; I did not download the full published release or run a model rollout.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/45246707809 |
What does this PR do?
Gives every prepared Litmus-Bench row a stable
task_id: the row'smetadata.uuidfrom the published release (unique for all 2056 rows;prepare.pyalready refuses duplicates).Until now the rows carried no id, so Gym could not plan the benchmark (
ConfigError: Benchmark 'litmus-bench': 2056 of 2056 tasks have no task id) and its tasks could not be selected by id. The uuid belongs to the dataset, so a task keeps its id if rows are reordered. Same approach as #4610 for IFEval.The litmus_agent task-data schema gains the optional
task_idfield. The prepared-data provenance fingerprint now includes the id rule, so a cached prepared file withouttask_idis prepared again instead of being reused.Validation
tests/unit_tests/benchmarks/test_litmus_bench_prepare.py: prepared rows carry the source uuid astask_id. It fails without theprepare.pychange (KeyError: 'task_id').benchmarks/litmus-bench/tests/test_prepare.pynow expect the added field; that file passes (38 tests with the new one).pre-commit runon the changed files: pass.plan_benchmark("litmus-bench")downloads and prepares the release and returns 2056 tasks, where it was refused before. Selecting one uuid returns exactly that task.Rollouts
N/A: only the prepared rows gain a field; prompts, verifier inputs and grading are unchanged.
Compatibility and benchmark impact
None for scores. Prepared files gain a
task_idfield; the nextgym eval prepare --benchmark litmus-benchregenerates stale cached files.Checklist
git commit -s).🤖 Generated with Claude Code