Skip to content

Commit 86033b1

Browse files
authored
Merge branch 'main' into vikaspa/fix-auto-select
2 parents b6f4101 + d05ac53 commit 86033b1

File tree

178 files changed

+15835
-2688
lines changed

Some content is hidden

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

178 files changed

+15835
-2688
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
- uses: ./.github/workflows/set-dummy-conf
4747
name: "Test config setup"
4848

49+
- name: Free up disk space
50+
run: |
51+
sudo apt-get clean
52+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
53+
df -h
54+
4955
- name: "Run Forecast Explainer Tests"
5056
timeout-minutes: 180
5157
shell: bash

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

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

3232
steps:
3333
- uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 0
3636
ref: ${{ github.event.pull_request.head.sha }}
3737

38+
- uses: ./.github/workflows/create-more-space
39+
name: "Create more disk space"
3840

3941
- uses: actions/setup-python@v5
4042
with:

.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.9", "3.10", "3.11"]
30+
python-version: ["3.10", "3.11"]
3131

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

.github/workflows/run-unittests-py310-py311.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
timeout-minutes: 60
9090
shell: bash
9191
env:
92-
CONDA_PREFIX: /usr/share/miniconda
92+
CONDA_PREFIX: /usr/share/miniforge
9393
run: |
9494
set -x # print commands that are executed
9595

.github/workflows/run-unittests-py39-cov-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
timeout-minutes: 60
8484
shell: bash
8585
env:
86-
CONDA_PREFIX: /usr/share/miniconda
86+
CONDA_PREFIX: /usr/share/miniforge
8787
run: |
8888
set -x # print commands that are executed
8989

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @darenr @mayoor @mrDzurb @VipulMascarenhas @qiuosier @ahosler
1+
* @mayoor @mrDzurb @VipulMascarenhas @lu-ohai @smfirmin @sambitkumohanty

README-development.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
The Oracle Accelerated Data Science (ADS) SDK used by data scientists and analysts for
55
data exploration and experimental machine learning to democratize machine learning and
6-
analytics by providing easy-to-use,
6+
analytics by providing easy-to-use,
77
performant, and user-friendly tools that
88
brings together the best of data science practices.
99

@@ -53,16 +53,16 @@ for development and testing purposes.
5353

5454
### Step 1: Create a conda environment
5555

56-
Install Anaconda from `https://repo.continuum.io/miniconda/` for the operating system you are using.
56+
Install Miniforge from `https://github.com/conda-forge/miniforge` for the operating system you are using.
5757

5858
In the terminal client, enter the following where <yourenvname> is the name you want to call your environment,
5959
and set the Python version you want to use. ADS SDK requires Python >=3.8.
6060

6161
```bash
62-
conda create -n <yourenvname> python=3.8 anaconda
62+
conda create -n <yourenvname> -c conda-forge python=3.8
6363
```
6464

65-
This installs the Python version and all the associated anaconda packaged libraries at `path_to_your_anaconda_location/anaconda/envs/<yourenvname>`
65+
This installs the Python version and associated packages from conda-forge at `path_to_your_conda_location/envs/<yourenvname>`
6666

6767
### Step 2: Activate your environment
6868

@@ -168,14 +168,14 @@ These are the steps to run the AQUA (AI Quick Actions) API Server for developmen
168168

