File tree 6 files changed +18
-11
lines changed
examples/3.x_api/pytorch/nlp/huggingface_models/language-modeling/quantization/weight_only
6 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 2
2
3
3
echo " export FWs version..."
4
4
export tensorflow_version=' 2.15.0-official'
5
- export pytorch_version=' 2.3 .0+cpu'
6
- export torchvision_version=' 0.18.0+cpu '
7
- export ipex_version=' 2.3 .0+cpu'
5
+ export pytorch_version=' 2.4 .0+cpu'
6
+ export torchvision_version=' 0.19.0 '
7
+ export ipex_version=' 2.4 .0+cpu'
8
8
export onnx_version=' 1.16.0'
9
9
export onnxruntime_version=' 1.18.0'
10
10
export mxnet_version=' 1.9.1'
Original file line number Diff line number Diff line change @@ -5,14 +5,16 @@ cd /neural-compressor
5
5
if [[ $1 = * " 3x_pt" * ]]; then
6
6
if [[ $1 != * " 3x_pt_fp8" * ]]; then
7
7
echo -e " \n Install torch CPU ... "
8
- pip install torch==2.3 .0 --index-url https://download.pytorch.org/whl/cpu
8
+ pip install torch==2.4 .0 --index-url https://download.pytorch.org/whl/cpu
9
9
fi
10
10
python -m pip install --no-cache-dir -r requirements_pt.txt
11
- python setup.py pt bdist_wheel
11
+ # python setup.py pt bdist_wheel
12
+ python setup.py bdist_wheel
12
13
pip install --no-deps dist/neural_compressor* .whl --force-reinstall
13
14
elif [[ $1 = * " 3x_tf" * ]]; then
14
15
python -m pip install --no-cache-dir -r requirements_tf.txt
15
- python setup.py tf bdist_wheel
16
+ # python setup.py tf bdist_wheel
17
+ python setup.py bdist_wheel
16
18
pip install dist/neural_compressor* .whl --force-reinstall
17
19
else
18
20
python -m pip install --no-cache-dir -r requirements.txt
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ SCRIPTS_PATH="/neural-compressor/.azure-pipelines/scripts/models"
51
51
log_dir=" /neural-compressor/.azure-pipelines/scripts/models"
52
52
if [[ " ${inc_new_api} " == " 3x" * ]]; then
53
53
WORK_SOURCE_DIR=" /neural-compressor/examples/3.x_api/${framework} "
54
+ git clone https://github.com/intel/intel-extension-for-transformers.git /itrex
55
+ cd /itrex
56
+ pip install -r requirements.txt
57
+ pip install -v .
54
58
else
55
59
WORK_SOURCE_DIR=" /neural-compressor/examples/${framework} "
56
60
fi
@@ -95,8 +99,8 @@ if [[ "${fwk_ver}" != "latest" ]]; then
95
99
pip install intel-tensorflow==${fwk_ver}
96
100
fi
97
101
elif [[ " ${framework} " == " pytorch" ]]; then
98
- pip install torch==${fwk_ver} -f https://download.pytorch.org/whl/torch_stable.html
99
- pip install torchvision==${torch_vision_ver} -f https://download.pytorch.org/whl/torch_stable.html
102
+ pip install torch==${fwk_ver} --index-url https://download.pytorch.org/whl/cpu
103
+ pip install torchvision==${torch_vision_ver} --index-url https://download.pytorch.org/whl/cpu
100
104
elif [[ " ${framework} " == " onnxrt" ]]; then
101
105
pip install onnx==1.15.0
102
106
pip install onnxruntime==${fwk_ver}
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ test_case="run basic pt pruning"
4
4
echo " ${test_case} "
5
5
6
6
echo " specify fwk version..."
7
- export pytorch_version=' 2.3 .0+cpu'
7
+ export pytorch_version=' 2.4 .0+cpu'
8
8
export torchvision_version=' 0.18.0+cpu'
9
- export ipex_version=' 2.3 .0+cpu'
9
+ export ipex_version=' 2.4 .0+cpu'
10
10
11
11
echo " set up UT env..."
12
12
bash /neural-compressor/.azure-pipelines/scripts/ut/env_setup.sh " ${test_case} "
Original file line number Diff line number Diff line change 42
42
- checkout : self
43
43
clean : true
44
44
displayName : " Checkout out Repo"
45
+ fetchDepth : 0
45
46
46
47
- ${{ if eq(parameters.dockerConfigName, 'gitCloneDockerConfig') }} :
47
48
- script : |
Original file line number Diff line number Diff line change 9
9
einops
10
10
neural-compressor
11
11
intel-extension-for-transformers
12
- lm_eval == 0.4.2
12
+ lm_eval == 0.4.3
13
13
peft
14
14
auto_round
15
15
intel_extension_for_pytorch
You can’t perform that action at this time.
0 commit comments