Skip to content

Commit b5b5ecf

Browse files
committed
Merge branch 'main' of github.com:oracle/accelerated-data-science into feature/ms_backup_retention
2 parents 3d092ee + 611b9d4 commit b5b5ecf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+17550
-895
lines changed

.github/workflows/run-forecast-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
python-version: ["3.8", "3.9", "3.10"]
30+
python-version: ["3.9", "3.10", "3.11"]
3131

3232
steps:
3333
- uses: actions/checkout@v4

.github/workflows/run-operators-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
python-version: ["3.8", "3.9", "3.10", "3.11"]
30+
python-version: ["3.9", "3.10", "3.11"]
3131

3232
steps:
3333
- uses: actions/checkout@v4

THIRD_PARTY_LICENSES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,11 @@ rrcf
483483
* Source code: https://github.com/kLabUM/rrcf
484484
* Project home: https://github.com/kLabUM/rrcf
485485

486+
Merlion
487+
* Copyright 2021 Salesforce.com Inc
488+
* License: BSD-3 Clause License
489+
* Source code: https://github.com/salesforce/Merlion
490+
* Project Home: https://github.com/salesforce/Merlion
486491

487492
=============================== Licenses ===============================
488493
------------------------------------------------------------------------

ads/aqua/common/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,6 @@ def list_hf_models(query: str) -> List[str]:
10711071
try:
10721072
models = HfApi().list_models(
10731073
model_name=query,
1074-
task="text-generation",
10751074
sort="downloads",
10761075
direction=-1,
10771076
limit=20,

ads/aqua/config/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def get_finetuning_config_defaults():
4040
"VM.GPU.A10.2": {"batch_size": 1, "replica": "1-10"},
4141
"BM.GPU.A10.4": {"batch_size": 1, "replica": 1},
4242
"BM.GPU4.8": {"batch_size": 4, "replica": 1},
43+
"BM.GPU.L40S-NC.4": {"batch_size": 4, "replica": 1},
4344
"BM.GPU.A100-v2.8": {"batch_size": 6, "replica": 1},
4445
"BM.GPU.H100.8": {"batch_size": 6, "replica": 1},
4546
}

ads/aqua/config/deployment_config_defaults.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"VM.GPU.A10.2",
3131
"BM.GPU.A10.4",
3232
"BM.GPU4.8",
33+
"BM.GPU.L40S-NC.4",
3334
"BM.GPU.A100-v2.8",
3435
"BM.GPU.H100.8",
3536
"VM.Standard.A1.Flex"

ads/aqua/config/evaluation/evaluation_service_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def search_shapes(
224224

225225
class Config:
226226
extra = "ignore"
227+
protected_namespaces = ()
227228

228229

229230
class EvaluationServiceConfig(Serializable):

ads/aqua/config/resource_limit_names.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"BM.GPU.A10.4": "ds-gpu-a10-count",
33
"BM.GPU.A100-v2.8": "ds-gpu-a100-v2-count",
44
"BM.GPU.H100.8": "ds-gpu-h100-count",
5+
"BM.GPU.L40S-NC.4": "ds-gpu-l40s-nc-count",
56
"BM.GPU4.8": "ds-gpu4-count",
67
"VM.GPU.A10.1": "ds-gpu-a10-count",
78
"VM.GPU.A10.2": "ds-gpu-a10-count"

ads/aqua/extension/deployment_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def post(self, *args, **kwargs):
102102
ocpus = input_data.get("ocpus")
103103
memory_in_gbs = input_data.get("memory_in_gbs")
104104
model_file = input_data.get("model_file")
105+
private_endpoint_id = input_data.get("private_endpoint_id")
105106

106107
self.finish(
107108
AquaDeploymentApp().create(
@@ -124,6 +125,7 @@ def post(self, *args, **kwargs):
124125
ocpus=ocpus,
125126
memory_in_gbs=memory_in_gbs,
126127
model_file=model_file,
128+
private_endpoint_id=private_endpoint_id,
127129
)
128130
)
129131

ads/aqua/extension/model_handler.py

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from ads.aqua.extension.base_handler import AquaAPIhandler
1414
from ads.aqua.extension.errors import Errors
1515
from ads.aqua.model import AquaModelApp
16-
from ads.aqua.model.constants import ModelTask
1716
from ads.aqua.model.entities import AquaModelSummary, HFModelSummary
1817
from ads.aqua.ui import ModelFormat
1918

@@ -68,7 +67,7 @@ def read(self, model_id):
6867
return self.finish(AquaModelApp().get(model_id))
6968

7069
@handle_exceptions
71-
def delete(self):
70+
def delete(self, id=""):
7271
"""Handles DELETE request for clearing cache"""
7372
url_parse = urlparse(self.request.path)
7473
paths = url_parse.path.strip("/")
@@ -177,10 +176,8 @@ def _find_matching_aqua_model(model_id: str) -> Optional[AquaModelSummary]:
177176

178177
return None
179178

180-
181-
182179
@handle_exceptions
183-
def get(self,*args, **kwargs):
180+
def get(self, *args, **kwargs):
184181
"""
185182
Finds a list of matching models from hugging face based on query string provided from users.
186183
@@ -194,13 +191,11 @@ def get(self,*args, **kwargs):
194191
Returns the matching model ids string
195192
"""
196193

197-
query=self.get_argument("query",default=None)
194+
query = self.get_argument("query", default=None)
198195
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})
204199

205200
@handle_exceptions
206201
def post(self, *args, **kwargs):
@@ -234,16 +229,17 @@ def post(self, *args, **kwargs):
234229
"Please verify the model's status on the Hugging Face Model Hub or select a different model."
235230
)
236231

237-
# Check pipeline_tag, it should be `text-generation`
238-
if (
239-
not hf_model_info.pipeline_tag
240-
or hf_model_info.pipeline_tag.lower() != ModelTask.TEXT_GENERATION
241-
):
242-
raise AquaRuntimeError(
243-
f"Unsupported pipeline tag for the chosen model: '{hf_model_info.pipeline_tag}'. "
244-
f"AQUA currently supports the following tasks only: {', '.join(ModelTask.values())}. "
245-
"Please select a model with a compatible pipeline tag."
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+
# )
247243

248244
# Check if it is a service/verified model
249245
aqua_model_info: AquaModelSummary = self._find_matching_aqua_model(

0 commit comments

Comments
 (0)