-
Notifications
You must be signed in to change notification settings - Fork 52
Custom model telemetry #1239
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?
Custom model telemetry #1239
Conversation
…le/accelerated-data-science into use_custom_model_name_in_deployment
@agrimk could you add a description to this PR? If PR is not ready for review, please mark it as WIP. |
@@ -785,8 +794,8 @@ def _create_deployment( | |||
# we arbitrarily choose last 8 characters of OCID to identify MD in telemetry | |||
telemetry_kwargs = {"ocid": get_ocid_substring(deployment_id, key_len=8)} | |||
|
|||
if Tags.BASE_MODEL_CUSTOM in tags: | |||
telemetry_kwargs["custom_base_model"] = True | |||
if is_custom_base_model: |
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 you add some details in the description why this approach is needs vs. what we already had?
@@ -214,6 +214,7 @@ def create( | |||
) | |||
aqua_model = model_app.create( | |||
model_id=create_deployment_details.model_id, | |||
display_name=create_deployment_details.model_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 think we did not add model name intentionally to avoid leaking user input model names, instead relied on the config information to get the model family. Can you clarify what is sent via UI here?
@@ -647,6 +651,7 @@ def _create_multi( | |||
} | |||
|
|||
model_name = f"{MODEL_NAME_DELIMITER} ".join(model_name_list) | |||
is_custom_base_model = Tags.BASE_MODEL_CUSTOM in aqua_model.freeform_tags |
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.
instead of creating is_custom_base_model
, copy the tag in the _create function itself:
for tag in [
Tags.AQUA_SERVICE_MODEL_TAG,
Tags.AQUA_FINE_TUNED_MODEL_TAG,
Tags.AQUA_TAG,
Tags.BASE_MODEL_CUSTOM
]:
No description provided.