Skip to content

add the wrapper for woqgemm#1965

Merged
chensuyue merged 2 commits into
mainfrom
zhenzhong/woqgemm_linear
Jul 1, 2026
Merged

add the wrapper for woqgemm#1965
chensuyue merged 2 commits into
mainfrom
zhenzhong/woqgemm_linear

Conversation

@Zhenzhong1

Copy link
Copy Markdown
Contributor

Add the wrapper for woqgemm

Signed-off-by: Zhenzhong1 <zhenzhong.xu@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a Python-side convenience wrapper around the ARK woqgemm kernel to make it easier to use the packed-weight GEMM as a Linear-style operation on arbitrarily-shaped inputs (flatten to 2D, run GEMM, reshape back), with dtype handling aligned to the existing ARK QuantLinear behavior.

Changes:

  • Added woqgemm_linear() wrapper that flattens A to 2D, handles optional/empty bias, calls woqgemm(), then restores the original batch shape and input dtype.

Comment thread auto_round_extension/ark/auto_round_kernel/__init__.py Outdated
Comment thread auto_round_extension/ark/auto_round_kernel/__init__.py
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Zhenzhong1 Zhenzhong1 requested a review from chensuyue June 30, 2026 02:05
@chensuyue

Copy link
Copy Markdown
Contributor

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@Zhenzhong1 Zhenzhong1 force-pushed the zhenzhong/woqgemm_linear branch from 9f6f561 to d1a9bb7 Compare June 30, 2026 08:29
@Zhenzhong1

Copy link
Copy Markdown
Contributor Author

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@chensuyue chensuyue merged commit 3ab9520 into main Jul 1, 2026
41 checks passed
@chensuyue chensuyue deleted the zhenzhong/woqgemm_linear branch July 1, 2026 01:31
@chensuyue chensuyue added this to the 0.14.0 milestone Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants