Skip to content

[AQUA] Time series forecasting model support #1220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ads/aqua/model/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class ModelTask(ExtendedEnum):
TEXT_GENERATION = "text-generation"
IMAGE_TEXT_TO_TEXT = "image-text-to-text"
IMAGE_TO_TEXT = "image-to-text"
TIME_SERIES_FORECASTING = "time-series-forecasting"


class FineTuningMetricCategories(ExtendedEnum):
Expand Down
13 changes: 12 additions & 1 deletion ads/aqua/modeldeployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@
)
from ads.aqua.data import AquaResourceIdentifier
from ads.aqua.model import AquaModelApp
from ads.aqua.model.constants import AquaModelMetadataKeys, ModelCustomMetadataFields
from ads.aqua.model.constants import (
AquaModelMetadataKeys,
ModelCustomMetadataFields,
ModelTask,
)
from ads.aqua.model.utils import (
extract_base_model_from_ft,
extract_fine_tune_artifacts_path,
Expand Down Expand Up @@ -214,6 +218,13 @@ def create(
freeform_tags=freeform_tags,
defined_tags=defined_tags,
)
if (
aqua_model.freeform_tags.get(Tags.TASK, UNKNOWN)
== ModelTask.TIME_SERIES_FORECASTING
):
create_deployment_details.env_var.update(
{Tags.TASK.upper(): ModelTask.TIME_SERIES_FORECASTING}
)
return self._create(
aqua_model=aqua_model,
create_deployment_details=create_deployment_details,
Expand Down