Skip to content

[Configs] Add placement related validation in validate_cfg#411

Merged
SumanthRH merged 5 commits intoNovaSky-AI:mainfrom
SumanthRH:better-validation-colocate
Oct 9, 2025
Merged

[Configs] Add placement related validation in validate_cfg#411
SumanthRH merged 5 commits intoNovaSky-AI:mainfrom
SumanthRH:better-validation-colocate

Conversation

@SumanthRH
Copy link
Copy Markdown
Member

@SumanthRH SumanthRH commented Oct 6, 2025

What does this PR do?

Adds placement related validation in validate_cfg. Currently, this is checked in RayPPOTrainer.build_models which is pretty late. For example, with colocation enabled, inference engines are initialized and only later the check is triggered. With this PR, basic validation happens right at the beginning and is better user exp

Signed-off-by: SumanthRH <sumanthrh99@gmail.com>
x
Signed-off-by: SumanthRH <sumanthrh99@gmail.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request moves placement-related validation into validate_cfg to fail faster and improve the user experience, which is a good change. The logic appears correct. I've added a couple of suggestions to improve the clarity of assertion error messages, which will help with debugging configuration issues.

SumanthRH and others added 2 commits October 6, 2025 16:19
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@SumanthRH SumanthRH requested a review from CharlieFRuan October 6, 2025 23:36
…olocate

Signed-off-by: SumanthRH <sumanthrh99@gmail.com>
@SumanthRH SumanthRH merged commit 7ca99d8 into NovaSky-AI:main Oct 9, 2025
1 check passed
Lucas-Fernandes-Martins pushed a commit to Lucas-Fernandes-Martins/SkyRL that referenced this pull request Oct 11, 2025
…-AI#411)

# What does this PR do?

Adds placement related validation in `validate_cfg`. Currently, this is
checked in `RayPPOTrainer.build_models` which is pretty late. For
example, with colocation enabled, inference engines are initialized and
only later the check is triggered. With this PR, basic validation
happens right at the beginning and is better user exp

---------

Signed-off-by: SumanthRH <sumanthrh99@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
li-boxuan pushed a commit to li-boxuan/SkyRL that referenced this pull request Nov 23, 2025
…-AI#411)

# What does this PR do?

Adds placement related validation in `validate_cfg`. Currently, this is
checked in `RayPPOTrainer.build_models` which is pretty late. For
example, with colocation enabled, inference engines are initialized and
only later the check is triggered. With this PR, basic validation
happens right at the beginning and is better user exp

---------

Signed-off-by: SumanthRH <sumanthrh99@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant