Repository navigation
Conversation
Signed-off-by: Ian Wood <[email protected]>
Signed-off-by: Ian Wood <[email protected]>
4968a6b to
986ee8a
Compare
MaheshRavishankar
left a comment
There was a problem hiding this comment.
Isnt this a bit dangerous with the backend not really supporting multiple k2 dims? We are basically assuming that every k2 dimension split is artificial and relying on collapsing folding it back again.
I dont have a strong opinion. Just asking question, because if indeed it isnt an artifact that gets folded away later, then it is a "true split" and will have to adapt the codegen to handle it. So I am OK with putting downward pressure on the rest of the stack.
We can support multiple k2 dims, but what we cannot support the inner k2 dim being very small. Realistically, that never happens in workloads today. We should work towards fixing it though (through packs), but we don't support this for matmul in VectorDistribute or TileAndFuse today (afaik). |
|
@Groverkss should I close this? I think I saw a PR that supersedes this one. |
oh i didnt know i sent one lol. Yeah, you can close this, there are some cpu failures that im fixing and then ill send this again. |
This can be removed after #19654 landed and these dims can be collapsed. Also, I added some missing canonicalization patterns to fold away reshapes.