Skip to content

Commit 7b3abca

Browse files
upgrade pytorch/ipex to 2.2.0 (intel#1280)
Co-authored-by: Wang, Chang <[email protected]>
1 parent 9e9e4c7 commit 7b3abca

File tree

54 files changed

+76
-74
lines changed

Some content is hidden

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

54 files changed

+76
-74
lines changed

.github/workflows/script/unitTest/run_unit_test_neuralchat.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function main() {
9090
apt-get install libsm6 libxext6 -y
9191
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
9292
dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
93-
python -m pip install --upgrade --force-reinstall torch==2.1.0
93+
python -m pip install --upgrade --force-reinstall torch==2.2.0
9494
pip install paddlepaddle==2.4.2 paddlenlp==2.5.2 paddlespeech==1.4.1 paddle2onnx==1.0.6 fastapi==0.103.2
9595
cd ${WORKING_DIR} || exit 1
9696
echo "test on ${test_name}"

.github/workflows/script/unitTest/run_unit_test_neuralspeed.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ function neuralspeed_test() {
2424
[ $(grep -c "==ERROR:" ${ut_log_name}) != 0 ] ||
2525
[ $(grep -c "ModuleNotFoundError:" ${ut_log_name}) != 0 ] ||
2626
[ $(grep -c "ImportError:" ${ut_log_name}) != 0 ]; then
27-
exit 1
28-
fi; then
2927
$BOLD_RED && echo "Find errors in engine test, please check the output..." && $RESET
3028
exit 1
3129
else

docker/Dockerfile_code_gen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ COPY . /app/intel-extension-for-transformers
4949

5050
RUN ${PYTHON} -m pip install -r requirements.txt --no-cache-dir -f https://download.pytorch.org/whl/cpu/torch_stable.html
5151

52-
RUN ${PYTHON} -m pip install torch==2.1.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
52+
RUN ${PYTHON} -m pip install torch==2.2.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
5353

5454
RUN ${PYTHON} -m pip install -r examples/huggingface/pytorch/code-generation/quantization/requirements.txt --no-cache-dir
5555

examples/huggingface/neural_speed/perplexity/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--extra-index-url https://download.pytorch.org/whl/cpu
2-
torch==2.1.0+cpu
2+
torch==2.2.0+cpu
33
transformers
44
numpy
55
sentencepiece

examples/huggingface/neural_speed/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ git+https://github.com/EleutherAI/lm-evaluation-harness.git@cc9778fbe4fa1a709be2
44
sentencepiece
55
gguf
66
--extra-index-url https://download.pytorch.org/whl/cpu
7-
torch==2.1.0+cpu
7+
torch==2.2.0+cpu
88
transformers
9-
intel_extension_for_pytorch==2.1.0
9+
intel_extension_for_pytorch==2.2.0

examples/huggingface/pytorch/image-classification/deployment/imagenet/vit/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ accelerate
44
datasets >= 1.8.0
55
sentencepiece != 0.1.92
66
protobuf
7-
torch==2.1.0
8-
torchvision==0.16.0
7+
torch==2.2.0
8+
torchvision==0.17.0
99
onnx>=1.12
1010
onnxruntime==1.13.1
1111
onnxoptimizer

examples/huggingface/pytorch/image-classification/quantization/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ accelerate
33
datasets >= 1.8.0
44
sentencepiece != 0.1.92
55
protobuf
6-
torch==2.1.0
7-
torchvision==0.16.0
6+
torch==2.2.0
7+
torchvision==0.17.0
88
onnx>=1.12
99
onnxruntime==1.13.1
1010
evaluate
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
transformers
2-
torch==2.1.0
2+
torch==2.2.0
33
optimum

examples/huggingface/pytorch/question-answering/deployment/squad/bert_large/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ accelerate
44
datasets >= 1.8.0
55
sentencepiece != 0.1.92
66
protobuf
7-
torch==2.1.0
7+
torch==2.2.0
88
onnx>=1.12
99
onnxruntime==1.13.1
1010
optimum

examples/huggingface/pytorch/question-answering/deployment/squad/length_adaptive_transformer/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ accelerate
44
datasets >= 1.8.0
55
sentencepiece != 0.1.92
66
protobuf
7-
torch==2.1.0
7+
torch==2.2.0
88
onnx>=1.12
99
onnxruntime==1.12.1
1010
optimum

0 commit comments

Comments
 (0)