Repository navigation
fix(vibench): read ViBench 1.0 from v1/ in vibench-public 2.0 - #5778
Conversation
vibench-public moved ViBench 1.0 under v1/ when ViBench 2.0 landed: the apps are in v1/prds/ and the 1.0 project (venv, .env) in v1/, while _harness/ stays at the root. prepare.py looked for prds/ at the root and stopped on a current checkout. prepare.py now finds the apps in v1/prds/, or prds/ for a checkout from before 2.0, and looks for ViBench's interpreter in v1/.venv, then .venv. Row paths stay relative to the checkout root, so the resources server and vibench_agent are unchanged. example.jsonl is regenerated from tag v2.0.7 (only the paths change), example_rollouts.jsonl gets the same path update, and the README setup follows the new layout. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: weijia chen <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
The resources server looked for ViBench's interpreter only in the checkout root's .venv, while the v1 setup puts it in v1/.venv, so the server fell back to Gym's own Python. It now checks v1/.venv first, then .venv, as prepare.py does. The README names the full assets path in Anti-cheat and lists, under P0 limitations, that grading has not been re-run on v2.0.7. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: weijia chen <[email protected]>
yaoyu-33
left a comment
There was a problem hiding this comment.
Reviewed 4706395. No new blocking correctness issues found in the ViBench 1.0 layout/interpreter migration.
Validation on Linux: 70 resources-server tests and 17 agent tests passed. Regenerating the five examples from ViBench v2.0.7 reproduced the checked-in JSONL byte for byte; full preparation produced 24 tasks / 74 test plans. Both fixture diffs contain only the v1/ path prefix changes.
Real grading on the updated v2.0.7 runner/image remains unvalidated, as documented in the README; the historical rollouts do not establish that coverage.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42337441201 |
#5778 was squash-merged into main; this branch already carries its changes, so the conflicts in resources_servers/vibench/README.md and app.py keep this branch's side. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: weijia chen <[email protected]>
What and why
vibench-public moved ViBench 1.0 under
v1/when ViBench 2.0 landed: the apps are now inv1/prds/and the 1.0 project (its venv and.env) inv1/, while the shared runner stays in_harness/at the root.prepare.pylooked forprds/at the root, so it stops with "No prds/ directory" on a current checkout.prepare.pyfinds the apps inv1/prds/, orprds/for a checkout from before ViBench 2.0, and takesv1/when both exist. It looks for ViBench's interpreter (forjinja2) inv1/.venvfirst, then.venv. Row paths stay relative to the checkout root, and the resources server andvibench_agentread whatever paths the rows carry.data/example.jsonlis regenerated from tagv2.0.7. Only the paths change (they gain thev1/prefix); the prompts, PRDs and test plans of all five rows are byte-identical to before. The full set is unchanged: 24 tasks, 74 test plans.data/example_rollouts.jsonlkeeps its rollouts, with the task paths moved tov1/.v2.0.7, runsuv syncand keeps.envinv1/, and builds the base image from the root.task_data.py: theappfield's description names both layouts.v1/.venvfirst, then.venv, asprepare.pydoes. It had looked only at the root, so with thev1/setup it fell back to Gym's own Python. That still ran, because the grading scripts it runs atv2.0.7import only the standard library, but it was not the interpreter the server meant to use.v2.0.7.This is split out of #5701, which builds on it; it is useful on its own because the current
vibench_agentpath needs it too. Grading and the agent are unchanged.Dataset rows written by the old
prepare.pycarryprds/...paths; they still work against a checkout from before ViBench 2.0, and need regenerating for a current one.Validation
At
4706395dc, Linux:resources_servers/vibench/.venv/bin/pytest resources_servers/vibench/tests -q: 67 passed, 3 skipped (the threejinja2rendering tests;jinja2is not in the server's venv).test_prepare.pycovers thev1/layout, the old layout,v1/winning when both exist, and both venv locations;test_app.pycovers the server's interpreter lookup (v1/.venv, then.venv, then Gym's).prepare.py --vibench-root <checkout of v2.0.7> --apps notes quiz barber wedding market_place, run withjinja2available, reproducesdata/example.jsonlbyte for byte.pre-commit run --from-ref fd1fa273f --to-ref HEAD: passed.Known limits
v2.0.7. The grader's base image and runner scripts now come from that tag's_harness/, and the README's Validation results were graded on a checkout from before ViBench 2.0. No Docker host was available to re-run it.🤖 Generated with Claude Code