Skip to content

Commit

Permalink
Update "Download and deploy ELSER" snippet with adaptive allocations (#…
Browse files Browse the repository at this point in the history
…2878)

(cherry picked from commit 5740148)

# Conflicts:
#	docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc
  • Loading branch information
leemthompo authored and mergify[bot] committed Nov 27, 2024
1 parent ce75eb5 commit 0134c56
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<ml-nlp-auto-scale,autoscaling>> through adaptive allocation.

Refer to the {ref}/infer-service-elser.html[ELSER {infer} service documentation] to learn more about the available settings.

Expand Down

0 comments on commit 0134c56

Please sign in to comment.