-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
New format quant model support for MKLDNN #45416
New format quant model support for MKLDNN #45416
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的代码应该需要加上单测,解决代码测试覆盖率的问题
…t_quant_model_dev
@yaomichael @yeliang2258 I can see there are only changes in C++ passes. Are you planning to add this ONNX format to python/paddle/fluid/contrib/slim/quantization/quant2_int8_mkldnn_pass.py that serializes models? |
@wozna According to the latest version, we only need to enable config.enable_mkldnn_int8(), no longer need to convert through save_quant_model.py script. So we no longer need to add codes to python/paddle/fluid/contrib/slim/quantization/quant2_int8_mkldnn_pass.py. |
…t_quant_model_dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adapting to the review. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
python/paddle/fluid/tests/unittests/mkldnn/test_onnx_format_quantization_mobilenetv1.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
76ebfd9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve for API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve for API
* support onnx format quantized model * update code * add test * add test * fix * fix test * fix cmake * update code * change scale file path to calibration file path * update code * update code * fix build bug * fix build bugs * fix * fix
PR types
New features
PR changes
Others
Describe
New format quant model support for MKLDNN
CPU:Intel(R) Xeon(R) Gold 6271C CPU @ 2.60GHz
Thread nums:1
Test model:https://github.com/PaddlePaddle/PaddleSlim/tree/develop/example/auto_compression/pytorch_yolo_series
yolov5
yolov6
yolov7