-
Notifications
You must be signed in to change notification settings - Fork 607
migrate convert/prepare to torchao #11015
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11015
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 50d6d7f with merge base 5866c19 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
from torchao.quantization.pt2e.graph_utils import find_sequential_partitions | ||
from torchao.quantization.pt2e.observer import HistogramObserver, MinMaxObserver |
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.
do we want to import from pt2e
directly? or do you feel specifying graph_utils
/ observer
are better
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.
I like graph_utils/observer personally
But people can use top-level too if they want
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
2 similar comments
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
8e2f769
to
50d6d7f
Compare
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
2 similar comments
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@metascroy has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
This PR migrates the convert/prepare pt2e APIs to torchao, and adds a linter to prevent using the APIs from torch.ao.
It also migrates the example quantizer to fully use torchao APIs.