-
Notifications
You must be signed in to change notification settings - Fork 138
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 no worker node exception for remote embedding model #1482
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -431,8 +431,10 @@ public boolean getDeployToAllNodes(String modelId) { | |
} | ||
|
||
public void setModelInfo(String modelId, MLModel mlModel) { | ||
MLModelCache mlModelCache = getExistingModelCache(modelId); | ||
mlModelCache.setModelInfo(mlModel); | ||
MLModelCache mlModelCache = modelCaches.get(modelId); | ||
if (mlModelCache != null) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @zane-neo , we should check if model cache exist or not There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we also need to fine tuning the error message in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good, we can do that later. One note: not all models needs to be deployed first There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For current code, I think either local or remote needs to be deployed first, are you saying some feature will be implemented in the future? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no , kmeans doesn't need deploy |
||
mlModelCache.setModelInfo(mlModel); | ||
} | ||
} | ||
|
||
public MLModel getModelInfo(String modelId) { | ||
|
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.
We should fine-tune this part either in neural search side or in ml-commons side, more and more twisted code could cause more and more issues.