Repository navigation
[rl] Print validation reward on the console by default - #5473
Draft
felipemello1 wants to merge 1 commit into
Draft
felipemello1 wants to merge 1 commit into
felipemello1 wants to merge 1 commit into
Conversation
The default console_log_keys_validation looked up validation/reward/_mean and validation/reward/_max, but compute_rollout_metrics logs validation_reward/_mean and validation_reward/_max, so the default validation console line never showed the reward.
felipemello1
force-pushed
the
felipemello1/bugfix-metrics/3-console-validation-reward
branch
from
November 12, 2026 06:18
beb2930 to
57eebec
Compare
felipemello1
changed the base branch from
felipemello1/bugfix-metrics/2-span-pairs-while-compiling
to
main
November 12, 2026 06:18
This branch has not been deployed
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.
Summary (human-written)
Agent details
TLDR: By default the validation console line never shows the validation reward, because it looks up
validation/reward/_meanbut the key isvalidation_reward/_mean. This PR renames the two default patterns.Problem
compute_rollout_metrics(prefix="validation")logs the reward asvalidation_reward, with sub-keysvalidation_reward/_mean,validation_reward/_maxand so on.MetricsProcessor.Config.console_log_keys_validationdefaults tovalidation/reward/_meanandvalidation/reward/_max, which match no key.validation_reward/_mean.Solution
validation_reward/_meanandvalidation_reward/_max.validation/response_length/mean,timing/validate) already match their keys and don't change.Results
MetricsProcessor.log(is_validation=True)oncompute_rollout_metricsoutput for 2 rollouts with rewards 1 and 0:Test plan
pytest tests/rl/unit_tests/cpu/test_metrics.py: 77 passed.pre-commit runon the changed file.