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 automatic detection of amp and device Autoround [2.x] #1649

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

Kaihui-intel
Copy link
Contributor

@Kaihui-intel Kaihui-intel commented Mar 6, 2024

Type of Change

feature

Description

Remove amp, device, export_args.
Update AutoRound version (6815f8b66be456ecbef2d0beb33dbc4efeefdc04)

Expected Behavior & Potential Risk

the expected behavior that triggered by this PR

How has this PR been tested?

how to reproduce the test (including hardware information)

Dependency Change?

any library dependency introduced or removed

Signed-off-by: Kaihui-intel <[email protected]>
Signed-off-by: Kaihui-intel <[email protected]>
Copy link

github-actions bot commented Mar 6, 2024

⛈️ Required checks status: Has failure 🔴

Warning
If you do not have the access to re-run the Probot, please contact for help. If you push a new commit, all of the workflow will be re-triggered.

Groups summary

🟢 Code Scan Tests workflow
Check ID Status Error details
Code-Scan success
Code-Scan (Bandit Code Scan Bandit) success
Code-Scan (DocStyle Code Scan DocStyle) success
Code-Scan (Pylint Code Scan Pylint) success

These checks are required after the changes to neural_compressor/adaptor/pytorch.py, neural_compressor/adaptor/torch_utils/weight_only.py, neural_compressor/model/torch_model.py.

🟢 Model Tests workflow
Check ID Status Error details
Model-Test success
Model-Test (Generate Report GenerateReport) success
Model-Test (Run MXNet Model resnet50v1) success
Model-Test (Run ONNX Model resnet50-v1-12) success
Model-Test (Run PyTorch Model resnet18) success
Model-Test (Run PyTorch Model resnet18_fx) success
Model-Test (Run TensorFlow Model darknet19) success
Model-Test (Run TensorFlow Model densenet-121) success
Model-Test (Run TensorFlow Model inception_v1) success
Model-Test (Run TensorFlow Model resnet-101) success
Model-Test (Run TensorFlow Model resnet50v1.5) success
Model-Test (Run TensorFlow Model ssd_mobilenet_v1_ckpt) success
Model-Test (Run TensorFlow Model ssd_resnet50_v1) success

These checks are required after the changes to neural_compressor/adaptor/pytorch.py, neural_compressor/adaptor/torch_utils/weight_only.py, neural_compressor/model/torch_model.py.

🔴 Unit Tests basic workflow
Check ID Status Error details
UT-Basic failure
UT-Basic (Coverage Compare CollectDatafiles) failure download
UT-Basic (Unit Test FWKs adaptor Test FWKs adaptor) success
UT-Basic (Unit Test FWKs adaptor baseline Test FWKs adaptor baseline) success
UT-Basic (Unit Test ITEX Test ITEX) success
UT-Basic (Unit Test ITEX baseline Test ITEX baseline) success
UT-Basic (Unit Test Pruning Test PyTorch Pruning) success
UT-Basic (Unit Test Pruning Test TensorFlow Pruning) success
UT-Basic (Unit Test Pruning baseline Test PyTorch Pruning baseline) success
UT-Basic (Unit Test Pruning baseline Test TensorFlow Pruning baseline) success
UT-Basic (Unit Test TF newAPI Test TF newAPI) success
UT-Basic (Unit Test TF newAPI baseline Test TF newAPI baseline) success
UT-Basic (Unit Test User facing API Test User facing API) success
UT-Basic (Unit Test User facing API baseline Test User facing API baseline) success
UT-Basic (Unit Test other basic case Test other basic case) success
UT-Basic (Unit Test other cases baseline Test other cases baseline) success
UT-Basic coverage report
Base coverage PR coverage Diff
Lines 86.984% 86.922% -0.062%
Branches 76.343% 76.286% -0.057%
Commit FileName Stmts Miss Branch Cover
PR | BASE adaptor/pytorch.py 2165 | 2168 169 | 169 1047 | 1047 89% | 89%
PR | BASE adaptor/tf_utils/graph_util.py 493 | 493 41 | 39 274 | 274 90% | 90%
PR | BASE adaptor/torch_utils/util.py 466 | 466 78 | 48 218 | 218 82% | 88%
PR | BASE adaptor/torch_utils/weight_only.py 250 | 257 6 | 6 83 | 85 96% | 96%

These checks are required after the changes to neural_compressor/adaptor/pytorch.py, neural_compressor/adaptor/torch_utils/weight_only.py, neural_compressor/model/torch_model.py, test/adaptor/pytorch_adaptor/test_weight_only_adaptor_pytorch.py, test/quantization/test_weight_only_quantization.py, test/requirements.txt, .azure-pipelines/scripts/ut/env_setup.sh.

🟢 Unit Tests basic no coverage workflow
Check ID Status Error details
UT-Basic-No-Coverage success
UT-Basic-No-Coverage (Unit Test FWKs adaptor Test FWKs adaptor) success
UT-Basic-No-Coverage (Unit Test Pruning Test PyTorch Pruning) success
UT-Basic-No-Coverage (Unit Test Pruning Test TensorFlow Pruning) success
UT-Basic-No-Coverage (Unit Test User facing API Test User facing API) success
UT-Basic-No-Coverage (Unit Test other basic case Test other basic case) success

These checks are required after the changes to neural_compressor/adaptor/pytorch.py, neural_compressor/adaptor/torch_utils/weight_only.py, neural_compressor/model/torch_model.py, test/adaptor/pytorch_adaptor/test_weight_only_adaptor_pytorch.py, test/quantization/test_weight_only_quantization.py, test/requirements.txt, .azure-pipelines/scripts/ut/env_setup.sh.

🔴 Unit Tests ITREX workflow
Check ID Status Error details
UT-ITREX failure download

These checks are required after the changes to neural_compressor/adaptor/pytorch.py, neural_compressor/adaptor/torch_utils/weight_only.py, neural_compressor/model/torch_model.py.


Thank you for your contribution! 💜

Note
This comment is automatically generated and updates for 360 minutes every 180 seconds. If you have any other questions, contact for help.

@Kaihui-intel Kaihui-intel changed the title Supports automatic detection of amp and device Autoround [2.x] Support automatic detection of amp and device Autoround [2.x] Mar 6, 2024
@chensuyue
Copy link
Contributor

/azp run Model-Test

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chensuyue chensuyue merged commit cf1de74 into master Mar 6, 2024
48 of 51 checks passed
@chensuyue chensuyue deleted the kaihui/autoround_config branch March 6, 2024 08:03
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.

3 participants