Skip to content

Commit 23fe77e

Browse files
committed
[SW-193273] Merge from public github to gerrit
Merged from INC public master branch, top commit 7056720 Change-Id: I3c016ab98973ac56fc976e5b15a678e91a59291e
1 parent f02e9bd commit 23fe77e

File tree

1,374 files changed

+67114
-177666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,374 files changed

+67114
-177666
lines changed

.azure-pipelines/code-scan-neural-insights.yaml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.azure-pipelines/code-scan-neural-solution.yaml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.azure-pipelines/code-scan.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,3 @@ stages:
4444
parameters:
4545
codeScanFileName: "bandit"
4646
uploadPath: "bandit.log"
47-
48-
- stage: PylintCodeScan
49-
displayName: Pylint Code Scan
50-
dependsOn: []
51-
jobs:
52-
- job: Pylint
53-
displayName: Pylint
54-
steps:
55-
- template: template/code-scan-template.yml
56-
parameters:
57-
codeScanFileName: "pylint"
58-
uploadPath: "pylint.json"

.azure-pipelines/docker/Dockerfile.devel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
3636

3737
RUN ln -sf $(which python3) /usr/bin/python
3838

39-
RUN python -m pip --no-cache-dir install --upgrade pip
39+
RUN python -m pip install pip==24.0
4040
RUN python -m pip install --no-cache-dir setuptools
4141

4242
RUN pip list

.azure-pipelines/docker/DockerfileCodeScan.devel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
3030

3131
RUN ln -sf $(which python3) /usr/bin/python
3232

33-
RUN python -m pip install --no-cache-dir pylint==2.12.1\
33+
RUN python -m pip install --no-cache-dir \
3434
bandit\
3535
pyspelling\
3636
pydocstyle

.azure-pipelines/model-test-3x.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pr:
1010
include:
1111
- neural_compressor/common
1212
- neural_compressor/torch
13-
- examples/3.x_api/pytorch/nlp/huggingface_models/language-modeling/quantization/llm
13+
- examples/3.x_api/pytorch/nlp/huggingface_models/language-modeling/quantization/weight_only
1414
- setup.py
1515
- requirements_pt.txt
1616
- .azure-pipelines/scripts/models
@@ -112,7 +112,7 @@ stages:
112112
displayName: "Publish report"
113113
- script: |
114114
if [ $(is_perf_reg) == 'true' ]; then
115-
echo "[Performance Regression] Some model performance regression occurred, please check artifacts and reports."
115+
echo "Some benchmark regression occurred or the reference data need to be updated, please check artifacts and reports."
116116
exit 1
117117
fi
118-
displayName: "Specify performance regression"
118+
displayName: "Specify regression"

.azure-pipelines/model-test.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,20 @@ parameters:
4040
displayName: Run ONNX models?
4141
type: boolean
4242
default: true
43-
- name: MXNet_Model
44-
displayName: Run MXNet models?
45-
type: boolean
46-
default: false
4743

4844
- name: TensorFlowModelList
4945
type: object
5046
default:
5147
- resnet50v1.5
5248
- ssd_resnet50_v1
53-
# - ssd_mobilenet_v1_ckpt
54-
# - inception_v1
55-
# - darknet19
56-
# - resnet-101
5749
- name: PyTorchModelList
5850
type: object
5951
default:
60-
- resnet18
6152
- resnet18_fx
6253
- name: ONNXModelList
6354
type: object
6455
default:
6556
- resnet50-v1-12
66-
- name: MXNetModelList
67-
type: object
68-
default:
69-
- resnet50v1
7057

7158
stages:
7259
- stage: TensorFlowModels
@@ -114,21 +101,6 @@ stages:
114101
modelName: ${{ model }}
115102
framework: "onnxrt"
116103

117-
- stage: MXNetModels
118-
displayName: Run MXNet Model
119-
pool: MODEL_PERF_TEST
120-
dependsOn: []
121-
condition: and(succeeded(), eq('${{ parameters.MXNet_Model }}', 'true'))
122-
jobs:
123-
- ${{ each model in parameters.MXNetModelList }}:
124-
- job:
125-
displayName: ${{ model }}
126-
steps:
127-
- template: template/model-template.yml
128-
parameters:
129-
modelName: ${{ model }}
130-
framework: "mxnet"
131-
132104
- stage: GenerateLogs
133105
displayName: Generate Report
134106
pool:
@@ -191,7 +163,7 @@ stages:
191163
displayName: "Publish report"
192164
- script: |
193165
if [ $(is_perf_reg) == 'true' ]; then
194-
echo "[Performance Regression] Some model performance regression occurred, please check artifacts and reports."
166+
echo "Some benchmark regression occurred or the reference data need to be updated, please check artifacts and reports."
195167
exit 1
196168
fi
197-
displayName: "Specify performance regression"
169+
displayName: "Specify regression"

.azure-pipelines/scripts/codeScan/pydocstyle/pydocstyle.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ log_dir="$work_dir/../scanLog"
1717
mkdir -p $log_dir
1818

1919
scan_path="scan_path.txt"
20-
if [ "${scan_module}" = "neural_solution" ]; then
21-
scan_path="scan_path_neural_solution.txt"
22-
elif [ "${scan_module}" = "neural_insights" ]; then
23-
scan_path="scan_path_neural_insights.txt"
24-
fi
2520

2621
exit_code=0
2722
for line in $(cat ${work_dir}/${scan_path})

.azure-pipelines/scripts/codeScan/pydocstyle/scan_path.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@
1515
/neural-compressor/neural_compressor/strategy
1616
/neural-compressor/neural_compressor/training.py
1717
/neural-compressor/neural_compressor/utils
18+
/neural-compressor/neural_compressor/common
19+
/neural-compressor/neural_compressor/tensorflow
20+
/neural-compressor/neural_compressor/torch/algorithms/layer_wise
21+
/neural-compressor/neural_compressor/torch/algorithms/mixed_precision
22+
/neural-compressor/neural_compressor/torch/algorithms/mx_quant
23+
/neural-compressor/neural_compressor/torch/algorithms/pt2e_quant
24+
/neural-compressor/neural_compressor/torch/algorithms/smooth_quant
25+
/neural-compressor/neural_compressor/torch/algorithms/static_quant
26+
/neural-compressor/neural_compressor/torch/algorithms/weight_only
27+
/neural-compressor/neural_compressor/torch/export
28+
/neural-compressor/neural_compressor/torch/quantization
29+
/neural-compressor/neural_compressor/torch/utils

.azure-pipelines/scripts/codeScan/pydocstyle/scan_path_neural_insights.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)