-
Notifications
You must be signed in to change notification settings - Fork 70
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
fix #172 -- missing steel_attenion.metal #173
Conversation
davidkoski
commented
Dec 5, 2024
- steel_attenion.metal (new) was missing from the build
- steel_attenion.metal (new) was missing from the build
@@ -70,4 +70,30 @@ class MLXFastKernelTests: XCTestCase { | |||
XCTAssertTrue(allClose(out[0], full([2, 2], values: 14.0484)).all().item()) | |||
XCTAssertTrue(allClose(out[1], full([3, 2], values: -2)).all().item()) | |||
} | |||
|
|||
func testFastSDPA() { |
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.
Test case to make sure these can be called. Without the fix this was able to reproduce the error.
rope.metal \ | ||
scaled_dot_product_attention.metal" | ||
scaled_dot_product_attention.metal \ | ||
steel/attn/kernels/steel_attention.metal" |
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.
Add this one
random.metal \ | ||
rms_norm.metal \ | ||
layer_norm.metal \ |
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.
I just reordered these to match the CMakeLists (to make it easier to visually compare)
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.
Thank!!