Skip to content

Commit c21d2e1

Browse files
committed
fix: failing tests
1 parent 8d527f8 commit c21d2e1

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

src/sagemaker/jumpstart/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def from_json(self, json_obj: Optional[Dict[str, Any]]) -> None:
337337
return
338338

339339
self.aliases: dict = json_obj["aliases"]
340-
self.variant: dict = json_obj["variants"]
340+
self.variants: dict = json_obj["variants"]
341341

342342
def to_json(self) -> Dict[str, Any]:
343343
"""Returns json representation of JumpStartPredictorSpecs object."""

tests/unit/sagemaker/jumpstart/constants.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2646,29 +2646,7 @@
26462646
"framework_version": "1.5.0",
26472647
"py_version": "py3",
26482648
},
2649-
"hosting_instance_type_variants": {
2650-
"aliases": {
2651-
"us-west-2": {
2652-
"gpu_image_uri": "763104351884.dkr.ecr.us-west-2.amazonaws.com/"
2653-
"huggingface-pytorch-inference:1.13.1-transformers4.26.0-gpu-py39-cu117-ubuntu20.04",
2654-
"cpu_image_uri": "867930986793.dkr.us-west-2.amazonaws.com/cpu-blah",
2655-
}
2656-
},
2657-
"variants": {
2658-
"p2": {"properties": {"image_uri": "$gpu_image_uri"}},
2659-
"p3": {"properties": {"image_uri": "$gpu_image_uri"}},
2660-
"p4": {"properties": {"image_uri": "$gpu_image_uri"}},
2661-
"g4dn": {"properties": {"image_uri": "$gpu_image_uri"}},
2662-
"m2": {"properties": {"image_uri": "$cpu_image_uri"}},
2663-
"c2": {"properties": {"image_uri": "$cpu_image_uri"}},
2664-
"ml.g5.48xlarge": {
2665-
"properties": {"environment_variables": {"TENSOR_PARALLEL_DEGREE": "8"}}
2666-
},
2667-
"ml.g5.12xlarge": {
2668-
"properties": {"environment_variables": {"TENSOR_PARALLEL_DEGREE": "4"}}
2669-
},
2670-
},
2671-
},
2649+
"hosting_instance_type_variants": None,
26722650
"training_ecr_specs": {
26732651
"framework": "pytorch",
26742652
"framework_version": "1.5.0",

0 commit comments

Comments
 (0)