Repository navigation
refactor(grpo): migrate TypedDict configs to pydantic BaseModel - #2518
Conversation
|
/ok to test b37bbb9 |
|
/ok to test 77aec62768f3f5e17bba09dfea25e8b58b4df7b1 |
@NolenLiang, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/ |
|
/ok to test 77aec62 |
|
/ok to test 77aec62 |
|
/ok to test 36dc855 |
|
/ok to test 85be127 |
run_grpo.py, run_grpo_nemo_gym.py, run_grpo_sliding_puzzle.py still used config.grpo["key"] and "async_grpo" in config.grpo patterns. The "in" check on a BaseModel doesn't work like dict membership, causing async routing to fall through to sync grpo_train. Signed-off-by: nliang <[email protected]>
checkpointer.load_training_info() returns a plain dict from JSON deserialization. With GRPOSaveState as BaseModel, cast() alone doesn't convert it. Add isinstance check to construct BaseModel from dict on checkpoint resume. Signed-off-by: nliang <[email protected]>
All fields in GRPOConfig, RewardScalingConfig, AsyncGRPOConfig, AdvEstimatorConfig, and RewardShapingConfig now have default values matching the reference config (grpo_math_1B.yaml). This allows constructing configs with just the overrides needed. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> Signed-off-by: nliang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
Signed-off-by: NolenLiang <[email protected]>
|
/ok to test 775ad1c |
Signed-off-by: NolenLiang <[email protected]>
|
/ok to test e26f778 |
|
/ok to test 12655cd |
|
/ok to test 2985348 |
|
|
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:
Results before / after the changes