Skip to content

Commit 3e1ab00

Browse files
committed
remove logs
1 parent 0041859 commit 3e1ab00

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/sagemaker/jumpstart/types.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,6 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
12851285
Args:
12861286
json_obj (Dict[str, Any]): Dictionary representation of spec.
12871287
"""
1288-
print("HEYHEYHEY")
12891288
if self._is_hub_content:
12901289
json_obj = walk_and_apply_json(json_obj, camel_to_snake)
12911290
self.model_id: str = json_obj.get("model_id")
@@ -1362,7 +1361,6 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
13621361
)
13631362
self.model_kwargs = deepcopy(json_obj.get("model_kwargs", {}))
13641363
self.deploy_kwargs = deepcopy(json_obj.get("deploy_kwargs", {}))
1365-
print(f'HUH {json_obj.get("predictor_specs")}')
13661364
self.predictor_specs: Optional[JumpStartPredictorSpecs] = (
13671365
JumpStartPredictorSpecs(
13681366
json_obj.get("predictor_specs"),
@@ -1541,7 +1539,7 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
15411539
# Handle custom fields
15421540
for custom_field, field in self.CUSTOM_FIELD_MAP.items():
15431541
if field in json_obj:
1544-
setattr(self, field, json_obj[custom_field])
1542+
setattr(self, field, json_obj.get(custom_field))
15451543

15461544

15471545
class JumpStartMetadataConfig(JumpStartDataHolderType):
@@ -1734,9 +1732,7 @@ def __init__(self, spec: Dict[str, Any], is_hub_content: Optional[bool] = False)
17341732
spec (Dict[str, Any]): Dictionary representation of spec.
17351733
is_hub_content (Optional[bool]): Whether the model is from a private hub.
17361734
"""
1737-
print("here?")
17381735
super().__init__(spec, is_hub_content)
1739-
print("hi")
17401736
self.from_json(spec)
17411737
if self.inference_configs and self.inference_configs.get_top_config_from_ranking():
17421738
super().from_json(self.inference_configs.get_top_config_from_ranking().resolved_config)

tests/unit/sagemaker/jumpstart/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ def get_special_model_spec(
144144
"""
145145

146146
specs = JumpStartModelSpecs(SPECIAL_MODEL_SPECS_DICT[model_id])
147-
print(f"HERE {specs.predictor_specs}")
148147
return specs
149148

150149

0 commit comments

Comments
 (0)