Skip to content

feat(ultra): serve GenRM and NL2Bash as external vLLM pools - #3529

Merged
yfw merged 3 commits into
mainfrom
amahishi/ultra-external-recipe
Aug 11, 2026
Merged

yfw merged 3 commits into
mainfrom
amahishi/ultra-external-recipe

Conversation

@macandro96

Copy link
Copy Markdown
Contributor

Add EXTERNAL_JUDGES=1 to ultra_launch.sh, which registers the GenRM and NL2Bash judges as fixed-model vLLM pools in a second Slurm heterogeneous component instead of serving them inside the training Ray cluster. The allocation wrapper starts each replica, brings up one load balancer per pool, waits for health, and substitutes the resolved endpoints into the driver command before ray.sub starts on the training component.

Also add NL2BASH_BASE_URL support for routing that judge at an already running service.

Set moe_backend=flashinfer_cutlass on the policy vLLM across the Ultra stage configs, required by the vLLM 0.25 bump.

What does this PR do ?

Add a one line overview of what this PR aims to accomplish.

Issues

List issues that this PR closes (syntax):

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally? Visit our Testing Guide for how to run tests
  • Did you add or update any necessary documentation? Visit our Document Development Guide for how to write, build and test the docs.

Additional Information

  • ...

Add EXTERNAL_JUDGES=1 to ultra_launch.sh, which registers the GenRM and
NL2Bash judges as fixed-model vLLM pools in a second Slurm heterogeneous
component instead of serving them inside the training Ray cluster. The
allocation wrapper starts each replica, brings up one load balancer per
pool, waits for health, and substitutes the resolved endpoints into the
driver command before ray.sub starts on the training component.

Also add NL2BASH_BASE_URL support for routing that judge at an already
running service.

Set moe_backend=flashinfer_cutlass on the policy vLLM across the Ultra
stage configs, required by the vLLM 0.25 bump.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Anish Mahishi <[email protected]>
@macandro96
macandro96 requested review from a team as code owners August 6, 2026 21:22
@copy-pr-bot

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

Comment thread docs/guides/nemotron-3-ultra.md Resolved
Review follow-ups for the EXTERNAL_JUDGES mode.

Register the GenRM and NL2Bash pools independently, each gated on its model
variable, instead of requiring both. Stages declare only the judges they use,
so emitting an override for an absent judge aborted the driver on
rlhf_teacher (no NL2Bash block), reasoning_teacher (no GenRM block), and
swe_teacher (neither). Gating on the model variables rather than grepping
CONFIG_PATH keeps this correct for configs that inherit their judge blocks
through `defaults:`.

Resolve RESULTS_DIR, CHECKPOINT_DIR, and BASE_LOG_DIR to absolute paths, and
check BASE_LOG_DIR and EXTERNAL_VLLM_TOOLS_DIR_HOST against
EXTERNAL_VLLM_SHARED_ROOT before creating any run directories, so a launch
that cannot satisfy the wrapper fails immediately with actionable output
rather than inside validate_external_vllm_submission.

Default GENRM_API_MODEL_NAME and NL2BASH_API_MODEL_NAME from their checkpoints
on the hand-set *_BASE_URL path. Without this no model= override was emitted,
so Gym kept the config's `model: null` and failed validation.

Fix the guide's external-judges example, where a comment inside a
backslash-continuation truncated the command so none of the variables were
set, and the node counts did not satisfy the segment-divisibility check.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Anish Mahishi <[email protected]>
@macandro96 macandro96 added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Aug 10, 2026
@github-actions github-actions Bot added the Documentation Improvements or additions to documentation label Aug 10, 2026
The external GenRM pool defaulted to a reasoning parser named ultra_v3 and
required a plugin .py that registers it. No such plugin exists in this
repository, so the recipe and guide pointed at a file users cannot obtain and
the launcher refused to start without it.

vLLM ships a nemotron_v3 reasoning parser that handles the <think>/</think>
format the GenRM emits, so default GENRM_REASONING_PARSER_NAME to it and make
GENRM_REASONING_PARSER optional again. When a plugin is given, its path is
still passed to vLLM and shared with the service containers; when it is not,
neither flag is emitted.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Anish Mahishi <[email protected]>
@macandro96

Copy link
Copy Markdown
Contributor Author

/ok to test 5c90fe8

@macandro96
macandro96 requested a review from yfw August 10, 2026 23:08
@yfw
yfw enabled auto-merge (squash) August 10, 2026 23:46
@yfw
yfw merged commit 5014ab3 into main Aug 11, 2026
82 checks passed
@yfw
yfw deleted the amahishi/ultra-external-recipe branch August 11, 2026 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants