Skip to content

Add update_trained_model_deployment to ML client #2562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jeffvestal opened this issue May 20, 2024 · 1 comment
Closed

Add update_trained_model_deployment to ML client #2562

jeffvestal opened this issue May 20, 2024 · 1 comment

Comments

@jeffvestal
Copy link

Describe the feature:

Elasticsearch version (bin/elasticsearch --version):
8.13.2

elasticsearch-py version (elasticsearch.__versionstr__):
8.13.2 & serverless

Description of the problem including expected versus actual behavior:

To update a trained model allocations, the main docs have the example:

resp = client.ml.update_trained_model_deployment(
    model_id="elastic__distilbert-base-uncased-finetuned-conll03-english",
    body={"number_of_allocations": 4},
)
print(resp)

Steps to reproduce:
The ml client doesn't to have that actual function.

<ipython-input-24-790add7c67c1> in <cell line: 1>()
----> 1 resp = es.ml.update_trained_model_deployment(
      2     model_id="my-elser-model",
      3     body={
      4         "number_of_allocations": 1
      5         },

AttributeError: 'MlClient' object has no attribute '<ipython-input-24-790add7c67c1> in <cell line: 1>()
----> 1 resp = es.ml.update_trained_model_deployment(
      2     model_id="my-elser-model",
      3     body={
      4         "number_of_allocations": 1
      5         },

AttributeError: 'MlClient' object has no attribute 'update_trained_model_deployment''
@pquentin
Copy link
Member

Closed in #2568, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants