tenstorrent / tt-forge-fe

The TT-Forge FE is a graph compiler designed to optimize and transform computational graphs for deep learning models, enhancing their performance and efficiency.
https://docs.tenstorrent.com/tt-forge-fe/
Apache License 2.0
20 stars 3 forks source link

Select op decomposes to unsupported ops #671

Open rpavlovicTT opened 5 days ago

rpavlovicTT commented 5 days ago

Running llama backward pass generates select op from concat op from forward pass. Concat op is then lowered to select op in autograd pass. Next, in post-autograd stage, select op is decomposed in sequence of few ops consisting of pad_tile, narrow, sparse_matmul which are not supported in TT-MLIR. This is legacy code anyway.

Solution for select op can be to lower it to ttir.slice op instead.

Image

rpavlovicTT commented 3 days ago

https://github.com/tenstorrent/tt-mlir/issues/1179