Skip to content

Conversation

@agrimk
Copy link
Member

@agrimk agrimk commented Jul 30, 2025

Description

  • Updated the create Model Deployment API to accept custom Model name which would be used while inferencing.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 30, 2025
@agrimk agrimk changed the title Use custom model name in deployment [WIP] Use custom model name in deployment Jul 30, 2025
@github-actions
Copy link

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.59%

@github-actions
Copy link

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.59%

agrimk added 2 commits August 1, 2025 15:41
…le/accelerated-data-science into use_custom_model_name_in_deployment
@github-actions
Copy link

github-actions bot commented Aug 1, 2025

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.59%

@mrDzurb mrDzurb self-requested a review August 15, 2025 00:47
**(defined_tags or {}),
}

if display_name:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m not sure I understand the logic here. I thought we wanted to introduce the model name that would be used for inferencing, but here we’re changing the display name of the MC record.
Could you add more description in the PR explaining what this PR for?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@github-actions
Copy link

github-actions bot commented Sep 2, 2025

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.29%

@github-actions
Copy link

github-actions bot commented Sep 2, 2025

📌 Cov diff with main:

Coverage-85%

📌 Overall coverage:

Coverage-58.33%

@github-actions
Copy link

github-actions bot commented Sep 3, 2025

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.29%

):
user_params = f"{user_params} --served-model-name {create_deployment_details.model_name}"
elif "--served-model-name" not in user_params:
user_params = f"{user_params} --served-model-name odsc-llm"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the odsc-llm be taken from the container params? I don't think that we want to hardcode this on the ADS side. Also --served-model-name will come from the container config as well, and then the user's params and containers one will be merged using

deployment_params = get_combined_params(config_params, user_params)

Could you double check if the user's defined will not be overwritten with the default one from the container config?

Wouldn't this be enough?

if (
            create_deployment_details.model_name
            and "--served-model-name" not in user_params
        ):
            user_params = f"{user_params} --served-model-name {create_deployment_details.model_name}"

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.29%

…le/accelerated-data-science into use_custom_model_name_in_deployment
@github-actions
Copy link

github-actions bot commented Sep 4, 2025

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.29%

@mrDzurb mrDzurb changed the title [WIP] Use custom model name in deployment [AQUA] Use custom model name in deployment Sep 4, 2025

if create_deployment_details.model_name:
# Replace existing --served-model-name argument if present, otherwise add it
if "--served-model-name" in params:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have helper api to update the parameter in params string and you can do something like this

params_dict = get_params_dict(params)
params_dict.update({"--served-model-name": create_deployment_details.model_name})
params = build_params_string(params_dict)

@github-actions
Copy link

github-actions bot commented Sep 5, 2025

📌 Cov diff with main:

Coverage-50%

📌 Overall coverage:

Coverage-58.33%

@mrDzurb mrDzurb merged commit 9c9f2fb into main Sep 5, 2025
21 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants