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

Included separate inference pool #2040

Conversation

RobertSamoilescu
Copy link
Contributor

Currently MLServer can't deal well with models that are loaded on the same inference pool with other models that are heavy used. In this case there is a risk of starvation and we want to allow the user to be able to create models on separate processes (different inference pool).

MLServer does this but only if the model uses a specific custom environment tarball.

Proposed solution: Introduce inference_pool_gid to the ModelParameters class. In this way, we give the user the option to add the model to a dedicated inference pool group. Note that this allows to add either a single model or multiple models to the same group. I also included the autogenerate_inference_pool_gid boolean flag. When set to True and no inference_pool_gid is provided, a gid is generated using uuid4. This will add the model to a dedicated group - this way the user does not have to specify the gid themself.

Copy link
Member

@sakoush sakoush left a comment

Choose a reason for hiding this comment

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

LGTM. Docs should follow this PR to describe the new fields.

@RobertSamoilescu RobertSamoilescu merged commit 5065a63 into SeldonIO:master Feb 4, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants