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

Layer Norm modification #313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RyanKim17920
Copy link

Modified layer norms in the encoder layers to fit more closely to the original ViT paper.

Modified layer norms in the encoder layers to fit more closely to the original ViT paper.
@tonyyunyang
Copy link

There is this prenorm and postnorm issue. I believe the author went for postnorm as it stabilizes the training. GPT2 experienced unstable training issue due to prenorm, and since then all GPT uses postnorm.

@RyanKim17920
Copy link
Author

Oh, that's interesting, thanks for letting me know.

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