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

Make tp.Layernorm 1:1 with torch #119

Merged
merged 11 commits into from
Aug 23, 2024

Conversation

markkraay
Copy link
Collaborator

@markkraay markkraay commented Aug 16, 2024

  • Make the normalized_shape argument 1:1 with Torch. Previously, our API only supported taking a single integer for the normalization dimension. Now, a list of integers can be provided.
  • Add integration tests for tp.LayerNorm and tp.GroupNorm

@markkraay markkraay force-pushed the dev-mkraay-integration-test-for-layernorm branch from c4d09f1 to 2e033cd Compare August 22, 2024 19:06
@markkraay markkraay changed the title Integration test for tp.Layernorm Make tp.Layernorm 1:1 with torch Aug 22, 2024
@markkraay markkraay marked this pull request as ready for review August 22, 2024 19:09
Copy link
Collaborator

@akhilg-nv akhilg-nv left a comment

Choose a reason for hiding this comment

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

Could we also add tests for GroupNorm to the integration tests?

@markkraay markkraay force-pushed the dev-mkraay-integration-test-for-layernorm branch from 134ab9c to 27a6ee8 Compare August 23, 2024 15:43
@markkraay markkraay merged commit 0a6a4dc into main Aug 23, 2024
1 check passed
@markkraay markkraay deleted the dev-mkraay-integration-test-for-layernorm branch August 23, 2024 16:10
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