Repository navigation
feat(benchmarks): add the BIRD-Interact Lite and Full benchmark recipe - #5475
Conversation
|
/ok to test 0bf5d30 |
|
/ok to test a394e9c |
a394e9c to
32bd186
Compare
|
/ok to test 32bd186 |
32bd186 to
4670f7a
Compare
|
/ok to test 4670f7a |
|
/ok to test 126be53 |
|
/ok to test 186aa92 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
I found two RISK-level failures in manifest validation, a RISK-level validation gap, and one documentation NOTE. I inspected all 12 changed files and traced preparation through task materialization, routing, and the PostgreSQL runner. I did not execute tests or builds. The external image contents and withheld ground truth were unavailable for inspection.
RISK: Provide representative rollouts through this recipe
The supplied validation covers preparation, config resolution, and standalone database commands, but not a model rollout through the new PostgreSQL recipe. The Results section also records no results. This leaves the release rows, simulator, agent sessions, and grading unvalidated together. The protected quality bar requires representative real model rollouts; claims about a later stacked PR do not validate this head.
Could you run a small prepared Lite sample in both modes against the image built here and attach the commands, model/simulator settings, rollout artifacts, and inspected outcomes? A clearly labeled stand-in ground truth can validate plumbing, but must not be reported as a benchmark score or as validation of the withheld solutions. Keep the query-only exclusions and the documented simulator-parity limitation.
Acceptance: inspect a simulator interaction and a successful phase transition through each mode, confirm the recorded rewards match the configured phase rewards, and confirm the database sandbox is cleaned up. Report infrastructure failures separately from incorrect SQL, and keep Full and real-ground-truth coverage explicitly unvalidated unless exercised. This is a request for missing evidence, not a claim that these runtime paths fail.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
|
/ok to test 8ca347d |
|
Answer to the review summary's request for rollouts through the recipe. Fixes for the three threads are in 8ca347d6. All runs on Docker sandboxes, with
How the Lite run was started: the recipe's |
|
/ok to test 4f130a2 |
|
/ok to test 6e3a92f |
|
/ok to test 771427a |
|
/ok to test eef4ee3 |
|
/ok to test 169374b |
|
/ok to test 6156974 |
|
/ok to test 0accfdd |
|
/ok to test 646572e |
|
/ok to test 5ed74e1 |
benchmarks/bird_interact runs BIRD-Interact's Lite and Full releases on the bird_interact Environment Server, with PostgreSQL. One recipe holds both releases and both modes: config.yaml (Lite, c-Interact), a_interact.yaml, full.yaml and full_a_interact.yaml. - Dockerfile builds the episode sandbox image from BIRD-Interact's official one (digest-pinned), with every database of the release restored at build time; Full is a build argument. - prepare.py downloads the release from Hugging Face (its rows, and the schema, column meanings and knowledge base of each database), merges the ground truth that the authors send on request into the task and its follow-up, and writes the tasks the server can grade: those with ground truth and without custom test cases. - Each release and mode has its own dataset, file and metrics; the manifest mirrors the Lite c-Interact config. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
… image's scripts expect The restore script waits until `psql -U root` connects, and with no database named after its user it never did, so the build hung. Create the `root` database the base image's entrypoint would, and fail the build when the script prints an import error or a dump folder did not become a database, instead of only when none did. Built for Lite: 18 of 18 databases, 175 tables, in 20 seconds; grading.py's setup, execute and grade run against them in a container from the image. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…he recipe in the docs - prepare.py writes each task materialized for the mode's taskset, so manifest validation reads it as the Environment Server's task input. - Static validation fills a vllm_model's endpoint (base_url, api_key, model), and the top-level settings it names, as deployment values, as it already does for an openai_model. gym env validate bird_interact no longer needs the user simulator's credentials; runtime parsing still requires them. - The Fern environment list links the recipe. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…cept a solution written as one string prepare.py reads the file the authors send from benchmarks/bird_interact/data/ by default (bird_interact_gt_kg_testcases_1008.jsonl for Lite, bird_interact_full_gt_kg_testcases_08022.jsonl for Full), which data/.gitignore keeps out of the repository; ground_truth_jsonl still names another file. A file that matches none of the release's tasks is refused. The authors' Lite file writes 263 of its 300 follow-up solutions as one string, not a list of statements, and the server refuses such a row. The merge turns a string into a list of that one statement. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…n the prepare tests in CI From the team review of the stack: - prepare left out a task only when it had test cases, so Full kept 17 management tasks (427, not 410), 7 of which this server cannot grade. It now keeps the tasks whose two phases are both Query (a phase without a category is one, as in the ADK): 195 in Lite and 410 in Full. - The Hugging Face download is pinned to the revision the ground truth files belong to. - The prepare tests sat where no CI job collects them; they move to tests/unit_tests/benchmarks/, with tests for the category rule, a row the server could not read, and each release reading its own download. - The README asks for env.yaml before preparing, which reads the config, and says that run outputs carry the ground truth. The docs row says what grades the tasks this recipe keeps. validation.py's comment says what its patterns fill, and a test checks that a supplied model setting stays. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
…ownload, and keep rows on an empty one - `prepare` reads the ground truth file before the download, and refuses a missing file, a line that is not JSON or an entry with no `instance_id` with a ValueError that names the file and the line. A `null` ground truth field becomes an empty list. - An empty ground truth file only downloads the release; it no longer replaces the rows already written. - A test checks that each release's download is pinned to its revision; the revisions carry the secrets-detector allowlist pragma. - The README states the management-task exclusion by category and drops the internal tracker key; a failed database restore prints its whole log. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Felipe Vieira Frujeri <[email protected]>
|
/ok to test ce9e47a |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/45125295764 |
Stacked on #5473 (PostgreSQL on the
bird_interactserver), in the BIRD-Interact stack: #5465 → #5409 → #5473 → this PR → #5478 (parity with the BIRD-Interact ADK). This PR's diff against #5473 isbenchmarks/bird_interact, its prepare tests intests/unit_tests/benchmarks/, and the static validation ofnemo_gym/environment/validation.py.What changed
benchmarks/bird_interactruns BIRD-Interact's Lite and Full releases on thebird_interactEnvironment Server, with PostgreSQL. One recipe holds both releases and both modes; the server, and its five-task SQLite example, stay inenvironment_servers/bird_interact.config.yamla_interact.yamlfull.yamlfull_a_interact.yamlDockerfilebuilds the episode sandbox image from BIRD-Interact's official one (digest-pinned), which holds the dumps and the scripts that restore them. The restore runs at build time, into a data directory outside the base image's declared volume, so each episode starts PostgreSQL with the databases already in place. It creates therootdatabase that the restore scripts connect to, as the base image's entrypoint would, and addspython3andpsycopg2for the server's runner. The build fails when a restore script prints an import error or a dump folder did not become a database. Full is a build argument.prepare.pydownloads the release from Hugging Face: its rows, and the schema, column meanings and knowledge base of each database, which become the servers'database_dir. It merges the ground truth that the authors send on request into each task and its follow-up, byinstance_id, and writes the tasks the server can grade: those with ground truth and without custom test cases (the management tasks). feat(bird_interact): match the BIRD-Interact ADK's c-Interact, simulator and grading #5478 narrows this to BIRD-Interact's rule: a query is graded by its result even when it has test cases. It reads the ground truth fromdata/by default (bird_interact_gt_kg_testcases_1008.jsonlfor Lite,bird_interact_full_gt_kg_testcases_08022.jsonlfor Full), whichdata/.gitignorekeeps out of the repository;+prepare_script_args.ground_truth_jsonlnames another file. It refuses a file that matches none of the release's tasks, and prints how many tasks it kept and why it left the others out.prepare.pyturns such a string into a list of that one statement. With it, all 300 prepared Lite rows pass the server's task schema; the Full file always writes lists.config.yamland writes its dataset out; the release sets the servers'database_engine: postgresql,database_dirand image (bird_interact_image,benchmarks/bird_interact:<release>by default).manifest.yamlmirrors the Lite c-Interact config, withprompt_source: prepared: the server writes each prompt from the task.Why
The image, the data and the run configuration belong to a benchmark release, not to the server, which runs any release on any image that holds its databases as
<db>_template. Lite and Full differ only in the base image and the Hugging Face dataset, so one recipe holds both. No public issue: the PRs of the BIRD-Interact stack track the work.Validation
pytest tests/unit_tests/benchmarks/test_bird_interact_prepare.py(moved frombenchmarks/bird_interact/tests/, which no CI job collected)preparewritingdata/<release>/<mode>.jsonland its counts; a bad release, a bad mode and a missing ground truth refusedgym eval prepare --benchmark bird_interactgym eval prepare --benchmark bird_interact +prepare_script_args.ground_truth_jsonl=<empty file>data/lite/databases/<db>/holds the schema, column meanings and knowledge files the server reads; "kept 0 of 300 tasks; left out: 300 with no ground truth"gym env resolveon each of the four configspostgresqlwith the release'sdatabase_dir, image and prepare argumentspytest tests/unit_tests/environment/test_benchmarks.pytest_every_repo_benchmark_appears_in_listing, which fails the same way on main on this machine (its hostname resolves to 127.0.1.1, so nine sandbox configs of other benchmarks do not resolve).gym list benchmarkslistsbird_interactand its three variantsdocker build --platform linux/amd64 --tag benchmarks/bird_interact:lite benchmarks/bird_interactpsql -U rootconnects, which needs a database namedrootgrading.pyin a container from the imagesetupstarts PostgreSQL in 0.2 s;executeandgraderun onalien_template; a write inside a query is rolled back; a slow query times out; an error is reportedpre-commit run --fileson the recipeNot validated yet:
Rollout evidence
N/A for this PR: no task runs without the ground truth. #5478, which changes the server, has Lite runs through this recipe on the image built here, with a stand-in ground truth for three tasks.
Compatibility
New recipe.
validation.py's static wiring now fills avllm_modelblock's endpoint, key and model, and a top-level???setting a model leaf names, for every manifest; onlybird_interact's validation result changes (checked on all 266 manifests). Runtime parsing is unchanged.The same patterns also serve catalog lookup for configs without a manifest. With
POLICY_API_KEYunset,swe_together'sconfig.yaml,opencode.yamlandsmoke.yamlnow resolve their agent, sogym list benchmarksshowsopencode_agentfor them, where it showed none.Team review fixes (2026-11-19)
From a team review, in eef4ee3:
prepareleft out only tasks with test cases, so Full kept 17 management tasks (427, not 410), 7 of which this server cannot grade. It keeps the tasks whose two phases are both Query: 195 in Lite, 410 in Full.tests/unit_tests/benchmarks/, with tests for the category rule, a row the server could not read, and each release reading its own download.env.yamlbefore step 3, which reads the config, and says that run outputs carry the ground truth; the docs row says what grades the kept tasks;validation.py's comment says what its patterns fill, with a test that a supplied setting stays.Rollout evidence: the real ground truth is now in hand, and the stack's top has run Lite and Full through this recipe (Auto Ontology parity runs); this PR alone runs no rollout.
Not changed: the default image tag
benchmarks/bird_interact:<release>resolves to a third party's Docker Hub org if the image was never built (a convention 4 other benchmarks share): worth an issue on the convention.Review fixes (2026-11-19, second round)
From the second review, in 169374b:
preparereads the ground truth file before the download. A missing file, a line that is not JSON, or an entry with noinstance_idraises aValueErrorthat names the file and the line; anullground truth field becomes an empty list.prepareprints that it wrote no rows and keeps an earlier file.pytest tests/unit_tests/benchmarks/test_bird_interact_prepare.py: 22 passed. Each new test fails with its change reverted.detect-secrets scanonprepare.pyreports nothing.