-
Notifications
You must be signed in to change notification settings - Fork 863
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
torch.compile ImageClassifier example #2915
Conversation
examples/pt2/torch_compile/README.md
Outdated
|
||
In this example , we use the following config | ||
|
||
```yaml |
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.
echo "pt2 : {backend: inductor, mode: reduce-overhead}" > model-config.yaml
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.
done
"lynx": 0.0012969186063855886, | ||
"plastic_bag": 0.00022856894065625966 | ||
} | ||
``` |
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.
so people would be integrating torch.compile to see speedups
I also believe the label values change a tiny bit so you should show the expected speedups
I mention this because I'm not sure if densenet speedups were there
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.
Great feedback. I added a section on perf measurement. 3x speedup with torch.compile. Makes it very compelling now!
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.
Mostly looks good, just a few minor nits please fix before merge
Description
This PR shows how to use torch.compile with densenet161.
It also adds a pytest for the same
Fixes #(issue)
Type of change
Please delete options that are not relevant.
Feature/Issue validation/testing
Please describe the Unit or Integration tests that you ran to verify your changes and relevant result summary. Provide instructions so it can be reproduced.
Please also list any relevant details for your test configuration.
-[ ] 3x speedup with torch.compile
Checklist: