Skip to content

chore: Bump vllm and ray - #1199

Closed
guyueh1 wants to merge 6 commits into
NVIDIA-NeMo:mainfrom
guyueh1:bump_vllm_ray
Closed

guyueh1 wants to merge 6 commits into
NVIDIA-NeMo:mainfrom
guyueh1:bump_vllm_ray

Conversation

@guyueh1

@guyueh1 guyueh1 commented Sep 24, 2025 •

Copy link
Copy Markdown
Contributor

What does this PR do ?

Bump to vllm 0.10.1.1 ray 2.48

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

  • ...

Summary by CodeRabbit

  • New Features

    • Training logs now include a token multiplicative probability error metric for better visibility during runs.
  • Chores

    • Updated dependencies: upgraded Ray and vLLM, unpinned Transformers, and added FlashInfer.
    • Began tracking the datasets directory in version control.
    • Removed unused Ray dashboard gRPC port configuration from startup scripts.

Signed-off-by: Guyue Huang <[email protected]>
Signed-off-by: Guyue Huang <[email protected]>
Signed-off-by: Guyue Huang <[email protected]>
@guyueh1
guyueh1 requested review from a team as code owners September 24, 2025 17:24
@guyueh1 guyueh1 changed the title chores: Bump vllm and ray chore: Bump vllm and ray Sep 24, 2025
@coderabbitai

coderabbitai Bot commented Sep 24, 2025

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This PR updates dependencies in pyproject.toml, adds a new training metric print in grpo.py, removes a Ray dashboard gRPC port variable and flag in ray.sub, and stops ignoring the datasets/ directory by modifying .gitignore.

Changes

Cohort / File(s) Summary
Dependency configuration updates
pyproject.toml
Bumped ray[default] to 2.48.0; relaxed transformers version pin; updated vllm to 0.10.1.1 across groups; added flashinfer-python==0.2.11 to mcore group.
Training log output
nemo_rl/algorithms/grpo.py
Added printing of token_mult_prob_error metric in grpo_train alongside existing metrics.
Ray startup script cleanup
ray.sub
Removed DASHBOARD_GRPC_PORT var and --dashboard-grpc-port=${DASHBOARD_GRPC_PORT} from head node start command.
VCS ignore rules
.gitignore
Removed ignore rule for datasets/, making the directory tracked.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Test Results For Major Changes ⚠️ Warning The PR primarily bumps dependencies (vLLM 0.10.1.1, Ray 2.48), unpins transformers, adds flashinfer-python, tweaks a Ray startup arg, and adds a training log line. These changes can plausibly impact performance, stability, or numerics (e.g., runtime behavior of vLLM/Ray, unpinned transformers drift, flashinfer acceleration), yet the PR description contains no test results, perf numbers, or convergence evidence. Given the potential impact, test or benchmark context is expected by this check but is absent in the provided description. Therefore, the condition is not satisfied. Please add brief validation details: basic CI/test pass confirmation, smoke tests for training/inference, and before/after performance metrics (throughput/latency and GPU/CPU config) for vLLM/Ray changes; additionally note any convergence/numerics checks on a small RL run. Given transformers is now unpinned, specify the tested transformers version and consider pinning or documenting the supported range. If removing DASHBOARD_GRPC_PORT is required by Ray 2.48, include a note confirming cluster startup works on head/worker with the new defaults. Once these are documented, this check can pass.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly conveys that the pull request’s primary change is bumping the vllm and ray dependencies, precisely reflecting the updated dependency versions in the diff without extraneous details.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
nemo_rl/algorithms/grpo.py (1)

962-962: Guard metric access; average this metric for consistency.

Use a safe access to avoid surprises if the metric is ever missing, and consider averaging it like other rate-like metrics.

Apply this diff to guard the print:

-            print(f"  • Token mult prob error: {metrics['token_mult_prob_error']:.4f}")
+            print(f"  • Token mult prob error: {metrics.get('token_mult_prob_error', float('nan')):.4f}")

Additionally, average the metric in the aggregation loop (outside this hunk) by adding it to the “mean” set:

# In the metrics aggregation loop above:
if k in {
    "lr",
    "wd",
    "reward",
    "global_valid_seqs",
    "global_valid_toks",
    "mean_prompt_length",
    "token_mult_prob_error",  # add this
}:
    metrics[k] = np.mean(v).item()
else:
    metrics[k] = np.sum(v).item()
pyproject.toml (1)

96-102: Add platform marker for flashinfer to avoid install failures off Linux.

FlashInfer wheels are typically Linux/CUDA-only. Add a platform marker to prevent failed installs on unsupported platforms.

-    "vllm==0.10.1.1",
+    "vllm==0.10.1.1",
@@
-    "flashinfer-python==0.2.11",
+    "flashinfer-python==0.2.11; platform_system == 'Linux'",

