Skip to content

feat: ether0 environment - #1472

Merged
cmunley1 merged 3 commits into
mainfrom
cmunley1/ether0-env
Jun 24, 2026
Merged

cmunley1 merged 3 commits into
mainfrom
cmunley1/ether0-env

Conversation

@cmunley1

Copy link
Copy Markdown
Contributor

move ether0 environment to environments/

Signed-off-by: Christian Munley <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented May 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@marta-sd
marta-sd self-requested a review June 15, 2026 09:19
Start servers and collect rollouts
```bash
# start vllm and nemo gym servers
vllm serve futurehouse/ether0 &

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.

Do we know which vllm version should be used here? I tried with the latest (0.23) and the model outputs gibberish

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.

Or more broadly: these deployment command does not work for me. Either wrong vllm version or I'm missing some flags/sampling params.

"output": [
      {
        "id": "msg_0ab03270a5c14a83b3376726beb2d792",
        "content": [
          {
            "annotations": [],
            "text": "<|think_start|>Okay,Ġlet'sĠsee.ĠIĠneedĠtoĠfigureĠoutĠwhichĠofĠtheseĠthreeĠmoleculesĠhasĠanĠoralĠLD50ĠinĠratsĠofĠ6.09Ġmg/kg.ĠLD50ĠisĠtheĠlethalĠdoseĠthatĠkillsĠ50%ĠofĠtheĠtestĠsubjects,ĠsoĠaĠlowerĠLD50ĠmeansĠtheĠcompoundĠisĠmoreĠtoxic.Ġ6.09Ġmg/kgĠisĠaĠprettyĠlowĠvalue,ĠsoĠtheĠcompoundĠisĠquiteĠtoxic.ĊĊFirst,Ġlet'sĠlookĠatĠtheĠstructuresĠofĠtheĠgivenĠmolecules:ĊĊ1.Ġ**FirstĠmolecule:ĠC(CS)(=O)O**ĊĠĠĠ-ĠThisĠisĠaĠthioetherĠderivativeĠofĠaĠcarboxylicĠacid,ĠsimilarĠtoĠthioetherĠderivativesĠofĠaceticĠacid.ĠThioethersĠcanĠbeĠtoxic,ĠbutĠtheirĠLD50ĠisĠtypicallyĠaroundĠ100âĢĵ500Ġmg/kg.ĊĊ2.Ġ**SecondĠmolecule:ĠC(O)CNFCC(=O)OClCC(=O)O**ĊĠĠĠ-ĠThisĠisĠaĠcomplexĠstructureĠwithĠaĠmorpholine-likeĠringĠandĠesterĠgroups,ĠsimilarĠtoĠaĠphosgeneĠderivative.ĠPhosgeneĠisĠhighlyĠtoxic,ĠandĠitsĠoralĠLD50ĠinĠratsĠisĠaroundĠ6âĢĵ8Ġmg/kg.ĊĊ3.Ġ**ThirdĠmolecule:ĠC(O)CNFCC(=O)OClCC(=O)O**ĊĠĠĠ-ĠThisĠisĠaĠcomplexĠstructureĠwithĠaĠmorpholine-likeĠringĠandĠesterĠgroups,ĠsimilarĠtoĠaĠphosgeneĠderivative.ĠPhosgeneĠisĠhighlyĠtoxic,ĠandĠitsĠoralĠLD50ĠinĠratsĠisĠaroundĠ6âĢĵ8Ġmg/kg.ĊĊComparingĠtheĠoptions,ĠtheĠsecondĠmoleculeĠisĠtheĠmostĠlikelyĠtoĠhaveĠanĠoralĠLD50ĠofĠ6.09Ġmg/kg.<|think_end|><|answer_start|>C(O)CNFCC(=O)OClCC(=O)O<|answer_end|>",
            "type": "output_text",
            "logprobs": null
          }
        ],
        "role": "assistant",
        "status": "completed",
        "type": "message"
      }
    ],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks for raising this, i think we should open an issue or just revisit this soon, for now the goal of this PR is to just migrate the environment config, instructions, data prep to the new environments dir rather than fix things. This worked last time i tested, so it must be vllm version or something

Comment thread environments/ether0/prepare.py Resolved
@cmunley1
cmunley1 merged commit fdd6130 into main Jun 24, 2026
15 checks passed
@cmunley1
cmunley1 deleted the cmunley1/ether0-env branch June 24, 2026 00:08
ritaneves pushed a commit that referenced this pull request Jun 25, 2026
move ether0 environment to environments/

Signed-off-by: Christian Munley <[email protected]>
Signed-off-by: Rita Fernandes Neves <[email protected]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants