-
Notifications
You must be signed in to change notification settings - Fork 48
Remove unnecessary loss configs from losses.py #4156
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
Remove unnecessary loss configs from losses.py #4156
Conversation
Instead of trying to access non-existent `losses.loss_configs` on LossesConfig, get the config directly from the Loss instance's `cfg` attribute via context.losses.
- Inline _configs() logic directly into init_losses() for clarity - Access ppo config directly via trainer_cfg.losses.ppo in stats_reporter
The create() method now passes `self` directly as the cfg argument to the Loss constructor instead of accepting a redundant loss_config parameter that was always the same as self.
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Looks like there are a few issues preventing this PR from being merged!
If you'd like me to help, just leave a comment, like Feel free to include any additional details that might help me get this PR into a better state. You can manage your notification settings |
…nfigs-01PHN2EZQtXLd5MygWjSTuYa
Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Richard Higgins <richard@relh.net>
No description provided.