Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OS 2.9/Windows 11 & Rocky Linux 8/Chromium Edge
Describe the issue:
Can we have a fully working example on 2.9?
I tried the steps in ML framework - OpenSearch documentation,
I executed the below
POST /_plugins/_ml/models/_upload
{
“name”: “all-MiniLM-L6-v2”,
“version”: “1.0.0”,
“description”: “test model”,
“model_format”: “TORCH_SCRIPT”,
“model_config”: {
“model_type”: “bert”,
“embedding_dimension”: 384,
“framework_type”: “sentence_transformers”
},
“url”: “https://github.com/opensearch-project/ml-commons/raw/2.x/ml-algorithms/src/test/resources/org/opensearch/ml/engine/algorithms/text_embedding/all-MiniLM-L6-v2_torchscript_sentence-transformer.zip?raw=true”
}
It never worked for me. I got the below error in the log. In addition, when I load a model, sometimes it disappears and when I try to load it again it says that the same ID already exists!
I appreciate your input if you got it working. By the way, it was working in previous versions (2.4 in particular)
Failed to index chunk file
java.security.PrivilegedActionException: null
at java.security.AccessController.doPrivileged(AccessController.java:573) ~[?:?]
at org.opensearch.ml.engine.ModelHelper.downloadAndSplit(ModelHelper.java:197) [opensearch-ml-algorithms-2.9.0.0.jar:?]
at org.opensearch.ml.model.MLModelManager.registerModel(MLModelManager.java:526) [opensearch-ml-2.9.0.0.jar:2.9.0.0]
at org.opensearch.ml.model.MLModelManager.lambda$registerModelFromUrl$19(MLModelManager.java:498) [opensearch-ml-2.9.0.0.jar:2.9.0.0]
at org.opensearch.action.ActionListener$1.onResponse(ActionListener.java:80) [opensearch-2.9.0.jar:2.9.0]
at org.opensearch.action.support.ThreadedActionListener$1.doRun(ThreadedActionListener.java:78) [opensearch-2.9.0.jar:2.9.0]
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:908) [opensearch-2.9.0.jar:2.9.0]
at org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52) [opensearch-2.9.0.jar:2.9.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.nio.file.NoSuchFileException: /opensearch/opensearch-2.9.0/data/ml_cache/models_cache/register/s1Y1jYkBxklcJkLMTjwU/1/all-MiniLM-L6-v2.zip
I am also using the below configs in addition to the defaults.
plugins.ml_commons.only_run_on_ml_node: false
plugins.ml_commons.allow_registering_model_via_url: true