-
Notifications
You must be signed in to change notification settings - Fork 313
Add api for group wise low bit quantization, using codebook utils provided by coreml #2679
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/ao/2679
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a54a372 with merge base 6cfa477 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D79119940 |
Requires linting with ruff |
55628be
to
cb1b625
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
This pull request was exported from Phabricator. Differential Revision: D79119940 |
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
cb1b625
to
dae90c6
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
|
||
|
||
@torch.no_grad | ||
def _quantize_row_wise_with_coreml_no_scales( |
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.
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.
Yes, will change this function to be align with the latest version of the coreml implementation.
|
||
|
||
@torch.no_grad | ||
def _dequantize_row_wise_with_coreml_no_scales( |
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.
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.
Yes, will change this function to be align with the latest version of the coreml implementation.
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
dae90c6
to
205b0c9
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
205b0c9
to
f0c45f5
Compare
This pull request was exported from Phabricator. Differential Revision: D79119940 |
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
bbeea83
to
d2aad77
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
d2aad77
to
7374ba9
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
7374ba9
to
c3681bf
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
This pull request was exported from Phabricator. Differential Revision: D79119940 |
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Differential Revision: D79119940 Reviewed By: metascroy
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
c3681bf
to
4bb48e1
Compare
This pull request was exported from Phabricator. Differential Revision: D79119940 |
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
4bb48e1
to
9eb38f8
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
9eb38f8
to
919bf9b
Compare
This pull request was exported from Phabricator. Differential Revision: D79119940 |
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
919bf9b
to
74a1c92
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
74a1c92
to
a54a372
Compare
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
This pull request was exported from Phabricator. Differential Revision: D79119940 |
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Differential Revision: D79119940 Reviewed By: metascroy
…vided by coreml (pytorch#2679) Summary: Pull Request resolved: pytorch#2679 Reviewed By: metascroy Differential Revision: D79119940
Reviewed By: metascroy
Differential Revision: D79119940