Skip to content

Commit

Permalink
GA the update trained model action (#2576)
Browse files Browse the repository at this point in the history
* GA the update trained model action

* Fix lint
  • Loading branch information
pquentin authored Jun 10, 2024
1 parent b7580b9 commit f0da131
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
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.

11 changes: 9 additions & 2 deletions specification/_json_spec/ml.update_trained_model_deployment.json
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

0 comments on commit f0da131

Please sign in to comment.