Skip to content

fix(vibench): read ViBench 1.0 from v1/ in vibench-public 2.0 - #5778

Merged
weijiac0619 merged 2 commits into
mainfrom
weijiac/vibench-v1-layout
Nov 7, 2026
Merged

weijiac0619 merged 2 commits into
mainfrom
weijiac/vibench-v1-layout

Conversation

@weijiac0619

@weijiac0619 weijiac0619 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What and why

vibench-public moved ViBench 1.0 under v1/ when ViBench 2.0 landed: the apps are now in v1/prds/ and the 1.0 project (its venv and .env) in v1/, while the shared runner stays in _harness/ at the root. prepare.py looked for prds/ at the root, so it stops with "No prds/ directory" on a current checkout.

  • prepare.py finds the apps in v1/prds/, or prds/ for a checkout from before ViBench 2.0, and takes v1/ when both exist. It looks for ViBench's interpreter (for jinja2) in v1/.venv first, then .venv. Row paths stay relative to the checkout root, and the resources server and vibench_agent read whatever paths the rows carry.
  • data/example.jsonl is regenerated from tag v2.0.7. Only the paths change (they gain the v1/ 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.jsonl keeps its rollouts, with the task paths moved to v1/.
  • The README's setup clones v2.0.7, runs uv sync and keeps .env in v1/, and builds the base image from the root.
  • task_data.py: the app field's description names both layouts.
  • The resources server looks for ViBench's interpreter in v1/.venv first, then .venv, as prepare.py does. It had looked only at the root, so with the v1/ setup it fell back to Gym's own Python. That still ran, because the grading scripts it runs at v2.0.7 import only the standard library, but it was not the interpreter the server meant to use.
  • README: the anti-cheat note names the full assets path, and P0 limitations lists that grading has not been re-run on v2.0.7.

This is split out of #5701, which builds on it; it is useful on its own because the current vibench_agent path needs it too. Grading and the agent are unchanged.

Dataset rows written by the old prepare.py carry prds/... 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 three jinja2 rendering tests; jinja2 is not in the server's venv). test_prepare.py covers the v1/ layout, the old layout, v1/ winning when both exist, and both venv locations; test_app.py covers 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 with jinja2 available, reproduces data/example.jsonl byte for byte.
  • pre-commit run --from-ref fd1fa273f --to-ref HEAD: passed.
  • DCO sign-off on every commit.

Known limits

  • Grading has not been re-run on 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

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]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 6, 2026

Copy link
Copy Markdown

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]>
@weijiac0619
weijiac0619 marked this pull request as ready for review November 7, 2026 01:53
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team November 7, 2026 01:54
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the bug Something isn't working label Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer labels Nov 7, 2026

@yaoyu-33 yaoyu-33 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@yaoyu-33 yaoyu-33 added ready-to-merge PR is approved, current, and waiting for final CI or merge and removed needs-review PR is ready for code review and waiting on a reviewer labels Nov 7, 2026
@weijiac0619
weijiac0619 added this pull request to the merge queue Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42337441201

Merged via the queue into main with commit 0c21bea Nov 7, 2026
72 of 73 checks passed
@weijiac0619
weijiac0619 deleted the weijiac/vibench-v1-layout branch November 7, 2026 04:27
weijiac0619 added a commit that referenced this pull request Nov 9, 2026
#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]>

This branch was previously deployed

1 inactive deployment
public — 4706395d Deployed Nov 7, 2026 by copy-pr-bot[bot] via release / finalize / notify #10802
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working ready-to-merge PR is approved, current, and waiting for final CI or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants