Add fusion rules (Whisper optimizations)#2221
Merged
shubhambhokare1 merged 27 commits intomainfrom May 7, 2025
Merged
Conversation
❌ 12 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
5fcedaa to
9c87a4c
Compare
gramalingam
reviewed
Apr 28, 2025
gramalingam
reviewed
Apr 28, 2025
gramalingam
reviewed
Apr 28, 2025
gramalingam
reviewed
Apr 28, 2025
gramalingam
reviewed
Apr 28, 2025
20cdd63 to
c368515
Compare
gramalingam
reviewed
Apr 29, 2025
gramalingam
reviewed
Apr 29, 2025
gramalingam
reviewed
Apr 29, 2025
gramalingam
reviewed
Apr 29, 2025
shubhambhokare1
added a commit
that referenced
this pull request
May 2, 2025
- Rewrite SkipLayerNorm fusions and SkipRMSNorm fusions to match format of other ort-fusion patterns. - Added check functions for ensuring shapes are as expected. - Moving these fusions out of PR #2221 Fusion support patterns with: - `Add(input, skip) -> Norm` - `Add(input, skip) -> Add (result, bias) -> Norm` - `Add(input, bias) -> Add (result, skip) -> Norm` NOTE: These fusions should support: - Planned whisper-related optimizations - Benchmark failures stemming from wrong bias shapes for SkipLayerNorm fusions
1d3bc5b to
1d7ad44
Compare
gramalingam
reviewed
May 6, 2025
gramalingam
approved these changes
May 7, 2025
9ca3c1a to
ba12b06
Compare
gramalingam
approved these changes
May 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add fusion rules to support the optimization of Whisper models.
Fusions added:
TODO: