Skip to content
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

[Relax][MetaSchedule] Support CPU weight prepack #17445

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Hzfengsy
Copy link
Member

@Hzfengsy Hzfengsy commented Oct 6, 2024

This PR adds support for CPU weight prepacking. To be specific, this PR adds a new pass AttachAttrLayoutFreeBuffers to attach layout free buffers to the weight parameters, so that we can leverage MetaSchedule to optimize the prepacking process.

After the pass and tuning, we introduce a new pass SplitLayoutRewritePreproc to split the layout rewrite pass into multiple functions, so that we can lift the parameters transform pass function with existing pass.

@Hzfengsy Hzfengsy force-pushed the prepack_support branch 2 times, most recently from 9e0ab09 to d616d47 Compare October 15, 2024 06:47
@Hzfengsy Hzfengsy marked this pull request as ready for review October 15, 2024 06:51
This PR adds support for CPU weight prepacking. To be specific, this PR
adds a new pass `AttachAttrLayoutFreeBuffers` to attach layout free buffers
to the weight parameters, so that we can leverage MetaSchedule to optimize
the prepacking process.

After the pass and tuning, we introduce a new pass `SplitLayoutRewritePreproc`
to split the layout rewrite pass into multiple functions, so that we can lift
the parameters transform pass function with existing pass.
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.

1 participant