-
Notifications
You must be signed in to change notification settings - Fork 292
[CPU] Enable DA8W4 on CPU #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
Merged
Xia-Weiwen
merged 29 commits into
pytorch:main
from
Xia-Weiwen:da8w4_with_int4_cpu_layout
Jun 25, 2025
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0581451
[CPU] enable int8_dynamic_activation_int4_weight with Int4CPULayout
Xia-Weiwen dffbbab
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 9fb7f77
Fix format issue
Xia-Weiwen 35ece3b
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen c5b6d87
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 8e80d03
Add Int8DynamicActInt4WeightCPULayout
Xia-Weiwen 51249c3
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 3e20172
remove dispatch for t()
Xia-Weiwen e765664
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 4feac3f
Add cpp kernel for weight packing and GEMM
Xia-Weiwen 0d85183
Register ATQ linear dispatch for da8w4 linear
Xia-Weiwen c42abdb
Fix issues with torch.compile
Xia-Weiwen e2815ce
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 8c5eebb
Fix DA8W4CPUAQTTensorImpl.get_plain
Xia-Weiwen 2a26e15
Test DA8W4CPUAQTTensorImpl.get_plain in UT
Xia-Weiwen 369000f
Skip UT if CPP kernel not built
Xia-Weiwen f6e87ba
Add AVX512_VNNI implementation for small M
Xia-Weiwen 0a87ef0
improve performance
Xia-Weiwen e05b96a
Support symmetric quantization of activation
Xia-Weiwen fd6e4b1
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 18335c6
Refine code
Xia-Weiwen 66ab77f
Refine code
Xia-Weiwen 2c5a799
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 131660e
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 75fbd6f
Put in a separate file
Xia-Weiwen 24268fd
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen 4c0a739
Bug fix
Xia-Weiwen 0815d96
Merge branch 'main' into da8w4_with_int4_cpu_layout
Xia-Weiwen e3731f7
refine code
Xia-Weiwen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: can you use the new API:
Int8DynamicActivationInt4WeightConfig
instead ofint8_dynamic_activation_int4_weight
?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.
Thanks. Done.