@@ -1285,7 +1285,6 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
1285
1285
Args:
1286
1286
json_obj (Dict[str, Any]): Dictionary representation of spec.
1287
1287
"""
1288
- print ("HEYHEYHEY" )
1289
1288
if self ._is_hub_content :
1290
1289
json_obj = walk_and_apply_json (json_obj , camel_to_snake )
1291
1290
self .model_id : str = json_obj .get ("model_id" )
@@ -1362,7 +1361,6 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
1362
1361
)
1363
1362
self .model_kwargs = deepcopy (json_obj .get ("model_kwargs" , {}))
1364
1363
self .deploy_kwargs = deepcopy (json_obj .get ("deploy_kwargs" , {}))
1365
- print (f'HUH { json_obj .get ("predictor_specs" )} ' )
1366
1364
self .predictor_specs : Optional [JumpStartPredictorSpecs ] = (
1367
1365
JumpStartPredictorSpecs (
1368
1366
json_obj .get ("predictor_specs" ),
@@ -1541,7 +1539,7 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
1541
1539
# Handle custom fields
1542
1540
for custom_field , field in self .CUSTOM_FIELD_MAP .items ():
1543
1541
if field in json_obj :
1544
- setattr (self , field , json_obj [ custom_field ] )
1542
+ setattr (self , field , json_obj . get ( custom_field ) )
1545
1543
1546
1544
1547
1545
class JumpStartMetadataConfig (JumpStartDataHolderType ):
@@ -1734,9 +1732,7 @@ def __init__(self, spec: Dict[str, Any], is_hub_content: Optional[bool] = False)
1734
1732
spec (Dict[str, Any]): Dictionary representation of spec.
1735
1733
is_hub_content (Optional[bool]): Whether the model is from a private hub.
1736
1734
"""
1737
- print ("here?" )
1738
1735
super ().__init__ (spec , is_hub_content )
1739
- print ("hi" )
1740
1736
self .from_json (spec )
1741
1737
if self .inference_configs and self .inference_configs .get_top_config_from_ranking ():
1742
1738
super ().from_json (self .inference_configs .get_top_config_from_ranking ().resolved_config )
0 commit comments