Skip to content

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Custom model telemetry #1239

wants to merge 5 commits into from

Conversation

agrimk
Copy link
Member

@agrimk agrimk commented Aug 1, 2025

No description provided.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 1, 2025
Copy link

github-actions bot commented Aug 1, 2025

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.59%

@mrDzurb
Copy link
Member

mrDzurb commented Aug 1, 2025

@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:
Copy link
Member

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,
Copy link
Member

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
Copy link
Member

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 
        ]:

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.

3 participants