-
Notifications
You must be signed in to change notification settings - Fork 257
[CPU] enable int8_dynamic_activation_int4_weight with Int4CPULayout #2128
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/2128
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 35ece3b with merge base e3db2b2 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
torch.compile(m, fullgraph=True, dynamic=True), | ||
*example_inputs, | ||
) | ||
assert "_weight_int4pack_mm_for_cpu" in code[0] |
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 remember this op is weight only quant?
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. This op is used here because we don't have an op to compute da8w4 on CPU yet. So it will fallback to explicit dequantization and call of this op.
Summary
Enable quantization of model with
int8_dynamic_activation_int4_weight
andInt4CPULayout
.Test plan