neural-compressor icon indicating copy to clipboard operation
neural-compressor copied to clipboard

modify op_type for set_local in 3.x API

Open violetch24 opened this issue 9 months ago • 4 comments

Type of Change

modify op_type for set_local in 3.x API in ut and example

Description

according to changes in PR https://github.com/intel/neural-compressor/pull/1745

Expected Behavior & Potential Risk

How has this PR been tested?

ut, extension pass

Dependency Change?

violetch24 avatar May 07 '24 06:05 violetch24

⚡ Required checks status: All passing 🟢

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/torch/algorithms/static_quant/utility.py.

🟢 Model Tests 3x workflow
Check ID Status Error details
Model-Test-3x success
Model-Test-3x (Generate Report GenerateReport) success
Model-Test-3x (Run PyTorch Model opt_125m_woq_gptq_int4) success
Model-Test-3x (Run PyTorch Model opt_125m_woq_gptq_int4_dq_bnb) success
Model-Test-3x (Run PyTorch Model opt_125m_woq_gptq_int4_dq_ggml) success

These checks are required after the changes to neural_compressor/torch/algorithms/static_quant/utility.py, examples/3.x_api/pytorch/nlp/huggingface_models/language-modeling/quantization/llm/run_clm_no_trainer.py.

🟢 Unit Tests 3x-PyTorch workflow
Check ID Status Error details
UT-3x-Torch success
UT-3x-Torch (Coverage Compare CollectDatafiles) success
UT-3x-Torch (Unit Test 3x Torch Unit Test 3x Torch) success
UT-3x-Torch (Unit Test 3x Torch baseline Unit Test 3x Torch baseline) success

These checks are required after the changes to neural_compressor/torch/algorithms/static_quant/utility.py, test/3x/torch/quantization/test_smooth_quant.py, test/3x/torch/quantization/test_static_quant.py.


Thank you for your contribution! 💜

Note This comment is automatically generated and will be updates every 180 seconds within the next 6 hours. If you have any other questions, contact chensuyue or XuehaoSun for help.

github-actions[bot] avatar May 07 '24 06:05 github-actions[bot]

could you confirm torch.add in set_local can make it fallback? save the qmodel config.json file check maybe more clear.

changwangss avatar May 07 '24 09:05 changwangss

/azp run Model-Test-3x

XuehaoSun avatar May 10 '24 05:05 XuehaoSun

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar May 10 '24 05:05 azure-pipelines[bot]