Repository navigation
feat(ultra): serve GenRM and NL2Bash as external vLLM pools - #3529
Merged
Merged
Conversation
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]>
yfw
reviewed
Aug 10, 2026
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]>
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]>
Contributor
Author
|
/ok to test 5c90fe8 |
yfw
approved these changes
Aug 10, 2026
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.
Add
EXTERNAL_JUDGES=1toultra_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_URLsupport for routing that judge at an already running service.Set
moe_backend=flashinfer_cutlasson 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
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Additional Information