Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ODSC-64654 register model artifact reference#1008

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tkg2261 wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromODSC-64654-register-model-artifact-reference

Conversation

tkg2261
Copy link

@tkg2261tkg2261 commentedNov 13, 2024
edited
Loading

This Pull Request is for adding new API for Model by Reference, i.e. register_model_artifact_reference in DataScienceModel in ADS.
The new API will enable users to simply give us the object storage locations of their existing artifacts as reference for using against a newly created DataScienceModel, instead of having to upload or export artifacts which is a costly operation.
API Spec :-https://confluence.oci.oraclecorp.com/pages/viewpage.action?spaceKey=ODSC&title=API+changes+for+Model+store+for+Aqua
It has been tested in my local environment - Attached Screenshots. One screenshot is for successful scenario, and another is for one of the failure scenarios to demonstrate that in case of failure, we are fetching the work request logs and showing the same in ADS logs.
One screenshot below these is how the new changes in model_catalog.rst will look like.
Screenshot 2024-11-18 at 8 57 44 PM
Screenshot 2024-11-27 at 6 26 02 PM
Screenshot 2024-11-20 at 2 28 39 PM

@oracle-contributor-agreementOracle Contributor Agreement

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, pleasecreate an Oracle account and sign the OCA inOracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the mainOracle GitHub organization, and yourmembership in this organization is public.

@oracle-contributor-agreementoracle-contributor-agreementbot added the OCA RequiredAt least one contributor does not have an approved Oracle Contributor Agreement. labelNov 13, 2024
@tkg2261tkg2261 changed the titleODSC-64654 register model artifact reference[DO NOT REVIEW] [WIP] ODSC-64654 register model artifact referenceNov 13, 2024
@oracle-contributor-agreementoracle-contributor-agreementbot added OCA VerifiedAll contributors have signed the Oracle Contributor Agreement. and removed OCA RequiredAt least one contributor does not have an approved Oracle Contributor Agreement. labelsNov 13, 2024
The ``.restore_model()`` method of Model catalog restores the model for a specified number of hours. Restored models can be downloaded for 1-240 hours, defaulting to 24 hours.
Copy link
Member

Choose a reason for hiding this comment

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

What would be the full user experience? Could you provide end-to-end example?

Copy link
Author

Choose a reason for hiding this comment

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

Hi@mrDzurb this is an existing piece of code, my code starts below this, don't know why the diff is showing this as changed.

@mrDzurb
Copy link
Member

@tkg2261 please add PR description.

tkg2261 reacted with thumbs up emoji

@tkg2261tkg2261force-pushed theODSC-64654-register-model-artifact-reference branch 3 times, most recently fromdd3208d to298ccc6CompareNovember 18, 2024 15:30
ODSC-64654-register-model-artifact-reference
@tkg2261tkg2261force-pushed theODSC-64654-register-model-artifact-reference branch from298ccc6 to7042af5CompareNovember 18, 2024 15:31
@tkg2261tkg2261 changed the title[DO NOT REVIEW] [WIP] ODSC-64654 register model artifact referenceODSC-64654 register model artifact referenceNov 20, 2024
@tkg2261tkg2261 reopened thisNov 20, 2024
@@ -1405,6 +1405,26 @@ def restore_model(
restore_model_for_hours_specified=restore_model_for_hours_specified,
)

def register_model_artifact_reference(self,bucket_uri_list: List[str]) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

Just curious, since we already have the.with_artifact() logic, why introduce a new method? Wouldn't it be better to enhance the existing one? It's a well-known method, and users are already familiar with it. Also willdownload_artifact() method still work?

Copy link
Author

Choose a reason for hiding this comment

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

@mrDzurb.with_artifact() method already does model-by-ref but using uploadArtifact api. We want to keep that flow too for now, till we completely enable and transition to registerArtifact API. I didn't want to introduce any breaking change, that's why have NOT modified existing method. Moreover,register_model_artifact_reference as a separate method is also consistent withexport_model_artifact method, which in a way does similar job.
Yes, thedownload_artifact method will still work, it will download the json configuration file uploaded by the registerArtifact api.

mrDzurb
mrDzurb previously approved these changesDec 5, 2024
@VipulMascarenhas
Copy link
Member

@tkg2261 changes look fine but unit tests are failing. Could you please fix them so that we can approve and merge?

@oracle-contributor-agreementOracle Contributor Agreement

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, pleasecreate an Oracle account and sign the OCA inOracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the mainOracle GitHub organization, and yourmembership in this organization is public.

@oracle-contributor-agreementoracle-contributor-agreementbot removed the OCA VerifiedAll contributors have signed the Oracle Contributor Agreement. labelMar 11, 2025
@oracle-contributor-agreementoracle-contributor-agreementbot added the OCA RequiredAt least one contributor does not have an approved Oracle Contributor Agreement. labelMar 11, 2025
DataScienceWorkRequest(work_request_id).wait_work_request(
progress_bar_description="Registering model artifact references."
)
logger.info("Artifact references registered successfully.")
Copy link
Member

Choose a reason for hiding this comment

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

change this to debug

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mayoormayoormayoor left review comments

@mrDzurbmrDzurbmrDzurb left review comments

@darenrdarenrAwaiting requested review from darenrdarenr is a code owner

@VipulMascarenhasVipulMascarenhasAwaiting requested review from VipulMascarenhasVipulMascarenhas is a code owner

@qiuosierqiuosierAwaiting requested review from qiuosierqiuosier is a code owner

@ahoslerahoslerAwaiting requested review from ahoslerahosler is a code owner

At least 2 approving reviews are required to merge this pull request.

Assignees
No one assigned
Labels
OCA RequiredAt least one contributor does not have an approved Oracle Contributor Agreement.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@tkg2261@mrDzurb@VipulMascarenhas@mayoor

[8]ページ先頭

©2009-2025 Movatter.jp