File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/sagemaker/modules/train Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ def model_post_init(self, __context: Any):
485
485
logger .info (f"contents: { contents } " )
486
486
self .hyperparameters = yaml .safe_load (contents )
487
487
if not isinstance (self .hyperparameters , dict ):
488
- raise ValueError (f "YAML contents must be a valid mapping" )
488
+ raise ValueError ("YAML contents must be a valid mapping" )
489
489
logger .info (f"hyperparameters: { self .hyperparameters } " )
490
490
logger .debug ("Hyperparameters loaded as YAML" )
491
491
except (yaml .YAMLError , ValueError ):
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ passenv =
83
83
commands =
84
84
python -c " import os; os.system('install-custom-pkgs --install-boto-wheels')"
85
85
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' -f ' https://download.pytorch.org/whl/torch_stable.html'
87
- pip install ' torchvision==0.15.2' -f ' https://download.pytorch.org/whl/torch_stable.html'
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'
88
88
pip install ' dill>=0.3.8'
89
89
90
90
pytest {posargs}
You can’t perform that action at this time.
0 commit comments