Skip to content

Commit 22ffcae

Browse files
authored
Freeze 2x package versions (#2151)
Signed-off-by: Sun, Xuehao <[email protected]>
1 parent 3eb5529 commit 22ffcae

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.azure-pipelines/scripts/ut/env_setup.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fi
3737

3838
if [[ "${itex_version}" != "" ]]; then
3939
pip install --upgrade intel-extension-for-tensorflow[cpu]==${itex_version}
40-
pip install tf2onnx
40+
pip install tf2onnx==1.16.1
4141
fi
4242

4343
if [[ "${pytorch_version}" != "" ]]; then
@@ -63,7 +63,7 @@ if [[ "${onnxruntime_version}" != "" ]]; then
6363
else
6464
pip install onnxruntime-extensions
6565
fi
66-
pip install optimum
66+
pip install optimum==1.24.0
6767
fi
6868

6969
if [ "${mxnet_version}" != '' ]; then
@@ -77,22 +77,22 @@ fi
7777
# install special test env requirements
7878
# common deps
7979
pip install cmake
80-
pip install transformers
80+
pip install transformers==4.50.0
8181

8282
if [[ $(echo "${test_case}" | grep -c "others") != 0 ]];then
83-
pip install tf_slim xgboost accelerate==0.21.0 peft
83+
pip install tf_slim==1.1.0 xgboost==2.1.4 accelerate==0.21.0 peft==0.14.0
8484
elif [[ $(echo "${test_case}" | grep -c "nas") != 0 ]]; then
8585
pip install dynast==1.6.0rc1
8686
elif [[ $(echo "${test_case}" | grep -c "tf pruning") != 0 ]]; then
87-
pip install tensorflow-addons
87+
pip install tensorflow-addons==0.23.0
8888
# Workaround
8989
# horovod can't be install in the env with TF and PT together
9090
# so test distribute cases in the env with single fw installed
9191
pip install horovod
9292
fi
9393

9494
if [[ $(echo "${test_case}" | grep -c "api") != 0 ]] || [[ $(echo "${test_case}" | grep -c "adaptor") != 0 ]]; then
95-
pip install auto-round
95+
pip install auto-round==0.4.6
9696
fi
9797

9898
# test deps

examples/onnxrt/image_recognition/onnx_model_zoo/resnet50/quantization/ptq_static/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ onnxruntime
33
torch
44
torchvision
55
onnxruntime-extensions>=1.14.0; python_version < '3.11'
6-
pillow>=8.2.0 # not directly required, pinned by Snyk to avoid a vulnerability
7-
transformers; python_version < '3.11'
6+
pillow<=11.1.0 # not directly required, pinned by Snyk to avoid a vulnerability
7+
transformers<=4.50.0; python_version < '3.11'

test/requirements.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
--find-links https://download.pytorch.org/whl/torch_stable.html
2-
accelerate
3-
auto-round
2+
accelerate<=0.21.0
3+
auto-round<=0.4.6
44
dynast==1.6.0rc1
5-
horovod
5+
horovod<=0.27.0
66
intel-extension-for-pytorch
77
intel-tensorflow>=2.12.0
88
mxnet-mkl
99
neural-compressor
1010
onnx
1111
onnxruntime
1212
onnxruntime-extensions; python_version < '3.11'
13-
optimum
14-
peft
15-
tensorflow-addons
16-
tf2onnx
17-
tf_slim
13+
optimum<=1.24.0
14+
peft<=0.14.0
15+
tensorflow-addons<=0.23.0
16+
tf2onnx<=1.16.1
17+
tf_slim<=1.1.0
1818
torch
1919
torchvision
20-
transformers>=4.30.2
21-
xgboost
20+
transformers<=4.50.0
21+
xgboost<=2.1.4

0 commit comments

Comments
 (0)