Skip to content

Commit 0b1a389

Browse files
authored
Merge branch 'main' into vikaspa/fix-auto-select
2 parents aa4dedf + ef7c14d commit 0b1a389

File tree

5 files changed

+31
-9
lines changed

5 files changed

+31
-9
lines changed

ads/aqua/modeldeployment/deployment.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@
6868
ModelDeploymentConfigSummary,
6969
MultiModelDeploymentConfigLoader,
7070
)
71-
from ads.aqua.modeldeployment.constants import (
72-
DEFAULT_POLL_INTERVAL,
73-
DEFAULT_WAIT_TIME,
74-
)
71+
from ads.aqua.modeldeployment.constants import DEFAULT_POLL_INTERVAL, DEFAULT_WAIT_TIME
7572
from ads.aqua.modeldeployment.entities import (
7673
AquaDeployment,
7774
AquaDeploymentDetail,
@@ -529,6 +526,7 @@ def _create(
529526

530527
# validate user provided params
531528
user_params = env_var.get("PARAMS", UNKNOWN)
529+
532530
if user_params:
533531
# todo: remove this check in the future version, logic to be moved to container_index
534532
if (
@@ -554,6 +552,18 @@ def _create(
554552
deployment_params = get_combined_params(config_params, user_params)
555553

556554
params = f"{params} {deployment_params}".strip()
555+
556+
if create_deployment_details.model_name:
557+
# Replace existing --served-model-name argument if present, otherwise add it
558+
if "--served-model-name" in params:
559+
params = re.sub(
560+
r"--served-model-name\s+\S+",
561+
f"--served-model-name {create_deployment_details.model_name}",
562+
params,
563+
)
564+
else:
565+
params += f" --served-model-name {create_deployment_details.model_name}"
566+
557567
if params:
558568
env_var.update({"PARAMS": params})
559569
env_vars = container_spec.env_vars if container_spec else []

ads/aqua/modeldeployment/entities.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ class CreateModelDeploymentDetails(BaseModel):
233233
None, description="The description of the deployment."
234234
)
235235
model_id: Optional[str] = Field(None, description="The model OCID to deploy.")
236+
model_name: Optional[str] = Field(
237+
None, description="The model name specified by user to deploy."
238+
)
236239

237240
models: Optional[List[AquaMultiModelRef]] = Field(
238241
None, description="List of models for multimodel deployment."

docs/source/release_notes.rst

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

5+
2.13.18
6+
-------
7+
Release date: Sep 4, 2025
8+
9+
* AI Quick Actions enhancements.
10+
* MLPipeline: Fixed a bug preventing users from creating a pipeline step with a specific subnet_id.
11+
12+
513
2.13.17
614
-------
715
Release date: Aug 10, 2025

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.13.17"
24+
version = "2.13.18"
2525

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

tests/unitary/with_extras/aqua/test_common_utils.py

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

77
import pytest
8+
89
from ads.aqua.common.utils import get_preferred_compatible_family
910

1011

@@ -14,23 +15,23 @@ class TestCommonUtils:
1415
[
1516
(
1617
{"odsc-vllm-serving", "odsc-vllm-serving-v1"},
17-
"odsc-vllm-serving-v1",
18+
"odsc-vllm-serving-openai",
1819
),
1920
(
2021
{"odsc-vllm-serving", "odsc-vllm-serving-llama4"},
21-
"odsc-vllm-serving-llama4",
22+
"odsc-vllm-serving-openai",
2223
),
2324
(
2425
{"odsc-vllm-serving-v1", "odsc-vllm-serving-llama4"},
25-
"odsc-vllm-serving-llama4",
26+
"odsc-vllm-serving-openai",
2627
),
2728
(
2829
{
2930
"odsc-vllm-serving",
3031
"odsc-vllm-serving-v1",
3132
"odsc-vllm-serving-llama4",
3233
},
33-
"odsc-vllm-serving-llama4",
34+
"odsc-vllm-serving-openai",
3435
),
3536
({"odsc-tgi-serving", "odsc-vllm-serving"}, None),
3637
({"non-existing-one", "odsc-tgi-serving"}, None),

0 commit comments

Comments
 (0)