File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class ModelTask(ExtendedEnum):
26
26
TEXT_GENERATION = "text-generation"
27
27
IMAGE_TEXT_TO_TEXT = "image-text-to-text"
28
28
IMAGE_TO_TEXT = "image-to-text"
29
+ TIME_SERIES_FORECASTING = "time-series-forecasting"
29
30
30
31
31
32
class FineTuningMetricCategories (ExtendedEnum ):
Original file line number Diff line number Diff line change 48
48
)
49
49
from ads .aqua .data import AquaResourceIdentifier
50
50
from ads .aqua .model import AquaModelApp
51
- from ads .aqua .model .constants import AquaModelMetadataKeys , ModelCustomMetadataFields
51
+ from ads .aqua .model .constants import (
52
+ AquaModelMetadataKeys ,
53
+ ModelCustomMetadataFields ,
54
+ ModelTask ,
55
+ )
52
56
from ads .aqua .model .utils import (
53
57
extract_base_model_from_ft ,
54
58
extract_fine_tune_artifacts_path ,
@@ -215,6 +219,14 @@ def create(
215
219
freeform_tags = freeform_tags ,
216
220
defined_tags = defined_tags ,
217
221
)
222
+ task_tag = aqua_model .freeform_tags .get (Tags .TASK , UNKNOWN )
223
+ if (
224
+ task_tag == ModelTask .TIME_SERIES_FORECASTING
225
+ or task_tag == ModelTask .TIME_SERIES_FORECASTING .replace ("-" , "_" )
226
+ ):
227
+ create_deployment_details .env_var .update (
228
+ {Tags .TASK .upper (): ModelTask .TIME_SERIES_FORECASTING }
229
+ )
218
230
return self ._create (
219
231
aqua_model = aqua_model ,
220
232
create_deployment_details = create_deployment_details ,
You can’t perform that action at this time.
0 commit comments