how to build models.config
I want to host multiple models on tensorflow serving . Tensorflow serving documents states that : Create a file containing an ASCII ModelServerConfig protocol buffer. But I am not able to build this models.config . Please help me with this
model_config_list: {
config: {
name: "detection",
base_path: "/home/user/models/detection",
model_platform: "tensorflow",
model_version_policy: {
all: {}
}
},
config: {
name: "ocr",
base_path: "/home/user/models/myclass",
model_platform: "tensorflow",
model_version_policy: {
all: {}
}
}
}
Run the below code when you run the model_server
bazel-bin/tensorflow_serving/model_servers/tensorflow_model_server --port=9000 --model_config_file=<path_to_your_config_on_disk>
Where the config should be a file on disk that looks like this:
model_config_list: { config: { name: "your_model_name", base_path: "/path/to/yourmodel", model_platform: "tensorflow" }, config: { name: "your_model_name", base_path: "/path/to/yourmodel", model_platform: "tensorflow" }, }
Also please note that any support related questions are to be posted in StackOverflow as we encourage users to post only bug/feature request here.