You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inference_container_type_smc (bool): If true, then `inference_contianer` argument should contain service managed container name without tag information
578
573
finetuning_container (str): selects service defaults
579
574
finetuning_container_type_smc (bool): If true, then `finetuning_container` argument should contain service managed container name without tag
580
-
shadow_model (DataScienceModel): If set, then copies all the tags and custom metadata information from the service shadow model
575
+
verified_model (DataScienceModel): If set, then copies all the tags and custom metadata information from the service verified model
581
576
compartment_id (Optional[str]): Compartment Id of the compartment where the model has to be created
582
577
project_id (Optional[str]): Project id of the project where the model has to be created
# Remove `ready_to_import` tag that might get copied from service model.
602
600
tags.pop(Tags.READY_TO_IMPORT, None)
603
601
metadata=None
604
-
ifshadow_model:
605
-
# Shadow model is a model in the service catalog that either has no artifacts but contains all the necessary metadata for deploying and fine tuning.
602
+
ifverified_model:
603
+
# Verified model is a model in the service catalog that either has no artifacts but contains all the necessary metadata for deploying and fine tuning.
606
604
# If set, then we copy all the model metadata.
607
-
metadata=shadow_model.custom_metadata_list
608
-
ifshadow_model.model_file_description:
605
+
metadata=verified_model.custom_metadata_list
606
+
ifverified_model.model_file_description:
609
607
model=model.with_model_file_description(
610
-
json_dict=shadow_model.model_file_description
608
+
json_dict=verified_model.model_file_description
611
609
)
612
610
613
611
else:
614
612
metadata=ModelCustomMetadata()
615
-
ifnotinference_container:
616
-
raiseValueError(
617
-
f"Require Inference container information. Model: {model_name} does not have associated inference container defaults. Check docs for more information on how to pass inference container"
0 commit comments