Skip to content

Add BiomniBench-DA as a Gym Benchmark - #3915

Merged
zyzhou5 merged 10 commits into
mainfrom
sanyamk/biomnibench-harbor
Oct 12, 2026
Merged

zyzhou5 merged 10 commits into
mainfrom
sanyamk/biomnibench-harbor

Conversation

@activatedgeek

@activatedgeek activatedgeek commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds BiomniBench-DA as an experimental NeMo Gym benchmark for evaluating agents on biomedical data-analysis tasks.

Data preparation uses upstream Hugging Face dataset, adapts its tasks into Harbor task directories, and generates a Gym JSONL input file. It uses the existing Harbor agent integration harbor_agent_general to run OpenCode in Singularity containers.

Includes a shared Docker image, benchmark configuration and manifest, preparation utilities, and usage documentation. The key change from the source dataset is to support general judge providers through LiteLLM.

Validation

See provided README for command details, which follows the same CLI pattern as other benchmarks.

Rollouts

N/A. Does not change any existing resource server.

Compatibility and benchmark impact

None.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Documentation added or updated, or N/A with justification.
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format checks pass).
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

@copy-pr-bot

copy-pr-bot Bot commented Oct 2, 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.

@activatedgeek
activatedgeek force-pushed the sanyamk/biomnibench-harbor branch 2 times, most recently from 65a5046 to 0e61339 Compare October 2, 2026 14:50
@activatedgeek
activatedgeek marked this pull request as ready for review October 2, 2026 14:56
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team October 2, 2026 14:57
@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:medium Single-domain change with interacting parts or a moderate review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Oct 2, 2026
@activatedgeek
activatedgeek force-pushed the sanyamk/biomnibench-harbor branch from 0e61339 to 840d67b Compare October 2, 2026 16:35
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 5, 2026
@activatedgeek
activatedgeek force-pushed the sanyamk/biomnibench-harbor branch from 840d67b to 0a76c0d Compare October 9, 2026 18:43
@activatedgeek
activatedgeek requested a review from zyzhou5 October 9, 2026 19:58
@github-actions github-actions Bot removed the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 9, 2026
@activatedgeek
activatedgeek force-pushed the sanyamk/biomnibench-harbor branch from 350963e to 4803084 Compare October 12, 2026 15:08
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Oct 12, 2026
@zyzhou5
zyzhou5 added this pull request to the merge queue Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

Merged via the queue into main with commit 1efee62 Oct 12, 2026
41 checks passed
@zyzhou5
zyzhou5 deleted the sanyamk/biomnibench-harbor branch October 12, 2026 20:35
tanishku pushed a commit to tanishku/Gym that referenced this pull request Nov 30, 2026
…'s name into their benchmarks and refuse new shared names (NVIDIA-NeMo#6692)

* refactor(environments)!: remove environments/ether0, a copy of the resources server's config

