Skip to content

Commit 02b1a97

Browse files
committed
fix: JumpStartModelSpecs hyperparameters
1 parent 04143a6 commit 02b1a97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/jumpstart/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
173173
)
174174
self.training_artifact_key: Optional[str] = json_obj["training_artifact_key"]
175175
self.training_script_key: Optional[str] = json_obj["training_script_key"]
176-
self.hyperparameters: Optional[Dict[str, Any]] = json_obj["hyperparameters"]
176+
self.hyperparameters: Optional[Dict[str, Any]] = json_obj.get("hyperparameters")
177177
else:
178178
self.training_ecr_specs = (
179179
self.training_artifact_key

0 commit comments

Comments
 (0)