Skip to content

Commit 8f26115

Browse files
committed
UPDATE PYTORCH VERSION TO ADDRESS SECURITY RISK
**Description** Currently used Pytorch version has a possible vulnerability . Internal - https://tiny.amazon.com/p5i4jla1 **Testing Done** Unit and Integration tests in the CodeBuild
1 parent b793419 commit 8f26115

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
numpy
22
-f https://download.pytorch.org/whl/torch_stable.html
3-
torch==2.0.1+cpu
3+
torch>=2.6.0+cpu

tests/data/serve_resources/mlflow/pytorch/conda.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ dependencies:
1717
- pandas==2.2.1
1818
- pyyaml==6.0.1
1919
- requests==2.31.0
20-
- torch==2.0.1
21-
- torchvision==0.15.2
20+
- torch>=2.6.0
21+
- torchvision>=0.17.0
2222
- tqdm==4.66.2
2323
- scikit-learn==1.3.2
2424
name: mlflow-env

tests/data/serve_resources/mlflow/pytorch/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ packaging==21.3
1111
pandas==2.2.1
1212
pyyaml==6.0.1
1313
requests==2.32.2
14-
torch==2.2.0
15-
torchvision==0.17.0
14+
torch>=2.6.0
15+
torchvision>=0.17.0
1616
tqdm==4.66.3

tests/unit/sagemaker/jumpstart/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17391,7 +17391,7 @@
1739117391
"texttable==1.6.7",
1739217392
"tokenize-rt==5.1.0",
1739317393
"tokenizers==0.13.3",
17394-
"torch==2.2.0",
17394+
"torch>=2.6.0",
1739517395
"transformers==4.33.3",
1739617396
"triton==2.2.0",
1739717397
"typing-extensions==4.8.0",

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ passenv =
8383
commands =
8484
python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')"
8585
pip install 'apache-airflow==2.9.3' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.9.3/constraints-3.8.txt"
86-
pip install 'torch==2.0.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
87-
pip install 'torchvision==0.15.2+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
86+
pip install 'torch>=2.6.0+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
87+
pip install 'torchvision>=0.17.0+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html'
8888
pip install 'dill>=0.3.8'
8989

9090
pytest {posargs}

0 commit comments

Comments
 (0)