Skip to content
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

feat: Make list of supported built-in runtime server types overridable #220

Merged
merged 2 commits into from
Sep 7, 2022

Conversation

njhill
Copy link
Member

@njhill njhill commented Aug 29, 2022

Motivation

Model-mesh serving makes use of a single adapter image to interface with a number of "built-in" model server types, currently comprising triton, mlserver, ovms.

Currently which kind of adapter to run is controlled by the entrypoint to the adapter container within the modelmesh pods, which is set by the controller based on the builtInAdapter.serverType field of the ServingRuntime CRD.

However this is currently validated against a hardcoded list of type strings meaning that any extensions to the runtime adapter image to support new kinds of model servers also require a code change and rebuild of the controller image.

Modifications

Move the list of supported built-in server types to a list in the global config.
Update controller validation logic and tests accordingly.

Result

The shared built-in runtime adapter can be extended to support new runtime types without requiring a code change to the controller.

Motivation

Model-mesh serving makes use of a single adapter image to interface with a number of "built-in" model server types, currently comprising triton, mlserver, ovms.

Currently which kind of adapter to run is controlled by the entrypoint to the adapter container within the modelmesh pods, which is set by the controller based on the builtInAdapter.serverType field of the ServingRuntime CRD.

However this is currently validated against a hardcoded list of type strings meaning that any extensions to the runtime adapter image to support new kinds of model servers also require a code change and rebuild of the controller image.

Modifications

Move the list of supported built-in server types to a list in the global config.
Update controller validation logic and tests accordingly.

Result

The shared built-in runtime adapter can be extended to support new runtime types without requiring a code change to the controller.

Signed-off-by: Nick Hill <[email protected]>
@njhill
Copy link
Member Author

njhill commented Aug 29, 2022

@chinhuang007 I'm not sure why this is failing the FVTs. I have a feeling it may be a resource constraint thing but I can't see how the changes in the PR could have affected that.

Copy link
Contributor

@chinhuang007 chinhuang007 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks, @njhill !

@kserve-oss-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chinhuang007, njhill

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@chinhuang007
Copy link
Contributor

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants