-
Notifications
You must be signed in to change notification settings - Fork 278
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
torchbench is now a library #1933
Conversation
Looking good! Though I am not sure what we should do about |
I think you should keep So user should do # Install torch/audio/text from source or nightlies
python install.py
pip install . |
torchbenchmark/__init__.py
Outdated
from . import canary_models | ||
from . import data | ||
from . import e2e_models | ||
from . import score |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Score is only for archiving purpose and is to be removed - we can skip importing it.
@msaroufim has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Sounds reasonable, it is better to clarify in the |
@msaroufim has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@msaroufim has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@msaroufim merged this pull request in f2d615b. |
So making the above example work with
import torchbenchmark
alone is a bit trickier there's a lot of relative imports that need to be fixed in pretty much every single fileI also added a simple
test_imports.py
file to make sure this doesn't break anything, I can setup a standalone github action or plug into an existing one (would rather do the latter to avoid another job that needs to runinstall.py
againThis also solves @voznesenskym favorite design pattern from https://github.com/pytorch/pytorch/blob/main/benchmarks/dynamo/torchbench.py