Skip to content

[PyTorch] Fix bias initialization introduced in #596 - #622

Merged
ksivaman merged 2 commits into
NVIDIA:mainfrom
Marks101:fix-bias-init
Jan 22, 2024
Merged

ksivaman merged 2 commits into
NVIDIA:mainfrom
Marks101:fix-bias-init

Conversation

@Marks101

Copy link
Copy Markdown
Contributor

Hello team,

in our regression tests we noticed that after #596 not all biases are initialized to zero. This affects both layer norm biases as well as linear biases. Before #596, the biases were explicitly initialized to zero, as shown here for example.

I crafted a small fix. Could you please double check that I got all the occurances?

We would really appreciate if this could be fixed soon.

@ksivaman ksivaman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@ksivaman

Copy link
Copy Markdown
Member

/te-ci pytorch

@ksivaman
ksivaman merged commit 178f136 into NVIDIA:main Jan 22, 2024
@Marks101
Marks101 deleted the fix-bias-init branch January 22, 2024 18:11
ptrendx pushed a commit that referenced this pull request Jan 22, 2024
Signed-off-by: Markus Schnoes <markus.schnoes@gmx.de>
xiaoteng-cui-mt pushed a commit to MooreThreads/MT-TransformerEngine that referenced this pull request Oct 9, 2026
Signed-off-by: Markus Schnoes <markus.schnoes@gmx.de>
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.

2 participants