Skip to content

Refactor GroupNorm and log unmatched state_dict keys #989

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

juliusberner
Copy link
Contributor

@juliusberner juliusberner commented Jun 24, 2025

PhysicsNeMo Pull Request

Description

  • Refactor GroupNorm and add get_group_norm to keep the state_dict consistent with previous versions.
  • Log missing and unexpected keys when loading checkpoints.
  • Add persistent=False for deterministic, non-learnable positional embeddings.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The CHANGELOG.md is up to date with these changes.
  • An issue is linked to this pull request.

Signed-off-by: Julius Berner <jberner@nvidia.com>
@CharlelieLrt CharlelieLrt self-requested a review June 24, 2025 21:05
@CharlelieLrt CharlelieLrt added bug Something isn't working 3 - Ready for Review Ready for review by team labels Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants