-
Notifications
You must be signed in to change notification settings - Fork 57
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
First version of attention fusion #1986
Conversation
…ript into rama/fuse-attn
val_217 = val_216 * 32.0 | ||
val_218 = opset18.Cast(val_217, to=7) | ||
val_219 = opset18.Concat(val_209, val_212, val_218, axis=0) | ||
_scaled_dot_product_flash_attention_for_cpu__1 = opset18.Expand(0.0, val_219) |
Check notice
Code scanning / CodeQL
Unused local variable Note
❌ 8 Tests Failed:
View the top 1 failed tests by shortest run time
View the full list of 2 ❄️ flaky tests
To view more test analytics, go to the Test Analytics Dashboard |
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.
lintrunner found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
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.
Copilot reviewed 6 out of 13 changed files in this pull request and generated no comments.
Files not reviewed (7)
- onnxscript/rewriter/onnxruntime/xformers/cos_sin_cache_test.py: Evaluated as low risk
- onnxscript/rewriter/onnxruntime/xformers/skip_normalization_test.py: Evaluated as low risk
- onnxscript/rewriter/onnxruntime/xformers/rms_normalization_test.py: Evaluated as low risk
- onnxscript/rewriter/onnxruntime/xformers/cos_sin_cache.py: Evaluated as low risk
- onnxscript/rewriter/onnxruntime/xformers/_smollm_1.py: Evaluated as low risk
- onnxscript/rewriter/onnxruntime/xformers/init.py: Evaluated as low risk
- onnxscript/rewriter/onnxruntime/xformers/rotary_embedding_test.py: Evaluated as low risk
The mypy checks can be ignored here: Lines 51 to 53 in 347aa06
|
First version of attention fusion.
Limitations: