-
Notifications
You must be signed in to change notification settings - Fork 56
[WIP] Use custom model name in deployment #1236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…le/accelerated-data-science into use_custom_model_name_in_deployment
ads/aqua/model/model.py
Outdated
@@ -204,6 +207,9 @@ def create( | |||
**(defined_tags or {}), | |||
} | |||
|
|||
if display_name: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
): | ||
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" |
There was a problem hiding this comment.
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}"
…o use_custom_model_name_in_deployment
…le/accelerated-data-science into use_custom_model_name_in_deployment
Description