Skip to content

Commit c86082f

Browse files
committed
fix tox.ini
1 parent cf4cb16 commit c86082f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sagemaker/modules/train/model_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def model_post_init(self, __context: Any):
485485
logger.info(f"contents: {contents}")
486486
self.hyperparameters = yaml.safe_load(contents)
487487
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")
489489
logger.info(f"hyperparameters: {self.hyperparameters}")
490490
logger.debug("Hyperparameters loaded as YAML")
491491
except (yaml.YAMLError, ValueError):

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' -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'
8888
pip install 'dill>=0.3.8'
8989

9090
pytest {posargs}

0 commit comments

Comments
 (0)