Fix #447: norm_adv_by_std_in_grpo should be from rllm.algorithm.norm_...#471
Merged
kylemontgomery1 merged 1 commit intorllm-org:mainfrom Apr 4, 2026
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
|
Thanks for catching this! |
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.
Closes #447
Summary
norm_adv_by_std_in_grpois defined underrllm.algorithmin config files, but was mistakenly being read fromrllm.stepwise_advantagein two places. This caused the flag to always fall back to the default value (True) rather than respecting the user's configured value.Type of change
What changed
rllm/experimental/common/config.py(AlgorithmConfig.from_config): changedconfig.rllm.stepwise_advantage.get("norm_adv_by_std_in_grpo", True)toconfig.rllm.algorithm.get("norm_adv_by_std_in_grpo", True)rllm/experimental/unified_trainer.py(UnifiedTrainer): applied the same fix, changingself.rllm_config.stepwise_advantage.get("norm_adv_by_std_in_grpo", True)toself.rllm_config.algorithm.get("norm_adv_by_std_in_grpo", True)tests/unified_trainer/test_algorithm_config.pywith two tests that verifyAlgorithmConfig.from_configcorrectly readsnorm_adv_by_std_in_grpofromrllm.algorithm(with the key intentionally absent fromstepwise_advantageto catch any regression)Validation
pre-commit run --all-filespytest tests/unified_trainer/test_algorithm_config.pyValidation details:
test_algorithm_config.pycover bothTrueandFalsevalues fornorm_adv_by_std_in_grpo, using a minimalOmegaConfconfig that omits the key fromrllm.stepwise_advantageto confirm the correct lookup path.Breaking changes / migration notes
Docs / examples
Related issues / PRs
Screenshots / logs
N/A
This PR was created with AI assistance (Claude). The changes were reviewed by quality gates and a critic model before submission.