Skip to content

cp: feat: add standalone Gym Docker container (2161) into r0.5.0 - #2334

Merged
kajalj22 merged 2 commits into
r0.5.0from
cherry-pick-2161-r0.5.0
Aug 5, 2026
Merged

kajalj22 merged 2 commits into
r0.5.0from
cherry-pick-2161-r0.5.0

Conversation

@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

beep boop [🤖]: Hi @kajalj22 👋,

we've cherry picked #2161 into  for you! 🚀

Please review and approve this cherry pick by your convenience!

## 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>
@copy-pr-bot

copy-pr-bot Bot commented Aug 4, 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.

@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor Author

/ok to test 4dac33d

@kajalj22

kajalj22 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

/ok to test 568184b

@kajalj22
kajalj22 merged commit 4ae062d into r0.5.0 Aug 5, 2026
31 checks passed
@kajalj22
kajalj22 deleted the cherry-pick-2161-r0.5.0 branch August 5, 2026 02:13

This branch was previously deployed

1 inactive deployment
public — 568184b8 Deployed Aug 5, 2026 by copy-pr-bot[bot] via release / finalize / notify #1075
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants