Skip to content

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.
@tqchen tqchen merged commit 8025041 into apache:main Oct 16, 2024
18 checks passed
@Hzfengsy Hzfengsy deleted the prepack_support branch November 10, 2024 07:56
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.

2 participants