Skip to content

GA the update trained model action #2576

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

Merged
merged 2 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html",
"description": "Updates certain properties of trained model deployment."
},
"stability": "beta",
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
Expand All @@ -24,9 +24,16 @@
}
]
},
"params": {
"number_of_allocations": {
"type": "int",
"required": false,
"description": "Update the model deployment to this number of allocations."
}
},
"body": {
"description": "The updated trained model deployment settings",
"required": true
"required": false
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ export interface Request extends RequestBase {
*/
model_id: Id
}
query_parameters: {
/**
* The number of model allocations on each node where the model is deployed.
* All allocations on a node share the same copy of the model in memory but use
* a separate set of threads to evaluate the model.
* Increasing this value generally increases the throughput.
* If this setting is greater than the number of hardware threads
* it will automatically be changed to a value less than the number of hardware threads.
* @server_default 1
*/
number_of_allocations?: integer
}
body: {
/**
* The number of model allocations on each node where the model is deployed.
Expand Down
Loading