oracle-ads 2.12.0__py3-none-any.whl → 2.12.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ads/aqua/config/config.py +1 -0
- ads/aqua/config/deployment_config_defaults.json +1 -0
- ads/aqua/config/evaluation/evaluation_service_config.py +1 -0
- ads/aqua/config/resource_limit_names.json +1 -0
- ads/aqua/extension/model_handler.py +17 -21
- ads/aqua/model/constants.py +3 -1
- ads/opctl/operator/common/data/synthetic.csv +16001 -0
- ads/opctl/operator/lowcode/anomaly/MLoperator +1 -0
- ads/opctl/operator/lowcode/anomaly/const.py +7 -2
- ads/opctl/operator/lowcode/anomaly/model/autots.py +30 -35
- ads/opctl/operator/lowcode/anomaly/model/factory.py +9 -8
- ads/opctl/operator/lowcode/anomaly/schema.yaml +8 -2
- ads/opctl/operator/lowcode/forecast/MLoperator +3 -3
- ads/opctl/operator/lowcode/forecast/model/automlx.py +1 -1
- ads/opctl/operator/lowcode/forecast/model/forecast_datasets.py +1 -1
- {oracle_ads-2.12.0.dist-info → oracle_ads-2.12.2.dist-info}/METADATA +1 -1
- {oracle_ads-2.12.0.dist-info → oracle_ads-2.12.2.dist-info}/RECORD +20 -19
- {oracle_ads-2.12.0.dist-info → oracle_ads-2.12.2.dist-info}/LICENSE.txt +0 -0
- {oracle_ads-2.12.0.dist-info → oracle_ads-2.12.2.dist-info}/WHEEL +0 -0
- {oracle_ads-2.12.0.dist-info → oracle_ads-2.12.2.dist-info}/entry_points.txt +0 -0
ads/aqua/config/config.py
CHANGED
@@ -40,6 +40,7 @@ def get_finetuning_config_defaults():
|
|
40
40
|
"VM.GPU.A10.2": {"batch_size": 1, "replica": "1-10"},
|
41
41
|
"BM.GPU.A10.4": {"batch_size": 1, "replica": 1},
|
42
42
|
"BM.GPU4.8": {"batch_size": 4, "replica": 1},
|
43
|
+
"BM.GPU.L40S-NC.4": {"batch_size": 4, "replica": 1},
|
43
44
|
"BM.GPU.A100-v2.8": {"batch_size": 6, "replica": 1},
|
44
45
|
"BM.GPU.H100.8": {"batch_size": 6, "replica": 1},
|
45
46
|
}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
"BM.GPU.A10.4": "ds-gpu-a10-count",
|
3
3
|
"BM.GPU.A100-v2.8": "ds-gpu-a100-v2-count",
|
4
4
|
"BM.GPU.H100.8": "ds-gpu-h100-count",
|
5
|
+
"BM.GPU.L40S-NC.4": "ds-gpu-l40s-nc-count",
|
5
6
|
"BM.GPU4.8": "ds-gpu4-count",
|
6
7
|
"VM.GPU.A10.1": "ds-gpu-a10-count",
|
7
8
|
"VM.GPU.A10.2": "ds-gpu-a10-count"
|
@@ -13,7 +13,6 @@ from ads.aqua.common.utils import get_hf_model_info, list_hf_models
|
|
13
13
|
from ads.aqua.extension.base_handler import AquaAPIhandler
|
14
14
|
from ads.aqua.extension.errors import Errors
|
15
15
|
from ads.aqua.model import AquaModelApp
|
16
|
-
from ads.aqua.model.constants import ModelTask
|
17
16
|
from ads.aqua.model.entities import AquaModelSummary, HFModelSummary
|
18
17
|
from ads.aqua.ui import ModelFormat
|
19
18
|
|
@@ -68,7 +67,7 @@ class AquaModelHandler(AquaAPIhandler):
|
|
68
67
|
return self.finish(AquaModelApp().get(model_id))
|
69
68
|
|
70
69
|
@handle_exceptions
|
71
|
-
def delete(self):
|
70
|
+
def delete(self, id=""):
|
72
71
|
"""Handles DELETE request for clearing cache"""
|
73
72
|
url_parse = urlparse(self.request.path)
|
74
73
|
paths = url_parse.path.strip("/")
|
@@ -177,10 +176,8 @@ class AquaHuggingFaceHandler(AquaAPIhandler):
|
|
177
176
|
|
178
177
|
return None
|
179
178
|
|
180
|
-
|
181
|
-
|
182
179
|
@handle_exceptions
|
183
|
-
def get(self
|
180
|
+
def get(self, *args, **kwargs):
|
184
181
|
"""
|
185
182
|
Finds a list of matching models from hugging face based on query string provided from users.
|
186
183
|
|
@@ -194,13 +191,11 @@ class AquaHuggingFaceHandler(AquaAPIhandler):
|
|
194
191
|
Returns the matching model ids string
|
195
192
|
"""
|
196
193
|
|
197
|
-
query=self.get_argument("query",default=None)
|
194
|
+
query = self.get_argument("query", default=None)
|
198
195
|
if not query:
|
199
|
-
raise HTTPError(400,Errors.MISSING_REQUIRED_PARAMETER.format("query"))
|
200
|
-
models=list_hf_models(query)
|
201
|
-
return self.finish({"models":models})
|
202
|
-
|
203
|
-
|
196
|
+
raise HTTPError(400, Errors.MISSING_REQUIRED_PARAMETER.format("query"))
|
197
|
+
models = list_hf_models(query)
|
198
|
+
return self.finish({"models": models})
|
204
199
|
|
205
200
|
@handle_exceptions
|
206
201
|
def post(self, *args, **kwargs):
|
@@ -234,16 +229,17 @@ class AquaHuggingFaceHandler(AquaAPIhandler):
|
|
234
229
|
"Please verify the model's status on the Hugging Face Model Hub or select a different model."
|
235
230
|
)
|
236
231
|
|
237
|
-
#
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
)
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
232
|
+
# Commented the validation below to let users to register any model type.
|
233
|
+
# # Check pipeline_tag, it should be `text-generation`
|
234
|
+
# if not (
|
235
|
+
# hf_model_info.pipeline_tag
|
236
|
+
# and hf_model_info.pipeline_tag.lower() in ModelTask
|
237
|
+
# ):
|
238
|
+
# raise AquaRuntimeError(
|
239
|
+
# f"Unsupported pipeline tag for the chosen model: '{hf_model_info.pipeline_tag}'. "
|
240
|
+
# f"AQUA currently supports the following tasks only: {', '.join(ModelTask.values())}. "
|
241
|
+
# "Please select a model with a compatible pipeline tag."
|
242
|
+
# )
|
247
243
|
|
248
244
|
# Check if it is a service/verified model
|
249
245
|
aqua_model_info: AquaModelSummary = self._find_matching_aqua_model(
|
ads/aqua/model/constants.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
#!/usr/bin/env python
|
2
|
-
# -*- coding: utf-8 -*-
|
3
2
|
# Copyright (c) 2024 Oracle and/or its affiliates.
|
4
3
|
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
|
5
4
|
|
@@ -9,6 +8,7 @@ aqua.model.constants
|
|
9
8
|
|
10
9
|
This module contains constants/enums used in Aqua Model.
|
11
10
|
"""
|
11
|
+
|
12
12
|
from ads.common.extended_enum import ExtendedEnumMeta
|
13
13
|
|
14
14
|
|
@@ -21,6 +21,8 @@ class ModelCustomMetadataFields(str, metaclass=ExtendedEnumMeta):
|
|
21
21
|
|
22
22
|
class ModelTask(str, metaclass=ExtendedEnumMeta):
|
23
23
|
TEXT_GENERATION = "text-generation"
|
24
|
+
IMAGE_TEXT_TO_TEXT = "image-text-to-text"
|
25
|
+
IMAGE_TO_TEXT = "image-to-text"
|
24
26
|
|
25
27
|
|
26
28
|
class FineTuningMetricCategories(str, metaclass=ExtendedEnumMeta):
|