A catalog name is its folder path under benchmarks/ or environments/, and
ether0 was a folder in both. environments/ether0 (NVIDIA-NeMo#1472) repeats
resources_servers/ether0/configs/ether0.yaml with paths under
environments/ (it lacks only oracle_max_concurrency), and its example data
and prepare.py are byte-identical to the resources server's
data/example*.jsonl and scripts/prepare_ether0.py. The benchmark keeps the
name.

benchmarks/ether0/prepare.py now imports format_row from
resources_servers/ether0/scripts/prepare_ether0.py, the same function, and
its README links there.

Breaking: `--environment ether0` and config paths under
environments/ether0/ no longer resolve. `--resources-server ether0` loads
the same servers and datasets.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yuhe Zhang <[email protected]>

* refactor(labbench2_pdf)!: move the LabBench2 PDF environment into its benchmark

A catalog name is its folder path under benchmarks/ or environments/, and
labbench2_pdf was a folder in both. environments/labbench2_pdf was the
benchmark's implementation and nothing else used it: the benchmark's
config included its config, its prepare.py imported three of its modules,
and harbor_agent_general's config test loaded its two profiles. Its files
now live in benchmarks/labbench2_pdf/ and the environment folder is gone:

- config.yaml -> harbor_docker.yaml (the Harbor job profile that
  config.yaml includes) and config_singularity.yaml ->
  harbor_singularity.yaml. Neither declares a benchmark dataset, so the
  catalog does not list them.
- prepare.py -> materialize.py (the Harbor task materializer, since the
  benchmark already has a prepare.py); data_utils.py, download_papers.py,
  download_questions.py, prepare_data.py and verifier.py sit beside it,
  with docker/ and .dockerignore. ENV_ROOT is now BENCHMARK_DIR.
- README.md -> harbor-tasks.md, which the benchmark README links to for
  acquisition, task layout, direct runs and licensing.
- The example input and smoke-rollout evidence move to data/, whose
  .gitignore keeps them while ignoring generated files. Downloads,
  generated Harbor tasks and job directories now go under
  benchmarks/labbench2_pdf/data/.
- The tests move to tests/ (test_prepare.py -> test_materialize.py).

Breaking: `--environment labbench2_pdf`, config paths under
environments/labbench2_pdf/ and `environments.labbench2_pdf` imports no
longer resolve. Use `--config benchmarks/labbench2_pdf/harbor_docker.yaml`
(or harbor_singularity.yaml) and `benchmarks.labbench2_pdf`. The
benchmark's own name, config and selector are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yuhe Zhang <[email protected]>

* refactor(biomnibench_da)!: fold environments/biomnibench_da into the benchmark as a Terminus 2 preset

A catalog name is its folder path under benchmarks/ or environments/, and
biomnibench_da was a folder in both. The environment (NVIDIA-NeMo#1897) and the
benchmark (NVIDIA-NeMo#3915) download the same upstream dataset,
phylobio/BiomniBench-DA. The environment only adds another harness
(Terminus 2 through harbor_agent with Gym's model server) and a seeded
train/test partition. A harness-only difference is a run preset of the
benchmark, without a manifest of its own, so the environment now lives in
benchmarks/biomnibench_da/terminus_2/, apart from the benchmark's OpenCode
adapter in harbor/:

- config.yaml -> harbor_docker.yaml, config_singularity.yaml ->
  harbor_singularity.yaml. Neither declares a benchmark dataset or is named
  config.yaml, so the catalog does not list them and
  `--benchmark biomnibench_da/terminus_2` selects nothing.
- prepare.py, docker/, .dockerignore, data/ (example input, rollouts and
  metrics) and tests/ move unchanged apart from paths. ENV_ROOT is now
  PRESET_DIR, and the test's repository root is one level further up.
- README.md is the preset's README, linked from the benchmark README; the
  harbor_agent README's worked example points at it.
- Every path naming the old folder moves: the configs' local_dataset_path,
  prepare.py's examples and generator, the example metrics' jsonl_fpath
  and the example rollouts' task paths.
- The benchmark's .gitignore anchors data/ and logs/ to its root so the
  preset's committed data/ is not ignored, a .dockerignore keeps
  terminus_2/ out of the benchmark image's build context, and an
  __init__.py makes the folder a package for the preset's tests.

Breaking: `--environment biomnibench_da`, config paths under
environments/biomnibench_da/ and `environments.biomnibench_da` imports no
longer resolve. Use `--config
benchmarks/biomnibench_da/terminus_2/harbor_docker.yaml` (or
harbor_singularity.yaml) and `benchmarks.biomnibench_da.terminus_2`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yuhe Zhang <[email protected]>

* feat(environment): refuse a top-level name that the other catalog tree has

A catalog name is its folder path, and it identifies one entry whatever
its kind, so a top-level folder name is used in only one of benchmarks/
and environments/. This holds for folders without a manifest too, since
their config is listed under the folder path.

- registry.folder_in_other_catalog_tree returns the folder in the other
  tree of the same search root that has a name's top-level folder name.
- `gym env init --environment/--benchmark` refuses such a name before it
  writes anything.
- `gym env validate` refuses a manifest whose name's top-level folder is
  in the other tree.
- tests/unit_tests/test_catalog_tree_names.py fails when a tracked
  top-level folder name is in both trees of the repository.

Discovery (`gym list`) does not enforce it, so search roots whose trees
already share a name keep listing both entries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yuhe Zhang <[email protected]>

* docs(labbench2_pdf): generate Docker tasks again instead of moving them

A Docker task's docker-compose.yaml binds its corpus view at /papers by
the view's absolute host path, so a tasks_docker tree moved from
environments/labbench2_pdf/data still binds the folder it was generated
in and loses /papers once that folder is gone. harbor-tasks.md now
requires moving the question and PDF caches and generating the tasks
again from them with prepare_data.py (--questions-dir, --papers-dir,
--overwrite), which downloads nothing and keeps the task names.
Singularity tasks hold hard links to their papers and name no host
path, so a moved tasks_singularity tree keeps working.

Tests cover generating again after a move (every /papers bind source
exists under the new tree, same task names), a moved Singularity tree
naming no host path, and the default output folders sitting in the
folder that holds materialize.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Yuhe Zhang <[email protected]>

---------

Signed-off-by: Yuhe Zhang <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
public — 4803084e Deployed Oct 12, 2026 by copy-pr-bot[bot] via release / finalize / notify #5050
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 complexity:medium Single-domain change with interacting parts or a moderate review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants