-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Fix deploying custom models with adaptive allocations #126276
Conversation
Pinging @elastic/ml-core (Team:ML) |
@@ -107,7 +107,7 @@ private static CommonFields commonFieldsFromMap(Map<String, Object> map, Validat | |||
private final DenseVectorFieldMapper.ElementType elementType; | |||
|
|||
CustomElandInternalTextEmbeddingServiceSettings( | |||
int numAllocations, | |||
Integer numAllocations, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting adaptive allocations (and thereby passing numAllocations = null
) currently doesn't work for custom models. The parent constructor also has Integer numAllocations
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix Jan, maybe add a test to ensure we don't break this in the future.
No description provided.