Install the benchmark before running. (#2436)
Summary:
In workflows like https://github.com/pytorch/benchmark/actions/runs/10513238627/job/29128387392, we are hitting errors like `No module named 'torchbenchmark.util.framework.fb'`, this is because we directly run the benchmark without installing it.
We need to first install the benchmark before running the models.
Pull Request resolved: https://github.com/pytorch/benchmark/pull/2436
Test Plan: https://github.com/pytorch/benchmark/actions/runs/10533763643
Reviewed By: kit1980
Differential Revision: D61748902
Pulled By: xuzhao9
fbshipit-source-id: ae1661691881766b5899d34cf4de8045d1d6b4ed