Skip to content

Adding defined metadata to fine-tuned model #1164

New issue

Have a question about this project? Sign up for a free account to open an issue and contact its maintainers and the community.

By clicking “Sign up for ”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on ? Sign in to your account

Merged
merged 3 commits into from
Apr 23, 2025

Conversation

kumar-shivam-ranjan
Copy link
Member

Description

For fine-tuned model , we need to update defined metadata to include Deployment Configuration , Readme , and License so that the call to fetch these config doesn't go to service tenancy bucket (for cached model).

Unit tests

Screenshot 2025-04-23 at 10 19 06 PM

@oracle-contributor-agreementoracle-contributor-agreement bot added the OCA VerifiedAll contributors have signed the Oracle Contributor Agreement.label Apr 23, 2025
@kumar-shivam-ranjankumar-shivam-ranjan changed the title Updating Fine-tuning flow for DRCC Adding defined metadata to fine-tuned model Apr 23, 2025
@@ -315,6 +316,23 @@ def create(
model_by_reference=True,
defined_tags=create_fine_tuning_details.defined_tags,
)
defined_metadata_dict = {}
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a comment here about why do we need this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure.
defined_metadata_dict is a dict of key value pair where key is the defined metadata key and value is the artifact content. Since here , we are copying the defined metadata (for which artifact exists) from service to user tenancy ,there is no direct way to copy. So we have to fetch the content of the metadata artifact from service tenancy and create new key value pairs in user tenancy.

This way while fetching config for fine-tuned model , request won't go to service tenancy bucket.

@github-actionsGitHub Actions
Copy link

-actions bot commented Apr 23, 2025

📌 Cov diff with main:

Coverage-60%

📌 Overall coverage:

Coverage-58.58%

@kumar-shivam-ranjankumar-shivam-ranjan merged commit e3f1f20 into main Apr 23, 2025
23 checks passed
Sign up for free to join this conversation on . Already have an account? Sign in to comment
Labels
OCA VerifiedAll contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants