You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The two RLVR dry-run integ tests (test_rlvr_dry_run_returns_none and test_rlvr_serverful_dry_run_returns_none) construct an RLVRTrainer without any reward signal. Since RLVRTrainer.train() now validates that a reward signal is present (rlvr_trainer.py:417-424), calling train(dry_run=True) raises ValueError before reaching the return None path, so both tests would fail.
Adding trainer.hyperparameters.preset_reward_function = "prime_code" satisfies that validation and lets the dry run complete as expected.
Consistency check: the change matches the exact pattern already used in test_rlvr_trainer_integration.py:96 and the value/attribute suggested by the trainer's own error message (rlvr_trainer.py:423). "prime_code" is a documented preset value, and the attribute name is correct.
Minor observations (non-blocking):
The reward-signal requirement is intrinsic to RLVRTrainer, so these tests would be more robust setting preset_reward_function at (or immediately after) construction is fine as-is — mutating trainer.hyperparameters post-init is already the established convention in this suite, so no change needed.
No correctness, security, or performance concerns. LGTM.
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
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.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.