Skip to content

Commit

Permalink
Upgrade Pytorch version installed in tests (triton-inference-server#5140
Browse files Browse the repository at this point in the history
)
  • Loading branch information
GuanLuo authored Dec 6, 2022
1 parent fa18c45 commit 232d432
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion qa/L0_backend_python/bls/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RET=0
rm -fr *.log ./models

pip3 uninstall -y torch
pip3 install torch==1.11.0+cu113 -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch==1.13.0+cu117 -f https://download.pytorch.org/whl/torch_stable.html

mkdir -p models/bls/1/
cp ../../python_models/bls/model.py models/bls/1/
Expand Down
2 changes: 1 addition & 1 deletion qa/L0_backend_python/examples/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ rm -fr *.log python_backend/
# Skip torch install on Jetson since it is already installed.
if [ "$TEST_JETSON" == "0" ]; then
pip3 uninstall -y torch
pip3 install torch==1.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch==1.13.0+cu117 -f https://download.pytorch.org/whl/torch_stable.html
fi

# Install JAX
Expand Down
2 changes: 1 addition & 1 deletion qa/L0_backend_python/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ cp ../python_models/string_fixed/config.pbtxt ./models/string_fixed

# Skip torch install on Jetson since it is already installed.
if [ "$TEST_JETSON" == "0" ]; then
pip3 install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch==1.13.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
else
# test_growth_error is skipped on jetson
EXPECTED_NUM_TESTS=8
Expand Down
2 changes: 1 addition & 1 deletion qa/L0_backend_python/unittest/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ source ../../common/util.sh

# Uninstall the non CUDA version of PyTorch
pip3 uninstall -y torch
pip3 install torch==1.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch==1.13.0+cu117 -f https://download.pytorch.org/whl/torch_stable.html
pip3 install tensorflow

rm -fr *.log ./models
Expand Down
4 changes: 2 additions & 2 deletions qa/L0_infer/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export ENSEMBLES
if [[ $BACKENDS == *"python_dlpack"* ]]; then
if [ "$TEST_JETSON" == "0" ]; then
if [[ "aarch64" != $(uname -m) ]] ; then
pip3 install torch==1.9.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch==1.13.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
else
pip3 install torch==1.9.0 -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch==1.13.0 -f https://download.pytorch.org/whl/torch_stable.html
fi
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion qa/L0_io/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ LD_LIBRARY_PATH=/opt/tritonserver/lib:$LD_LIBRARY_PATH
rm -f $CLIENT_LOG.*

# PyTorch is required for the Python backend dlpack add sub models
pip3 install torch==1.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
pip3 install torch==1.13.0+cu117 -f https://download.pytorch.org/whl/torch_stable.html
RET=0

# Prepare float32 models with basic config
Expand Down

0 comments on commit 232d432

Please sign in to comment.