Repository navigation
Feature/biomnibench da harbor - #1897
Merged
Merged
Conversation
Signed-off-by: Sergei Kolchenko <[email protected]>
Signed-off-by: Sergei Kolchenko <[email protected]>
Signed-off-by: Sergei Kolchenko <[email protected]>
Signed-off-by: Sergei Kolchenko <[email protected]>
Signed-off-by: Sergei Kolchenko <[email protected]>
Signed-off-by: Sergei Kolchenko <[email protected]>
Signed-off-by: Sergey Kolchenko <[email protected]>
Signed-off-by: Sergei Kolchenko <[email protected]>
cmunley1
reviewed
Jul 3, 2026
| @@ -0,0 +1,3 @@ | |||
| # Downloaded/materialized data (see prepare.py). Not committed to git. | |||
Contributor
There was a problem hiding this comment.
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Signed-off-by: Sergei Kolchenko <[email protected]>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
Signed-off-by: Christian Munley <[email protected]>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
cmunley1
reviewed
Jul 8, 2026
| # by default. HarborAgent doesn't override compute_metrics/get_key_metrics, so this | ||
| # uses AggregateMetricsMixin's generic reward-based aggregation (mean/max/min/median/std | ||
| # via RewardProfiler) over the `reward` field already present on every /run response. | ||
| app.post("/aggregate_metrics")(self.aggregate_metrics) |
Contributor
There was a problem hiding this comment.
why was this change needed?
cmunley1
enabled auto-merge (squash)
July 10, 2026 20:53
cmunley1
disabled auto-merge
July 11, 2026 04:06
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding BiomniBenchDA