Skip to content

Commit 035c4ee

Browse files
Resolving conflicts
2 parents 43f94b0 + 7ce9342 commit 035c4ee

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

ads/aqua/app.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,18 +314,23 @@ def get_config(
314314
)
315315
base_model = self.ds_client.get_model(base_model_ocid).data
316316
artifact_path = get_artifact_path(base_model.custom_metadata_list)
317-
config_path = f"{os.path.dirname(artifact_path)}/{config_folder}/"
317+
if config_folder == "artifact":
318+
artifact_path = get_artifact_path(oci_model.custom_metadata_list)
318319
else:
319320
logger.info(f"Loading {config_file_name} for model {oci_model.id}...")
320321
artifact_path = get_artifact_path(oci_model.custom_metadata_list)
321-
config_path = f"{artifact_path.rstrip('/')}/{config_folder}/"
322322
if not artifact_path:
323323
logger.debug(
324324
f"Failed to get artifact path from custom metadata for the model: {model_id}"
325325
)
326326
return config
327327

328-
config_file_path = f"{config_path.rstrip('/')}/{config_file_name}"
328+
config_path = f"{os.path.dirname(artifact_path)}/{config_folder}/"
329+
if not is_path_exists(config_path):
330+
config_path = f"{artifact_path.rstrip('/')}/{config_folder}/"
331+
if not is_path_exists(config_path):
332+
config_path = f"{artifact_path.rstrip('/')}/"
333+
config_file_path = f"{config_path}{config_file_name}"
329334
if is_path_exists(config_file_path):
330335
try:
331336
config = load_config(

ads/aqua/model/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def get_hf_tokenizer_config(self, model_id):
582582
str:
583583
Chat template string.
584584
"""
585-
config = self.get_config(model_id, AQUA_MODEL_TOKENIZER_CONFIG, "/")
585+
config = self.get_config(model_id, AQUA_MODEL_TOKENIZER_CONFIG, "artifact")
586586
if not config:
587587
logger.debug(f"Tokenizer config for model: {model_id} is not available.")
588588
return config

docs/source/release_notes.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
Release Notes
33
=============
44

5+
2.12.11
6+
-------
7+
Release date: Feb 5th, 2024
8+
9+
* Fixed bug while loading model configuration in AI Quick Actions.
10+
11+
512
2.12.10
613
-------
714
Release date: Feb 5th, 2024

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi"
2121

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

2626
# Optional
2727
description = "Oracle Accelerated Data Science SDK"

0 commit comments

Comments
 (0)