Skip to content
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

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

davidkoski
Copy link
Collaborator

  • steel_attenion.metal (new) was missing from the build

- steel_attenion.metal (new) was missing from the build
@davidkoski davidkoski requested a review from awni December 5, 2024 16:12
@@ -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() {
Copy link
Collaborator Author

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"
Copy link
Collaborator Author

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 \
Copy link
Collaborator Author

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)

Copy link
Member

@awni awni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank!!

@davidkoski davidkoski merged commit 70dbb62 into ml-explore:main Dec 5, 2024
3 checks passed
@davidkoski davidkoski deleted the fix-sdpa-metal branch December 5, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants