Skip to content

Commit dbed1dd

Browse files
Formatting
1 parent 8997594 commit dbed1dd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ads/aqua/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,13 @@ def get_config(
319319
logger.info(f"Loading {config_file_name} for model {oci_model.id}...")
320320
artifact_path = get_artifact_path(oci_model.custom_metadata_list)
321321
config_path = f"{artifact_path.rstrip('/')}/{config_folder}/"
322-
323322
if not artifact_path:
324323
logger.debug(
325324
f"Failed to get artifact path from custom metadata for the model: {model_id}"
326325
)
327326
return config
328327

329-
config_file_path = f"{config_path}{config_file_name}"
328+
config_file_path = f"{config_path.rstrip('/')}/{config_file_name}"
330329
if is_path_exists(config_file_path):
331330
try:
332331
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, "artifact")
585+
config = self.get_config(model_id, AQUA_MODEL_TOKENIZER_CONFIG, "/")
586586
if not config:
587587
logger.debug(f"Tokenizer config for model: {model_id} is not available.")
588588
return config

0 commit comments

Comments
 (0)