Skip to content

Conversation

@daveey
Copy link
Contributor

@daveey daveey commented Dec 3, 2025

No description provided.

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.
@daveey daveey requested a review from relh December 3, 2025 19:24
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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".

@datadog-official
Copy link

datadog-official bot commented Dec 3, 2025

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 00faf1b | Docs | Was this helpful? Give us feedback!

@openhands-ai
Copy link

openhands-ai bot commented Dec 3, 2025

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • Test and Benchmark

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #4156 at branch `claude/remove-loss-configs-01PHN2EZQtXLd5MygWjSTuYa`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings

@relh relh enabled auto-merge December 4, 2025 02:17
@relh relh added this pull request to the merge queue Dec 4, 2025
Merged via the queue into main with commit df87ca8 Dec 4, 2025
11 checks passed
@relh relh deleted the claude/remove-loss-configs-01PHN2EZQtXLd5MygWjSTuYa branch December 4, 2025 02:52
zfogg pushed a commit that referenced this pull request Dec 20, 2025
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Richard Higgins <richard@relh.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants