From 816574558414384102b8415e70f98cc7d48f1219 Mon Sep 17 00:00:00 2001 From: Liam Thompson <32779855+leemthompo@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:40:54 +0100 Subject: [PATCH 1/3] Update "Download and deploy ELSER" snippet with adaptive allocations (#2878) (cherry picked from commit 57401489d311436254246885568b826f34b5cd08) # Conflicts: # docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc --- docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc index 7a2d6acd4..7b9ccc88f 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -124,13 +124,24 @@ PUT _inference/sparse_embedding/my-elser-model { "service": "elser", "service_settings": { +<<<<<<< HEAD "num_allocations": 1, "num_threads": 1 +======= + "adaptive_allocations": { + "enabled": true, + "min_number_of_allocations": 1, + "max_number_of_allocations": 10 + }, + "num_threads": 1, + "model_id": ".elser_model_2_linux-x86_64" +>>>>>>> 57401489 (Update "Download and deploy ELSER" snippet with adaptive allocations (#2878)) } } ---------------------------------- -- The API request automatically initiates the model download and then deploy the model. +This example uses <> through adaptive allocation. Refer to the {ref}/infer-service-elser.html[ELSER {infer} service documentation] to learn more about the available settings. From f507c9d75468ab4d7870e22ab362ce1d81d80c05 Mon Sep 17 00:00:00 2001 From: Liam Thompson <32779855+leemthompo@users.noreply.github.com> Date: Wed, 27 Nov 2024 12:09:25 +0100 Subject: [PATCH 2/3] Update docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc --- docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc index 7b9ccc88f..fa1eb0202 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -124,10 +124,6 @@ PUT _inference/sparse_embedding/my-elser-model { "service": "elser", "service_settings": { -<<<<<<< HEAD - "num_allocations": 1, - "num_threads": 1 -======= "adaptive_allocations": { "enabled": true, "min_number_of_allocations": 1, @@ -135,7 +131,6 @@ PUT _inference/sparse_embedding/my-elser-model }, "num_threads": 1, "model_id": ".elser_model_2_linux-x86_64" ->>>>>>> 57401489 (Update "Download and deploy ELSER" snippet with adaptive allocations (#2878)) } } ---------------------------------- From ff909e0772fd4831979ff3b37fc04b9241b6c8c6 Mon Sep 17 00:00:00 2001 From: Liam Thompson <32779855+leemthompo@users.noreply.github.com> Date: Wed, 27 Nov 2024 12:12:09 +0100 Subject: [PATCH 3/3] Update docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc --- docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc index fa1eb0202..84eee7a40 100644 --- a/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc +++ b/docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc @@ -130,7 +130,6 @@ PUT _inference/sparse_embedding/my-elser-model "max_number_of_allocations": 10 }, "num_threads": 1, - "model_id": ".elser_model_2_linux-x86_64" } } ----------------------------------