Skip to content

Commit f0da131

Browse files
authored
GA the update trained model action (#2576)
* GA the update trained model action * Fix lint
1 parent b7580b9 commit f0da131

File tree

4 files changed

+39
-5
lines changed

4 files changed

+39
-5
lines changed

output/schema/schema.json

Lines changed: 17 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_json_spec/ml.update_trained_model_deployment.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html",
55
"description": "Updates certain properties of trained model deployment."
66
},
7-
"stability": "beta",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"],
@@ -24,9 +24,16 @@
2424
}
2525
]
2626
},
27+
"params": {
28+
"number_of_allocations": {
29+
"type": "int",
30+
"required": false,
31+
"description": "Update the model deployment to this number of allocations."
32+
}
33+
},
2734
"body": {
2835
"description": "The updated trained model deployment settings",
29-
"required": true
36+
"required": false
3037
}
3138
}
3239
}

specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ export interface Request extends RequestBase {
3535
*/
3636
model_id: Id
3737
}
38+
query_parameters: {
39+
/**
40+
* The number of model allocations on each node where the model is deployed.
41+
* All allocations on a node share the same copy of the model in memory but use
42+
* a separate set of threads to evaluate the model.
43+
* Increasing this value generally increases the throughput.
44+
* If this setting is greater than the number of hardware threads
45+
* it will automatically be changed to a value less than the number of hardware threads.
46+
* @server_default 1
47+
*/
48+
number_of_allocations?: integer
49+
}
3850
body: {
3951
/**
4052
* The number of model allocations on each node where the model is deployed.

0 commit comments

Comments
 (0)