Skip to content

pypi compatibility#649

Merged
bxyu-nvidia merged 26 commits intomainfrom
cmunley1/pypi-compat
Mar 6, 2026
Merged

pypi compatibility#649
bxyu-nvidia merged 26 commits intomainfrom
cmunley1/pypi-compat

Conversation

@cmunley1
Copy link
Copy Markdown
Contributor

@cmunley1 cmunley1 commented Feb 5, 2026

  • search cwd for env.yaml and for config paths provided to ng_run.
  • use importlib.metadata for ng_help
  • modify server requirements.txt or pyproject.toml to use pypi nemo-gym rather than ../../ relative path

basic tests done of ng_run and ng_collect_rollouts with an environment outside of Gym/.

I think that we should really consider a few things, but maybe we stick to minimal changes for now:

  • packaging environments separately
  • moving resources_servers etc inside nemo_gym to have only 1 entrypoint in sitepackages, i find it strange to have site-packages/resources_servers
  • giving user clear guidance on proper way to make new env with pip installed gym. Mocking Gym repo structure is 1 option

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Feb 5, 2026

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.

Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Comment thread .github/workflows/build-test-publish-wheel.yml Outdated
Comment thread nemo_gym/cli.py Outdated
Comment thread nemo_gym/cli.py Outdated
@cmunley1 cmunley1 requested a review from chtruong814 February 10, 2026 02:12
@cmunley1
Copy link
Copy Markdown
Contributor Author

to test:
uv pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ nemo-gym==0.2.9172rc0 , create local resources server (just copy paste one out of Gym and change name), and run rollouts.

Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot bot commented Feb 19, 2026

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.

Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
@cmunley1 cmunley1 mentioned this pull request Mar 2, 2026
5 tasks
cmunley1 added 3 commits March 3, 2026 21:58
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
@bxyu-nvidia bxyu-nvidia merged commit 67034a7 into main Mar 6, 2026
5 checks passed
@bxyu-nvidia bxyu-nvidia deleted the cmunley1/pypi-compat branch March 6, 2026 01:49
@bxyu-nvidia bxyu-nvidia linked an issue Mar 6, 2026 that may be closed by this pull request
5 tasks
gwarmstrong pushed a commit that referenced this pull request Mar 9, 2026
- search cwd for `env.yaml` and for config paths provided to `ng_run`.
- use `importlib.metadata` for `ng_help`
- modify server requirements.txt or pyproject.toml to use pypi nemo-gym
rather than ../../ relative path

basic tests done of `ng_run` and `ng_collect_rollouts` with an
environment outside of `Gym/`.

I think that we should really consider a few things, but maybe we stick
to minimal changes for now:

- packaging environments separately
- moving resources_servers etc inside nemo_gym to have only 1 entrypoint
in sitepackages, i find it strange to have
`site-packages/resources_servers`
- giving user clear guidance on proper way to make new env with pip
installed gym. Mocking Gym repo structure is 1 option

---------

Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: George Armstrong <georgea@nvidia.com>
vadam5 pushed a commit that referenced this pull request Mar 10, 2026
- search cwd for `env.yaml` and for config paths provided to `ng_run`.
- use `importlib.metadata` for `ng_help`
- modify server requirements.txt or pyproject.toml to use pypi nemo-gym
rather than ../../ relative path

basic tests done of `ng_run` and `ng_collect_rollouts` with an
environment outside of `Gym/`.

I think that we should really consider a few things, but maybe we stick
to minimal changes for now:

- packaging environments separately
- moving resources_servers etc inside nemo_gym to have only 1 entrypoint
in sitepackages, i find it strange to have
`site-packages/resources_servers`
- giving user clear guidance on proper way to make new env with pip
installed gym. Mocking Gym repo structure is 1 option

---------

Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
Signed-off-by: George Armstrong <georgea@nvidia.com>
MahanFathi pushed a commit that referenced this pull request Mar 24, 2026
- search cwd for `env.yaml` and for config paths provided to `ng_run`. 
- use `importlib.metadata` for `ng_help`
- modify server requirements.txt or pyproject.toml to use pypi nemo-gym
rather than ../../ relative path

basic tests done of `ng_run` and `ng_collect_rollouts` with an
environment outside of `Gym/`.

I think that we should really consider a few things, but maybe we stick
to minimal changes for now:

- packaging environments separately
- moving resources_servers etc inside nemo_gym to have only 1 entrypoint
in sitepackages, i find it strange to have
`site-packages/resources_servers`
- giving user clear guidance on proper way to make new env with pip
installed gym. Mocking Gym repo structure is 1 option

---------

Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
jsw-zorro pushed a commit to niletron/Gym that referenced this pull request Apr 7, 2026
- search cwd for `env.yaml` and for config paths provided to `ng_run`. 
- use `importlib.metadata` for `ng_help`
- modify server requirements.txt or pyproject.toml to use pypi nemo-gym
rather than ../../ relative path

basic tests done of `ng_run` and `ng_collect_rollouts` with an
environment outside of `Gym/`.

I think that we should really consider a few things, but maybe we stick
to minimal changes for now:

- packaging environments separately
- moving resources_servers etc inside nemo_gym to have only 1 entrypoint
in sitepackages, i find it strange to have
`site-packages/resources_servers`
- giving user clear guidance on proper way to make new env with pip
installed gym. Mocking Gym repo structure is 1 option

---------

Signed-off-by: Christian Munley <cmunley@nvidia.com>
Signed-off-by: cmunley1 <cmunley@nvidia.com>
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.

Publish NeMo Gym to PyPI

2 participants