[platform] fix: quiet CPU-only Ray worker warnings - #7132
Open
Wooonster wants to merge 1 commit into
Open
Conversation
Co-authored-by: OpenAI Codex <codex@openai.com>
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Wooonster
marked this pull request as ready for review
July 23, 2026 11:36
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Wooonster
marked this pull request as draft
July 23, 2026 11:38
Wooonster
marked this pull request as ready for review
July 23, 2026 11:40
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
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.
What does this PR do?
Downgrade two platform auto-detection warnings to DEBUG only when verl can safely confirm that the current process is a Ray task or actor with no assigned GPU/NPU resources:
No supported accelerator detected ... Falling back to 'nvidia'.Platform 'nvidia' (PlatformCUDA) is registered but not available ...CPU-only actors such as AgentLoopWorker and RewardLoopWorker intentionally do not request accelerator resources, so these warnings are expected and make healthy distributed RL runs look broken.
The helper is fail-closed:
Root cause
The platform abstraction probes accelerator availability process-locally. Intentional CPU-only Ray actors see no CUDA/NPU device, so both the auto-detection fallback and unavailable-platform paths log at WARNING even though those actors never perform accelerator work.
Duplicate-work check
No open PR was found for issue #6741 or the exact warning text.
Test
The human submitter reviewed every changed line and personally ran:
Focused mocked-Ray coverage includes:
AI assistance
OpenAI Codex assisted with repository exploration, implementation, tests, duplicate-work checks, and PR drafting. The human submitter reviewed every changed line, understands the logging-only behavior and fail-closed resource detection, and personally ran the test and formatting commands above.