Closed mdejaegher closed 1 day ago
I think triton is one of the dependency of torch. Since torchbench is benchmarking torch, if you have installed troch, the triton(pytorch-triton) should be installed automatically, right?
Took me a little while to figure out what was happening but your question was very helpful. Turns out my environment wasn't 100% clean and I used the 2.4.1+cpu version of torch before rather than vanilla 2.4.1. As the name suggests, that doesn't come with triton. When I use vanilla 2.4.1 from a clean environment then, as you said, it does include triton and works as expected.
Will close this as it works as expected. Thanks for the help!
sam_fast
model in https://github.com/pytorch/benchmark/tree/main/torchbenchmark/models/sam_fast is failing to run in both eager and compile mode because it's missing the triton import requirement.The full error is (after I installed both https://github.com/pytorch/benchmark/blob/main/torchbenchmark/models/sam_fast/requirements.txt and https://github.com/pytorch/benchmark/blob/main/requirements.txt):
Basically what is happening is that the model is using
segment_anything_fast
which itself needs triton and tries to import it at some point, but triton is not currently in the requirements file of the sam_fast model.