Repository navigation
cp: feat: add standalone Gym Docker container (2161) into r0.5.0 - #2334
Merged
Merged
Conversation
## Standalone NeMo-Gym container
```
FROM cuda-dl-base:26.03 (ubuntu + CUDA, no NGC pytorch)
│
▼
[base stage]
Python 3.12, uv, git
│
▼
[hermetic stage]
uv sync --extra vllm --locked
├── nemo-gym core (ray, fastapi, aiohttp, mlflow …)
├── vllm == 0.26.0
└── flashinfer-python == 0.6.14 (pre-compiled kernels)
│
▼
[release stage]
install nemo-gym project
optional: NEMO_GYM_PREFETCH_SERVERS → per-server .venvs
entrypoint: gym
```
**Per-server venvs** (e.g. `local_vllm_model`, `genrm_model`) are
separate isolated environments created by `gym env start` at runtime via
`uv pip install -e .`. Pass `NEMO_GYM_PREFETCH_SERVERS` to bake them in
at build time instead.
## CI
`build-container.yml` runs on `pull_request` and `push` to main (when
`Dockerfile`/`pyproject.toml`/`uv.lock` change) using `ubuntu-latest`.
Validates the Docker build only — no push, no registry.
## Changes
- `docker/Dockerfile` — 4-stage build, vllm + flashinfer locked
- `pyproject.toml` — `[vllm]` optional extra (`vllm==0.26.0`,
`flashinfer-python==0.6.14`)
- `uv.lock` — locked packages
- `local_vllm_model/setup.py`, `genrm_model/setup.py` — flashinfer
pinned alongside vllm
- `.github/workflows/build-container.yml` — build-only CI, triggers on
PR and push to main
## Dispatch
https://github.com/NVIDIA-NeMo/Gym/actions/workflows/build-container.yml
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
Contributor
Author
|
/ok to test 4dac33d |
kajalj22
approved these changes
Aug 4, 2026
Contributor
|
/ok to test 568184b |
This branch was previously deployed
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.
beep boop [🤖]: Hi @kajalj22 👋,