Skip to content

Commit 0bd5104

Browse files
committed
pylint
1 parent b695743 commit 0bd5104

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sagemaker/modules/train/sm_recipes/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _get_trainining_recipe_gpu_model_name_and_script(model_type: str):
135135
"deepseek": ("deepseek", "deepseek_pretrain.py"),
136136
}
137137

138-
for key in model_type_to_script.keys():
138+
for key in model_type_to_script:
139139
if model_type.startswith(key):
140140
model_type = key
141141
break

src/sagemaker/pytorch/estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _get_training_recipe_gpu_script(code_dir, recipe, source_dir):
104104
raise ValueError("Supplied recipe does not contain required field model_type.")
105105
model_type = recipe["model"]["model_type"]
106106

107-
for key in model_type_to_script.keys():
107+
for key in model_type_to_script:
108108
if model_type.startswith(key):
109109
model_type = key
110110
break

0 commit comments

Comments
 (0)