-
Notifications
You must be signed in to change notification settings - Fork 164
【AdvancedCompiler】Add te.swiglu&dswiglu #1062
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
base: master
Are you sure you want to change the base?
【AdvancedCompiler】Add te.swiglu&dswiglu #1062
Conversation
…TE.swiglu&dswiglu Integrate latest changes from remote branch to resolve divergence, enabling smooth push of local performance-related fixes for swiglu & dswiglu. Merge branch 'add-TE.swiglu&dswiglu' of https://github.com/AdvancedCompiler/FlagGems into add-TE.swiglu&dswiglu
|
plz sign CLA |
|
The original code seems to have fluctuations causing errors, which led to the failure of the special-op-test / container-unit-test (pull_request). We don't have the option to rerun it on our end.If convenient, please have the CI rerun this test separately. |
| ctx.quantizer = quantizer | ||
|
|
||
| shape = input_tensor.shape | ||
| H = shape[-1] // 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to add the assertion: assert H.shape[-1] % 2 == 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May need to add more test cases to meet the test coverage rate requirements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| bench.run() | ||
|
|
||
|
|
||
| class SwigluBenchmarkResult(BenchmarkResult): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.





PR Category
Operator
Type of Change
New Feature
Description
Add transformer_engine_torch.swiglu&transformer_engine_torch.dswiglu
Issue
Progress
Performance