Skip to content

Commit 99970fa

Browse files
Merge branch 'main' into feature/aqua-v1.0.5
2 parents a2abc5c + 5b52216 commit 99970fa

36 files changed

+659
-208
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: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,3 @@ def get_evaluation_service_config(
2929
.get(ContainerSpec.CONTAINER_SPEC, {})
3030
.get(container, {})
3131
)
32-
33-
34-
# TODO: move this to global config.json in object storage
35-
def get_finetuning_config_defaults():
36-
"""Generate and return the fine-tuning default configuration dictionary."""
37-
return {
38-
"shape": {
39-
"VM.GPU.A10.1": {"batch_size": 1, "replica": "1-10"},
40-
"VM.GPU.A10.2": {"batch_size": 1, "replica": "1-10"},
41-
"BM.GPU.A10.4": {"batch_size": 1, "replica": 1},
42-
"BM.GPU4.8": {"batch_size": 4, "replica": 1},
43-
"BM.GPU.A100-v2.8": {"batch_size": 6, "replica": 1},
44-
"BM.GPU.H100.8": {"batch_size": 6, "replica": 1},
45-
}
46-
}

ads/aqua/config/deployment_config_defaults.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

ads/aqua/config/resource_limit_names.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

ads/aqua/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
LIFECYCLE_DETAILS_MISSING_JOBRUN = "The associated JobRun resource has been deleted."
2828
READY_TO_DEPLOY_STATUS = "ACTIVE"
2929
READY_TO_FINE_TUNE_STATUS = "TRUE"
30+
PRIVATE_ENDPOINT_TYPE = "MODEL_DEPLOYMENT"
3031
AQUA_GA_LIST = ["id19sfcrra6z"]
3132
AQUA_MODEL_TYPE_SERVICE = "service"
3233
AQUA_MODEL_TYPE_CUSTOM = "custom"

ads/aqua/extension/deployment_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def post(self, *args, **kwargs):
129129
ocpus = input_data.get("ocpus")
130130
memory_in_gbs = input_data.get("memory_in_gbs")
131131
model_file = input_data.get("model_file")
132+
private_endpoint_id = input_data.get("private_endpoint_id")
132133

133134
self.finish(
134135
AquaDeploymentApp().create(
@@ -151,6 +152,7 @@ def post(self, *args, **kwargs):
151152
ocpus=ocpus,
152153
memory_in_gbs=memory_in_gbs,
153154
model_file=model_file,
155+
private_endpoint_id=private_endpoint_id,
154156
)
155157
)
156158

ads/aqua/extension/ui_handler.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright (c) 2024 Oracle and/or its affiliates.
43
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
54

@@ -10,8 +9,9 @@
109

1110
from ads.aqua.common.decorator import handle_exceptions
1211
from ads.aqua.common.enums import Tags
13-
from ads.aqua.extension.errors import Errors
12+
from ads.aqua.constants import PRIVATE_ENDPOINT_TYPE
1413
from ads.aqua.extension.base_handler import AquaAPIhandler
14+
from ads.aqua.extension.errors import Errors
1515
from ads.aqua.extension.utils import validate_function_parameters
1616
from ads.aqua.model.entities import ImportModelDetails
1717
from ads.aqua.ui import AquaUIApp
@@ -72,6 +72,8 @@ def get(self, id=""):
7272
return self.list_vcn()
7373
elif paths.startswith("aqua/subnets"):
7474
return self.list_subnets()
75+
elif paths.startswith("aqua/privateendpoints"):
76+
return self.list_private_endpoints()
7577
elif paths.startswith("aqua/shapes/limit"):
7678
return self.get_shape_availability()
7779
elif paths.startswith("aqua/bucket/versioning"):
@@ -175,15 +177,31 @@ def list_subnets(self, **kwargs):
175177
)
176178
)
177179

180+
def list_private_endpoints(self, **kwargs):
181+
"""Lists the private endpoints in the specified compartment."""
182+
compartment_id = self.get_argument("compartment_id", default=COMPARTMENT_OCID)
183+
resource_type = self.get_argument(
184+
"resource_type", default=PRIVATE_ENDPOINT_TYPE
185+
)
186+
return self.finish(
187+
AquaUIApp().list_private_endpoints(
188+
compartment_id=compartment_id, resource_type=resource_type, **kwargs
189+
)
190+
)
191+
178192
def get_shape_availability(self, **kwargs):
179193
"""For a given compartmentId, resource limit name, and scope, returns the number of available resources associated
180194
with the given limit."""
181195
compartment_id = self.get_argument("compartment_id", default=COMPARTMENT_OCID)
182196
instance_shape = self.get_argument("instance_shape")
197+
limit_name = self.get_argument("limit_name")
183198

184199
return self.finish(
185200
AquaUIApp().get_shape_availability(
186-
compartment_id=compartment_id, instance_shape=instance_shape, **kwargs
201+
compartment_id=compartment_id,
202+
instance_shape=instance_shape,
203+
limit_name=limit_name,
204+
**kwargs,
187205
)
188206
)
189207

@@ -244,6 +262,7 @@ def post(self, *args, **kwargs):
244262
("job/shapes/?([^/]*)", AquaUIHandler),
245263
("vcn/?([^/]*)", AquaUIHandler),
246264
("subnets/?([^/]*)", AquaUIHandler),
265+
("privateendpoints/?([^/]*)", AquaUIHandler),
247266
("shapes/limit/?([^/]*)", AquaUIHandler),
248267
("bucket/versioning/?([^/]*)", AquaUIHandler),
249268
("containers/?([^/]*)", AquaUIHandler),

0 commit comments

Comments
 (0)