File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-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 47
47
)
48
48
from ads .aqua .data import AquaResourceIdentifier
49
49
from ads .aqua .model import AquaModelApp
50
- from ads .aqua .model .constants import AquaModelMetadataKeys , ModelCustomMetadataFields
50
+ from ads .aqua .model .constants import (
51
+ AquaModelMetadataKeys ,
52
+ ModelCustomMetadataFields ,
53
+ ModelTask ,
54
+ )
51
55
from ads .aqua .model .utils import (
52
56
extract_base_model_from_ft ,
53
57
extract_fine_tune_artifacts_path ,
@@ -214,6 +218,12 @@ def create(
214
218
freeform_tags = freeform_tags ,
215
219
defined_tags = defined_tags ,
216
220
)
221
+ if aqua_model .freeform_tags .get (
222
+ Tags .TASK , ModelTask .TIME_SERIES_FORECASTING
223
+ ):
224
+ create_deployment_details .env_var .update (
225
+ {Tags .TASK .upper (), ModelTask .TIME_SERIES_FORECASTING }
226
+ )
217
227
return self ._create (
218
228
aqua_model = aqua_model ,
219
229
create_deployment_details = create_deployment_details ,
You can’t perform that action at this time.
0 commit comments