Skip to content

Commit

Permalink
Fix config load paths and update ads version (#1056)
Browse files Browse the repository at this point in the history
  • Loading branch information
VipulMascarenhas authored Feb 4, 2025
2 parents fbb8d8f + a2e07e7 commit 7ce9342
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ads/aqua/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,18 +306,20 @@ def get_config(self, model_id: str, config_file_name: str) -> Dict:
)
base_model = self.ds_client.get_model(base_model_ocid).data
artifact_path = get_artifact_path(base_model.custom_metadata_list)
config_path = f"{os.path.dirname(artifact_path)}/config/"
else:
logger.info(f"Loading {config_file_name} for model {oci_model.id}...")
artifact_path = get_artifact_path(oci_model.custom_metadata_list)
config_path = f"{artifact_path.rstrip('/')}/config/"

if not artifact_path:
logger.debug(
f"Failed to get artifact path from custom metadata for the model: {model_id}"
)
return config

config_path = f"{os.path.dirname(artifact_path)}/config/"
if not is_path_exists(config_path):
config_path = f"{artifact_path.rstrip('/')}/config/"

config_file_path = f"{config_path}{config_file_name}"
if is_path_exists(config_file_path):
try:
Expand Down
7 changes: 7 additions & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Release Notes
=============

2.12.11
-------
Release date: Feb 5th, 2024

* Fixed bug while loading model configuration in AI Quick Actions.


2.12.10
-------
Release date: Feb 5th, 2024
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi"

# Required
name = "oracle_ads" # the install (PyPI) name; name for local build in [tool.flit.module] section below
version = "2.12.10"
version = "2.12.11"

# Optional
description = "Oracle Accelerated Data Science SDK"
Expand Down

0 comments on commit 7ce9342

Please sign in to comment.