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

fix skip_connection bugs #1011

Merged
merged 7 commits into from
Jul 18, 2023
Merged

fix skip_connection bugs #1011

merged 7 commits into from
Jul 18, 2023

Conversation

yintong-lu
Copy link
Contributor

@yintong-lu yintong-lu commented Jun 16, 2023

Type of Change

bug fix

API not changed

Description

ix the skip-connection bugs when set folding=True. When an op(e.g layernorm) outputs to multiple modules and one of them is not absorbable, this op should not be transformed by smoothquant. This pr fixes some scenarios that of that issue, following up #1000 .
It also solves the issue that happened on llama model.
The fp32 acc inequivalence of Bridgetower model remains unsolved. May need further investigation later.

Expected Behavior & Potential Risk

no behavior expected to trigger by this PR

How has this PR been tested?

how to reproduce the test (including hardware information)

Dependency Change?

no

Signed-off-by: Lu, Yintong <[email protected]>
@yintong-lu yintong-lu added the WIP label Jun 19, 2023
Signed-off-by: Lu, Yintong <[email protected]>
@yintong-lu yintong-lu requested a review from wenhuach21 June 20, 2023 02:35
Signed-off-by: Lu, Yintong <[email protected]>
Signed-off-by: Lu, Yintong <[email protected]>
@wenhuach21
Copy link
Contributor

sorry, need to add ut

Signed-off-by: Lu, Yintong <[email protected]>
Signed-off-by: Lu, Yintong <[email protected]>
@yintong-lu yintong-lu requested a review from chensuyue July 18, 2023 06:28
@chensuyue chensuyue added bug fix Something isn't working and removed WIP labels Jul 18, 2023
@chensuyue chensuyue merged commit 4bcce1d into master Jul 18, 2023
@chensuyue chensuyue deleted the lyt/sq_skipconnect_fix branch July 18, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants