Skip to content

[Multi model deployment] Updating usages for container config #1144

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

Merged
merged 2 commits into from
Apr 2, 2025

Conversation

kumar-shivam-ranjan
Copy link
Member

Description

This PR is intended to update the Usage enum for multi model deployment to unblock DRCC feature adoption.

Dependent PR

https://bitbucket.oci.oraclecorp.com/projects/ODSC/repos/odsc_artifact_deployer/pull-requests/260/overview

Unit tests

Screenshot 2025-04-03 at 12 53 23 AM

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

github-actions bot commented Apr 2, 2025

📌 Cov diff with main:

Coverage-100%

📌 Overall coverage:

Coverage-58.69%

@@ -14,7 +14,7 @@
class Usage(ExtendedEnum):
INFERENCE = "inference"
BATCH_INFERENCE = "batch_inference"
MULTI_MODEL = "multi_model"
MULTI_MODEL = "other"
Copy link
Member

@mrDzurb mrDzurb Apr 2, 2025

Choose a reason for hiding this comment

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

I would prefer to have other as temporary solution. I would suggest to keep them both:

class Usage(ExtendedEnum):
    INFERENCE = "inference"
    BATCH_INFERENCE = "batch_inference"
    MULTI_MODEL = "multi_model"
    OTHER = "other"

Then in the code we will have to do something like this:

supported_container_families = [
            container_config_item.family
            for container_config_item in service_inference_containers
            if any(usage in container_config_item.usages for usage in [Usage.MULTI_MODEL, Usage.OTHER])
        ]

I assume we will use the proper name in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated. Thanks

Copy link

github-actions bot commented Apr 2, 2025

📌 Cov diff with main:

Coverage-100%

📌 Overall coverage:

Coverage-58.70%

@mrDzurb mrDzurb merged commit 9704fef into main Apr 2, 2025
23 checks passed
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.

None yet

3 participants