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

support bias shift in outlier suppression+ #1231

Open
wants to merge 66 commits into
base: master
Choose a base branch
from
Open

support bias shift in outlier suppression+ #1231

wants to merge 66 commits into from

Conversation

yintong-lu
Copy link
Contributor

Type of Change

feature

Description

enable bias-shifting of outlier suppression + in SQ
Note: this is still under development and debugging

Expected Behavior & Potential Risk

How has this PR been tested?

Dependency Change?

no library dependency introduced or removed

@chensuyue
Copy link
Contributor

Is this PR target for v2.4?
Code freeze on 11/22, Release on 12/15.

yintong-lu and others added 23 commits November 17, 2023 13:47
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
yintong-lu and others added 17 commits December 19, 2023 10:38
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
neural_compressor/adaptor/torch_utils/smooth_quant.py Outdated Show resolved Hide resolved
test/algorithm/test_smooth_quant.py Show resolved Hide resolved
@@ -181,6 +181,7 @@ def smooth_quant(
"alpha_step": 0.1,
"shared_criterion": "mean",
"do_blockwise": False,
"shift_bias": False,
Copy link
Contributor

Choose a reason for hiding this comment

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

how about using **kwargs, otherwise, each time we need to add the keywords for different backends

Copy link
Contributor Author

Choose a reason for hiding this comment

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

auto_alpha_args is already added to kwargs in /algorithm/smooth_quant.py.
Just adding the arguments and related docstrings for onnx and tensorflow.

pre-commit-ci bot and others added 3 commits December 21, 2023 05:59
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
@wenhuach21 wenhuach21 changed the title outlier suppression+ support bias shift in outlier suppression+ Dec 21, 2023
Signed-off-by: Lu, Yintong <yintong.lu@intel.com>
@wenhuach21
Copy link
Contributor

As discussed, bias shift will be a separate module, so this pr will not be merged

@chensuyue chensuyue removed this from the v2.5 milestone Dec 26, 2023
chensuyue pushed a commit to chensuyue/lpot that referenced this pull request Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants