Skip to content

Commit 68178d4

Browse files
Resolving conflicts
2 parents da5fb1a + 611b9d4 commit 68178d4

27 files changed

+452
-39
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/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/modeldeployment/deployment.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def create(
103103
memory_in_gbs: Optional[float] = None,
104104
ocpus: Optional[float] = None,
105105
model_file: Optional[str] = None,
106+
private_endpoint_id: Optional[str] = None,
106107
) -> "AquaDeployment":
107108
"""
108109
Creates a new Aqua deployment
@@ -149,6 +150,9 @@ def create(
149150
The ocpu count for the shape selected.
150151
model_file: str
151152
The file used for model deployment.
153+
private_endpoint_id: str
154+
The private endpoint id of model deployment.
155+
152156
Returns
153157
-------
154158
AquaDeployment
@@ -171,6 +175,7 @@ def create(
171175
tags[tag] = aqua_model.freeform_tags[tag]
172176

173177
tags.update({Tags.AQUA_MODEL_NAME_TAG: aqua_model.display_name})
178+
tags.update({Tags.TASK: aqua_model.freeform_tags.get(Tags.TASK, None)})
174179

175180
# Set up info to get deployment config
176181
config_source_id = model_id
@@ -341,6 +346,7 @@ def create(
341346
.with_bandwidth_mbps(bandwidth_mbps)
342347
.with_replica(instance_count)
343348
.with_web_concurrency(web_concurrency)
349+
.with_private_endpoint_id(private_endpoint_id)
344350
.with_access_log(
345351
log_group_id=log_group_id,
346352
log_id=access_log_id,

ads/aqua/modeldeployment/entities.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
44

55
from dataclasses import dataclass, field
6-
from typing import Union
6+
from typing import Union, Optional
77

88
from oci.data_science.models import (
99
ModelDeployment,
@@ -47,9 +47,10 @@ class AquaDeployment(DataClassSerializable):
4747
created_on: str = None
4848
created_by: str = None
4949
endpoint: str = None
50+
private_endpoint_id: str = None
5051
console_link: str = None
5152
lifecycle_details: str = None
52-
shape_info: field(default_factory=ShapeInfo) = None
53+
shape_info: Optional[ShapeInfo] = None
5354
tags: dict = None
5455
environment_variables: dict = None
5556

@@ -98,6 +99,7 @@ def from_oci_model_deployment(
9899
freeform_tags = oci_model_deployment.freeform_tags or UNKNOWN_DICT
99100
aqua_service_model_tag = freeform_tags.get(Tags.AQUA_SERVICE_MODEL_TAG, None)
100101
aqua_model_name = freeform_tags.get(Tags.AQUA_MODEL_NAME_TAG, UNKNOWN)
102+
private_endpoint_id = getattr(instance_configuration, "private_endpoint_id", UNKNOWN)
101103

102104
return AquaDeployment(
103105
id=oci_model_deployment.id,
@@ -113,6 +115,7 @@ def from_oci_model_deployment(
113115
created_on=str(oci_model_deployment.time_created),
114116
created_by=oci_model_deployment.created_by,
115117
endpoint=oci_model_deployment.model_deployment_url,
118+
private_endpoint_id=private_endpoint_id,
116119
console_link=get_console_link(
117120
resource="model-deployments",
118121
ocid=oci_model_deployment.id,

0 commit comments

Comments
 (0)