ml-commons provides a set of common machine learning algorithms, e.g. k-means, or linear regression, to help developers build ML related features within OpenSearch.
Apache License 2.0
88
stars
126
forks
source link
[BUG] Failed to deploy local ONNX model "gte-large-en-v1.5" with error "input mismatch" #2636
Describe the bug
With Opensearch
v2.15.0
, When deploying local ONNX model "gte-large-en-v1.5", I got an error of:The model zip file can be downloaded from: https://github.com/magda-io/embedding_models/releases/tag/gte-large-en-v1.5
The model can be registered & downloaded properly. But when deploy, the error above will be produced.
However, a smaller version of similar model "gte-base-en-v1.5" can be deployed (and create emebedings) properly with no issue.
The working model can be found here: https://github.com/magda-io/embedding_models/releases/tag/gte-base-en-v1.5
Related component
Plugins
To Reproduce
Following the guide here: https://opensearch.org/docs/latest/ml-commons-plugin/custom-local-models/
Register a model group
Register a local model
check the status of the register operation
Deploy the model via endpoint POST /_plugins/_ml/models/[mode id]/_deploy
check the status of the deploy operation and you will see the fail status & error
Expected behavior
Be able to successfully deploy the ONNX format model without error.
Additional Details
Plugins Running the official Docker image with no additional plugins installed.
Screenshots If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context Add any other context about the problem here.