You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commands.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -216,6 +216,10 @@ An array of alternating key-value pairs as follows:
216
216
1.**BACKEND**: the backend used by the model as a String
217
217
1.**DEVICE**: the device used to execute the model as a String
218
218
1.**TAG**: the model's tag as a String
219
+
1.**BATCHSIZE**: The maximum size of any batch of incoming requests. If `BATCHSIZE` is equal to 0 each incoming request is served immediately. When `BATCHSIZE` is greater than 0, the engine will batch incoming requests from multiple clients that use the model with input tensors of the same shape.
220
+
1.**MINBATCHSIZE**: The minimum size of any batch of incoming requests.
221
+
1.**INPUTS**: array reply with one or more names of the model's input nodes (applicable only for TensorFlow models)
222
+
1.**OUTPUTS**: array reply with one or more names of the model's output nodes (applicable only for TensorFlow models)
219
223
1.**BLOB**: a blob containing the serialized model (when called with the `BLOB` argument) as a String
220
224
221
225
**Examples**
@@ -224,12 +228,21 @@ Assuming that your model is stored under the 'mymodel' key, you can obtain its m
224
228
225
229
```
226
230
redis> AI.MODELGET mymodel META
227
-
1) "backend"
228
-
2) TF
229
-
3) "device"
230
-
4) CPU
231
-
5) "tag"
232
-
6) imagenet:5.0
231
+
1) "backend"
232
+
2) "TF"
233
+
3) "device"
234
+
4) "CPU"
235
+
5) "tag"
236
+
6) "imagenet:5.0"
237
+
7) "batchsize"
238
+
8) (integer) 0
239
+
9) "minbatchsize"
240
+
10) (integer) 0
241
+
11) "inputs"
242
+
12) 1) "a"
243
+
2) "b"
244
+
13) "outputs"
245
+
14) 1) "c"
233
246
```
234
247
235
248
You can also save it to the local file 'model.ext' with [`redis-cli`](https://redis.io/topics/cli) like so:
0 commit comments