-
Notifications
You must be signed in to change notification settings - Fork 69
[logging] clean up 1/n #606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
upon a second look, i will remove a few more |
|
@allenwang28 @joecummings please take a look at the list. Would you remove anything else? (note: some values are small because its a 1.7b model with small context length and bsz, but would be more significant with scale) |
joecummings
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments to address but overall good!
| loss = -(mean_policy_loss - beta * mean_kl) | ||
|
|
||
| # Log metrics | ||
| # TODO: Better design - have loss function return all metrics as a dict, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to get away from TODOs in code as a marker. Can you turn this into a small GI?
| Reduce.STD, | ||
| ) | ||
|
|
||
| # avg total reward |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove. It's already called avg_total_reward
| drop = rewards_std < 1e-3 or max_response_len >= max_res_tokens | ||
| record_metric( | ||
| "main/continuous_rollouts/dropped_episodes", | ||
| "main/continuous_rollouts/unfit_for_training_dropped_episodes", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This naming is a little confusing. Can you explain?
Reduced 99 -> 70
metrics now: