-
Notifications
You must be signed in to change notification settings - Fork 197
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
Create header for packed weight ops #1072
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1072
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 452b52b with merge base afc0a02 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D63498956 |
Couple of things
|
Summary: This diff defines a packed_weight hader in torchao/experimental/ops/packed_weights_header.h. The header is 16 bytes and has 4 fields: * format: PackedWeightsFormat (enum) * extra0: int * extra1: int * extra2: int Whenever we have a new format type, we can add a field to the enum. Currently I have a field for the format the universal kernels use, but MPS can have a different format, and KleidiAI also has its own format. I modified the pack ops put this header and the start of the packed weights. When the linear op runs, it reads the header to understand how the weights were packed. Reviewed By: digantdesai Differential Revision: D63498956
1ba22a5
to
c121875
Compare
This pull request was exported from Phabricator. Differential Revision: D63498956 |
Summary: This diff defines a packed_weight hader in torchao/experimental/ops/packed_weights_header.h. The header is 16 bytes and has 4 fields: * format: PackedWeightsFormat (enum) * extra0: int * extra1: int * extra2: int Whenever we have a new format type, we can add a field to the enum. Currently I have a field for the format the universal kernels use, but MPS can have a different format, and KleidiAI also has its own format. I modified the pack ops put this header and the start of the packed weights. When the linear op runs, it reads the header to understand how the weights were packed. Reviewed By: digantdesai Differential Revision: D63498956
c121875
to
452b52b
Compare
This pull request was exported from Phabricator. Differential Revision: D63498956 |
Differential Revision: D63498956 Pull Request resolved: #1072
Summary:
This diff defines a packed_weight hader in torchao/experimental/ops/packed_weights_header.h.
The header is 16 bytes and has 4 fields:
Whenever we have a new format type, we can add a field to the enum. Currently I have a field for the format the universal kernels use, but MPS can have a different format, and KleidiAI also has its own format.
I modified the pack ops put this header and the start of the packed weights. When the linear op runs, it reads the header to understand how the weights were packed.
Reviewed By: digantdesai
Differential Revision: D63498956