Skip to content

Group_norm backward kernel optimization part 2 #1719

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

yucai-intel
Copy link
Contributor

@yucai-intel yucai-intel commented Jun 4, 2025

The shape of derivative calculation was adjusted to optimize memory access efficiency, which increased groupnorm backward kernel latency by ~80% when affine=false (e.g. latency107523ms->17823ms, shape=[32,512,256,256]).
image

@yucai-intel yucai-intel marked this pull request as ready for review June 9, 2025 02:52
@yucai-intel yucai-intel requested a review from xytintel June 10, 2025 06:02
@yucai-intel yucai-intel changed the title Group_norm backward kernel optimazation part 2 Group_norm backward kernel optimization part 2 Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant