File tree Expand file tree Collapse file tree 2 files changed +13
-58
lines changed
Expand file tree Collapse file tree 2 files changed +13
-58
lines changed Original file line number Diff line number Diff line change @@ -20,70 +20,25 @@ set -e
2020set -u
2121set -o pipefail
2222
23- # We need to fix the onnx version because changing versions tends to break tests
24- # TODO(mbrookhart): periodically update
25-
26- # onnx 1.9 removed onnx optimizer from the main repo (see
27- # https://github.com/onnx/onnx/pull/2834). When updating the CI image
28- # to onnx>=1.9, onnxoptimizer should also be installed.
29-
3023# Get the Python version
3124PYTHON_VERSION=$( python3 -c " import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" )
3225
3326# Set default value for first argument
3427DEVICE=${1:- cpu}
3528
3629# Install the onnx package
37- pip3 install future
38-
39- if [ " $PYTHON_VERSION " == " 3.9" ]; then
40- pip3 install \
41- onnx==1.16.0 \
42- onnxruntime==1.19.2 \
43- onnxoptimizer==0.2.7
30+ pip3 install \
31+ onnx==1.20.1 \
32+ onnxruntime==1.24.1 \
33+ onnxoptimizer==0.4.2
4434
45- if [ " $DEVICE " == " cuda" ]; then
46- pip3 install \
47- torch==2.7.0 \
48- torchvision==0.22.0 \
49- --index-url https://download.pytorch.org/whl/cu118
50- else
51- pip3 install \
52- torch==2.7.0 \
53- torchvision==0.22.0 \
54- --extra-index-url https://download.pytorch.org/whl/cpu
55- fi
56- elif [ " $PYTHON_VERSION " == " 3.11" ]; then
35+ if [ " $DEVICE " == " cuda" ]; then
5736 pip3 install \
58- onnx==1.17.0 \
59- onnxruntime==1.20.1 \
60- onnxoptimizer==0.2.7
61-
62- if [ " $DEVICE " == " cuda" ]; then
63- pip3 install \
64- torch==2.7.0 \
65- torchvision==0.22.0 \
66- --index-url https://download.pytorch.org/whl/cu118
67- else
68- pip3 install \
69- torch==2.7.0 \
70- torchvision==0.22.0 \
71- --extra-index-url https://download.pytorch.org/whl/cpu
72- fi
37+ torch==2.10.0 \
38+ torchvision==0.25.0
7339else
7440 pip3 install \
75- onnx==1.12.0 \
76- onnxruntime==1.12.1 \
77- onnxoptimizer==0.2.7
78-
79- if [ " $DEVICE " == " cuda" ]; then
80- pip3 install \
81- torch==2.4.1 \
82- torchvision==0.19.1
83- else
84- pip3 install \
85- torch==2.4.1 \
86- torchvision==0.19.1 \
87- --extra-index-url https://download.pytorch.org/whl/cpu
88- fi
41+ torch==2.10.0 \
42+ torchvision==0.25.0 \
43+ --extra-index-url https://download.pytorch.org/whl/cpu
8944fi
Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ pip3 install --upgrade \
2929 numpy==1.21.* \
3030 orderedset \
3131 packaging \
32- Pillow==9 .1.0 \
32+ Pillow==12 .1.1 \
3333 psutil \
3434 pytest \
3535 git+https://github.com/tlc-pack/tlcpack-sphinx-addon.git@768ec1dce349fe4708f6ad68be1ebb3f3dabafa1 \
3636 pytest-profiling \
3737 pytest-xdist \
38- pytest-rerunfailures==10.2 \
38+ pytest-rerunfailures==16.1 \
3939 requests \
4040 scipy \
4141 Jinja2 \
42- junitparser==2.4 .2 \
42+ junitparser==4.0 .2 \
4343 six \
4444 tornado \
4545 " ml_dtypes>=0.5.1"
You can’t perform that action at this time.
0 commit comments