File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ To start docker container
2+ ==========================
3+ ```
4+ docker run -it -v C:\Code\deep-learning-keras-tf-tutorial\48_tf_serving:/48_tf_serving -p 8601:8601 --entrypoint /bin/bash tensorflow/serving
5+ ```
6+
7+ To serve only latest model
8+ ===========================
9+ ```
10+ tensorflow_model_server --rest_api_port=8601 --model_name=email_model --model_base_path=/saved_models/
11+ ```
12+
13+ To serve models using model config file
14+ ========================================
15+ ```
16+ tensorflow_model_server --rest_api_port=8700 --allow_version_labels_for_unavailable_models --model_config_file=/48_tf_serving/model.config.c
17+ ```
18+
19+
20+ Postman commands
21+ =================
22+
23+ To call by versions
24+ ```
25+ http://localhost:8502/v1/models/email_model/versions/2:predict
26+ ```
27+
28+ To call by labels
29+ ```
30+ http://localhost:8502/v1/models/email_model/labels/stable:predict
31+ ```
32+
33+ Body: raw
34+ ```
35+ {
36+ "instances": [
37+ "Let's meet for dinner tomorrow",
38+ "You are awarded a SiPix Digital Camera! call 09061221061 from landline. Delivery within 28days. T Cs Box177"
39+ ]
40+ }
41+ ```
42+
43+ TF Serving Installation Instructions
44+ ====================================
45+
46+ https://www.tensorflow.org/tfx/serving/docker
You can’t perform that action at this time.
0 commit comments