File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 23
23
get_resource_name ,
24
24
get_model_by_reference_paths ,
25
25
get_ocid_substring ,
26
+ AQUA_MODEL_TYPE_SERVICE ,
27
+ AQUA_MODEL_TYPE_CUSTOM ,
26
28
)
27
29
from ads .aqua .finetune import FineTuneCustomMetadata
28
30
from ads .aqua .data import AquaResourceIdentifier
@@ -392,7 +394,9 @@ def create(
392
394
.with_runtime (container_runtime )
393
395
).deploy (wait_for_completion = False )
394
396
395
- model_type = "custom" if is_fine_tuned_model else "service"
397
+ model_type = (
398
+ AQUA_MODEL_TYPE_CUSTOM if is_fine_tuned_model else AQUA_MODEL_TYPE_SERVICE
399
+ )
396
400
deployment_id = deployment .dsc_model_deployment .id
397
401
# we arbitrarily choose last 8 characters of OCID to identify MD in telemetry
398
402
telemetry_kwargs = {"ocid" : get_ocid_substring (deployment_id , key_len = 8 )}
Original file line number Diff line number Diff line change 73
73
READY_TO_DEPLOY_STATUS = "ACTIVE"
74
74
READY_TO_FINE_TUNE_STATUS = "TRUE"
75
75
AQUA_GA_LIST = ["id19sfcrra6z" ]
76
+ AQUA_MODEL_TYPE_SERVICE = "service"
77
+ AQUA_MODEL_TYPE_CUSTOM = "custom"
76
78
77
79
78
80
class LifecycleStatus (Enum ):
You can’t perform that action at this time.
0 commit comments