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

LayerNorm Refactor #1269

Merged
merged 37 commits into from
Sep 9, 2024
Merged

Conversation

aurelion-source
Copy link
Contributor

@aurelion-source aurelion-source commented Sep 6, 2024

Adds:

  • Apex's rmsnorm
  • TransformerEngine's rmsnorm and layernorm

@aurelion-source
Copy link
Contributor Author

aurelion-source commented Sep 7, 2024

Report comparing performance of norm implementations (including TE and Apex) can be found here: https://api.wandb.ai/links/shetano-personal/o0tz0qy3

Default 125M config was used on 4 x NVIDIA A100-SXM4-80GB

@Quentin-Anthony
Copy link
Member

resolves #1235 and #1265

@Quentin-Anthony
Copy link
Member

Rebased onto upstream main. Doing the close + reopen trick to handle diff.

Copy link
Member

@Quentin-Anthony Quentin-Anthony left a comment

Choose a reason for hiding this comment

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

LGTM

@Quentin-Anthony Quentin-Anthony merged commit 836aefa into EleutherAI:main Sep 9, 2024
2 of 3 checks passed
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