mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
[ML] Update trained model inference endpoint (#556)
Infer trained model deployment API has been deprecated, so I changed the code to use the new one.
This commit is contained in:
parent
f38de0ed05
commit
77781b90ff
@ -245,7 +245,7 @@ The `--start` argument will deploy the model with one allocation and one
|
||||
thread per allocation, which will not offer good performance. When starting
|
||||
the model deployment using the ML UI in Kibana or the Elasticsearch
|
||||
[API](https://www.elastic.co/guide/en/elasticsearch/reference/current/start-trained-model-deployment.html)
|
||||
you will be able to set the threading options to make best use of your
|
||||
you will be able to set the threading options to make the best use of your
|
||||
hardware.
|
||||
|
||||
```python
|
||||
|
@ -134,7 +134,7 @@ class PyTorchModel:
|
||||
__body: Dict[str, Any] = {}
|
||||
__body["docs"] = docs
|
||||
|
||||
__path = f"/_ml/trained_models/{_quote(self.model_id)}/deployment/_infer"
|
||||
__path = f"/_ml/trained_models/{_quote(self.model_id)}/_infer"
|
||||
__query: Dict[str, Any] = {}
|
||||
__query["timeout"] = timeout
|
||||
__headers = {"accept": "application/json", "content-type": "application/json"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user