Repository navigation
Conversation
Signed-off-by: Guyue Huang <[email protected]>
Signed-off-by: Guyue Huang <[email protected]>
Signed-off-by: Guyue Huang <[email protected]>
Signed-off-by: Guyue Huang <[email protected]>
Signed-off-by: Guyue Huang <[email protected]>
📝 WalkthroughWalkthroughThis PR updates dependencies in pyproject.toml, adds a new training metric print in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
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. Comment |
There was a problem hiding this comment.
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
⛔ Files ignored due to path filters (1)
uv.lockis 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.
Signed-off-by: Guyue Huang <[email protected]>
|
@terrykong since the v0..4 branch has been cut, can we try to merge this minor version bump now? |
| # 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", |
There was a problem hiding this comment.
what's this for? is it related to vllm-project/vllm#15228 (comment) ?
|
Close as we already start bumping to a newer version in #1334 |
What does this PR do ?
Bump to vllm 0.10.1.1 ray 2.48
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
Summary by CodeRabbit
New Features
Chores