169169
### Step 1: Requirements
170170
+ Complete the [Getting Started](#getting-started) Section above, create a conda environment with python >3.9 or 3.10
171-
+ install any Rest API Client in your IDE (Thunder Client on [vscode](https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client) or Postman)
171+
+ install any Rest API Client in your IDE (Thunder Client on [vscode](https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client) or Postman)
172172
+ Activate the conda environment from the Getting Started Section and run
173173

174174
```
175175
pip install -r test-requirements.txt
176176
```
177177

178-
### Step 2: Create local .env files
178+
### Step 2: Create local .env files
179179
Running the local JupyterLab server requires setting OCI authentication, proxy, and OCI namespace parameters. Adapt this .env file with your specific OCI profile and OCIDs to set these variables.
180180

181181
```
@@ -186,17 +186,17 @@ HTTP_PROXY=""
186186
HTTPS_PROXY=""
187187
OCI_ODSC_SERVICE_ENDPOINT="your_service_endpoint"
188188
AQUA_SERVICE_MODELS_BUCKET="service-managed-models"
189-
AQUA_TELEMETRY_BUCKET_NS=""
190-
PROJECT_COMPARTMENT_OCID="ocid1.compartment.oc1.<your_ocid>"
189+
AQUA_TELEMETRY_BUCKET_NS=""
190+
PROJECT_COMPARTMENT_OCID="ocid1.compartment.oc1.<your_ocid>"
191191
OCI_CONFIG_PROFILE="your_oci_profile_name"
192192
OCI_IAM_TYPE="security_token" # no modification needed if using token-based auth
193193
TENANCY_OCID="ocid1.tenancy.oc1.<your_ocid>"
194194
AQUA_JOB_SUBNET_ID="ocid1.subnet.oc1.<your_ocid>"
195-
ODSC_MODEL_COMPARTMENT_OCID="ocid1.compartment.oc1.<your_ocid>"
195+
ODSC_MODEL_COMPARTMENT_OCID="ocid1.compartment.oc1.<your_ocid>"
196196
PROJECT_OCID="ocid1.datascienceproject.oc1.<your_ocid>"
197197
```
198198

199-
### Step 3: Add the run_ads.sh script in the ADS Repository
199+
### Step 3: Add the run_ads.sh script in the ADS Repository
200200
+ add the shell script below and .env file from step 2 to your local directory of the cloned ADS Repository
201201
+ Run ```chmox +x run_ads.sh``` after you create this script.
202202
```
@@ -220,10 +220,10 @@ fi
220220
"$@"
221221
```
222222

223-
### Step 4: Run the JupyterLab Server
223+
### Step 4: Run the JupyterLab Server
224224
We can start the JupyterLab server using the following command
225225

226-
```
226+
```
227227
./run_ads.sh jupyter lab --no-browser --ServerApp.disable_check_xsrf=True
228228
```
229229
+ run ```pkill jupyter-lab``` to kill the JupyterLab server and re-run server to reflect changes made locally to the AQUA API
@@ -244,7 +244,7 @@ GET http://localhost:8888/aqua/deployments # calling the deployment_handler.py
244244
Handlers can be found [here](https://github.com/oracle/accelerated-data-science/tree/21ba00b95aef8581991fee6c7d558e2f2b1680ac/ads/aqua/extension).
245245

246246
### Step 5: Run the unit tests for the AQUA API
247-
All the unit tests can be found [here](https://github.com/oracle/accelerated-data-science/tree/main/tests/unitary/with_extras/aqua).
247+
All the unit tests can be found [here](https://github.com/oracle/accelerated-data-science/tree/main/tests/unitary/with_extras/aqua).
248248
The following commands detail how the unit tests can be run.
249249
```
250250
# Run all tests in AQUA project

ads/aqua/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ def create_model_catalog(
290290
model_taxonomy_metadata: Union[ModelTaxonomyMetadata, Dict],
291291
compartment_id: str,
292292
project_id: str,
293+
freeform_tags: Dict = None,
293294
defined_tags: Dict = None,
294295
**kwargs,
295296
) -> DataScienceModel:
@@ -303,6 +304,7 @@ def create_model_catalog(
303304
.with_custom_metadata_list(model_custom_metadata)
304305
.with_defined_metadata_list(model_taxonomy_metadata)
305306
.with_provenance_metadata(ModelProvenanceMetadata(training_id=UNKNOWN))
307+
.with_freeform_tags(**(freeform_tags or {}))
306308
.with_defined_tags(
307309
**(defined_tags or {})
308310
) # Create defined tags when a model is created.

ads/aqua/common/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ class AquaMultiModelRef(Serializable):
287287
description="Environment variables to override during container startup.",
288288
)
289289
params: Optional[dict] = Field(
290-
default_factory=dict,
290+
default=None,
291291
description=(
292292
"Framework-specific startup parameters required by the container runtime. "
293293
"For example, vLLM models may use flags like `--tensor-parallel-size`, `--enforce-eager`, etc."

ads/aqua/common/enums.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# Copyright (c) 2024, 2025 Oracle and/or its affiliates.
2+
# Copyright (c) 2024, 2026 Oracle and/or its affiliates.
33
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
44

55
from typing import Dict, List
@@ -24,6 +24,8 @@ class PredictEndpoints(ExtendedEnum):
2424
CHAT_COMPLETIONS_ENDPOINT = "/v1/chat/completions"
2525
TEXT_COMPLETIONS_ENDPOINT = "/v1/completions"
2626
EMBEDDING_ENDPOINT = "/v1/embedding"
27+
RESPONSES = "/v1/responses"
28+
FORECAST = "v1/forecast"
2729

2830

2931
class Tags(ExtendedEnum):
@@ -44,6 +46,9 @@ class Tags(ExtendedEnum):
4446
MODEL_FORMAT = "model_format"
4547
MODEL_ARTIFACT_FILE = "model_file"
4648
MULTIMODEL_TYPE_TAG = "aqua_multimodel"
49+
STACKED_MODEL_TYPE_TAG = "aqua_stacked_model"
50+
AQUA_FINE_TUNE_MODEL_VERSION = "fine_tune_model_version"
51+
MODEL_DEPLOY_PREDICT_ENDPOINT = "model_deploy_predict_endpoint"
4752

4853

4954
class InferenceContainerType(ExtendedEnum):

0 commit comments

Comments
 (0)