-
Notifications
You must be signed in to change notification settings - Fork 71
auto-round-kernel installation method #1221
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
Merged
Conversation
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
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
e3ed93b to
a43ae35
Compare
for more information, see https://pre-commit.ci
Signed-off-by: chensuyue <[email protected]>
2970188 to
4039add
Compare
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
wenhuach21
reviewed
Jan 6, 2026
wenhuach21
approved these changes
Jan 6, 2026
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
wenhuach21
reviewed
Jan 6, 2026
hshen14
reviewed
Jan 7, 2026
hshen14
reviewed
Jan 7, 2026
hshen14
reviewed
Jan 7, 2026
hshen14
reviewed
Jan 7, 2026
Contributor
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
Signed-off-by: chensuyue <[email protected]>
This reverts commit bf49e79.
Contributor
Author
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces significant improvements to the AutoRound Kernel integration, including enabling and documenting the kernel backend, updating requirements and installation methods, and enhancing test coverage. It also refactors the ARK QLinear implementation for better device and dtype handling. The most important changes are summarized below:
AutoRound Kernel Integration and Documentation:
README.mdfor AutoRound Kernel, detailing supported hardware, quantization configurations, versioning, and installation instructions.install_kernel.pyto automatically detect the PyTorch version and install the appropriate kernel version, and registered a new CLI commandauto-round-kernel-install. [1] [2]Backend Configuration and Requirements:
auto_round_kernel,auto_round_kernel_zp, andauto_round_kernel_awqbackends for CPU (previously commented out), and updated their PyTorch version requirements totorch>=2.8.0for broader compatibility. [1] [2] [3]"kernel"extra fromsetup.pyto simplify dependency management.ARK QLinear Refactoring:
ark/qlinear.pyto instantiate ARK viaauto_round_kernel.ARK(), improved dtype/device handling, unified bias and input dtype logic, and switched to usingwoqgemmfor computation. [1] [2] [3]Testing Improvements:
test_model.pyto include CPU devices for all relevant test cases, and re-enabled tests for additional quantization configurations.