Optionally further restrict by CUDA arch if you’ve hit compatibility issues.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 63439ac and 3dbc0d8.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (4)
  • .gitignore (0 hunks)
  • nemo_rl/algorithms/grpo.py (1 hunks)
  • pyproject.toml (4 hunks)
  • ray.sub (0 hunks)
💤 Files with no reviewable changes (2)
  • ray.sub
  • .gitignore
🧰 Additional context used
📓 Path-based instructions (2)
**/*.py

📄 CodeRabbit inference engine (CODING_GUIDELINES.md)

**/*.py: Follow the Google Python Style Guide for all Python code
Target Python 3.12+ for all Python code in NeMo-RL
Indent Python code with 4 spaces; do not use tabs
Python filenames should be snake_case (e.g., some_file.py)
Class names should be PascalCase
Function and method names should be snake_case
Local variable names should be snake_case; if starting with a number, prefix with k (e.g., k_99th_percentile)
Global variables should be UPPER_SNAKE_CASE and prefixed with G_ (e.g., G_MY_GLOBAL)
Constants should be UPPER_SNAKE_CASE
Avoid shadowing variables declared in an outer scope
Initialize all externally visible members of a class in the constructor
For public interfaces used outside a file, prefer docstrings over comments
Use comments mainly for code within a function or interfaces local to a file
Commented-out code must include a nearby comment explaining usage and why it is commented out; otherwise remove before merging
Use Google-style docstrings for classes and functions (Sphinx-parseable)
Avoid using reflection when functionality can be easily achieved without it
Limit except clauses to the smallest specific set of exceptions possible
For duck-typing via try/except, keep the try body minimal and use else for main logic
Add the NVIDIA copyright header (with current year) at the top of all Python files, excluding tests/ and test-only scripts

Files:

  • nemo_rl/algorithms/grpo.py
nemo_rl/**/*.py

📄 CodeRabbit inference engine (CODING_GUIDELINES.md)

nemo_rl/**/*.py: Do not set non-None configuration defaults in code; YAML is the single source of truth for defaults
Access required config attributes directly (e.g., policy_cfg["precision"]) and assume presence; do not introduce hidden defaults
Express configuration optionality via TypedDict using typing.NotRequired
When adding a new config key to a TypedDict subclass, document the key’s purpose, valid values/types, and recommended default in code
For any class or function decorated with @ray.remote, add '# pragma: no cover' on the class/def line (and on remote functions)

Files:

  • nemo_rl/algorithms/grpo.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Lint check
  • GitHub Check: Post submodule check comment / Comment on PR
  • GitHub Check: Post automodel integration comment / Comment on PR
🔇 Additional comments (3)
pyproject.toml (3)

61-65: vLLM 0.10.1.1 pin: verify compatibility with TE/flash-attn/torch combo.

Confirm this version works with torch==2.7.1, transformer-engine==2.5.0 and flash-attn==2.7.4.post1 across all extras that depend on vLLM.


73-81: Same vLLM pin here—ensure all extras remain in sync.

This mirrors the earlier vLLM pin; keep all three extras consistent when bumping next time.


27-28: Pin Transformers to a tested major range

-    "ray[default]==2.48.0",
-    "transformers",
+    "ray[default]==2.48.0",
+    "transformers>=4.51,<5",

Verify CI on Python 3.12 with torch==2.7.1 passes and that AutoProcessor/tokenizers/logits processor APIs remain stable across 4.51–<5.

@guyueh1

guyueh1 commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

@terrykong since the v0..4 branch has been cut, can we try to merge this minor version bump now?

@guyueh1
guyueh1 requested review from terrykong and yuki-97 October 8, 2025 15:53
@guyueh1 guyueh1 added the CI:L1 Run doctests, unit tests, and functional tests label Oct 8, 2025
@guyueh1 guyueh1 linked an issue Oct 14, 2025 that may be closed by this pull request
Comment thread pyproject.toml
# https://github.com/NVIDIA/TransformerEngine/blob/v2.3/transformer_engine/pytorch/attention/dot_product_attention/utils.py#L108
# https://github.com/facebookresearch/xformers/blob/8354497deb2c04c67fbb2e2ad911e86530da0e90/xformers/ops/fmha/flash.py#L76
"flash-attn==2.7.4.post1",
"flashinfer-python==0.2.11",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this for? is it related to vllm-project/vllm#15228 (comment) ?

@guyueh1

guyueh1 commented Oct 22, 2025

Copy link
Copy Markdown
Contributor Author

Close as we already start bumping to a newer version in #1334

This branch was previously deployed

1 inactive deployment
nemo-ci — 4ea8dd7c Deployed Oct 8, 2025 by guyueh1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L1 Run doctests, unit tests, and functional tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants