Skip to content
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

Explicitly initialize weights even if initialization method is "uniform" #809

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

misko
Copy link
Collaborator

@misko misko commented Aug 14, 2024

nn.Linear initializes with default random uniform weights. This PR just makes sure we re-initialize those weights when we call model.apply(init_weights)

@misko misko added the enhancement New feature or request label Aug 14, 2024
@misko misko requested a review from lbluque August 14, 2024 00:17
@misko misko added the patch Patch version release label Aug 14, 2024
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
...airchem/core/models/equiformer_v2/equiformer_v2.py 88.46% <100.00%> (+0.07%) ⬆️

Copy link
Collaborator

@lbluque lbluque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@misko misko enabled auto-merge August 16, 2024 00:12
@misko misko added this pull request to the merge queue Aug 16, 2024
Merged via the queue into main with commit 2078e48 Aug 16, 2024
8 checks passed
@misko misko deleted the uniform_initialization branch August 16, 2024 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request patch Patch version release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants