-
Notifications
You must be signed in to change notification settings - Fork 114
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
DPS version of matmul in TTNN #15038
Comments
Hi @bbradelTT, we discovered this during our onboarding in the TT-MLIR compiler. Can you give us some feedback on whether this inconsistency in the matmul op is a limitation or just needs to be implemented from your side? |
It just needs to be implemented from our side. The underlying device op has output tensors passed in to it that are created via How high of a priority would this work be for you and when would you need it by? |
Thanks for the quick reply @bbradelTT! It isn't critical for now, but it would be great to have support for DPS matmul sometime in the near future, hence I will mark this as P1 if that sounds ok with you? |
@sdjordjevicTT sounds good. @asandhupatlaTT will work on it. |
Great, thanks! Let's keep this issue open to track the progress. |
@asandhupatlaTT |
@sdjordjevicTT @azecevicTT which TTNN ops are DPS ops already? Using those as guides will help speed up development. |
All the ops that define the optional output tensor in their APIs should be DPS. For example, you can take a look at element-wise ops API definition: Or take a look at the embedding op and its optional output tensor: |
### Ticket Link to Github Issue: #15038 ### Problem description Provide context for the problem. Dps ops are not being generated in MLIR for matmul op. ### What's changed Describe the approach used to solve the problem. Summarize the changes made and its impact. Enabled std::optional for ourput tensor as seen for other dps supported ops such as Embedding & element-wise ops ### Checklist - [x] Post commit CI passes : https://github.com/tenstorrent/tt-metal/actions/runs/12204499266 - [x] Blackhole Post commit (if applicable) : https://github.com/tenstorrent/tt-metal/actions/runs/12204501225 - [x] Model regression CI testing passes (if applicable) : https://github.com/tenstorrent/tt-metal/actions/runs/12204503539 - [x] Device performance regression CI testing passes (if applicable) : https://github.com/tenstorrent/tt-metal/actions/runs/12204505818 - [x] New/Existing tests provide coverage for changes --------- Signed-off-by: Amruth Sandhupatla <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fixed at #15285 |
Is there a reason why matmul (and linear) aren't modeled as DPS ops in TTNN? We model them as DPS ops in TTNN MLIR dialect, is there a plan to make them DPS ops in the future or should we change them to non DPS to reflect TTNN state.
The text was updated successfully, but these errors were encountered: