serving icon indicating copy to clipboard operation
serving copied to clipboard

how to build models.config

Open aashish-0393 opened this issue 7 years ago • 2 comments

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

aashish-0393 avatar Feb 04 '19 09:02 aashish-0393

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: {}
    }
  } 

}

sonfire186 avatar Feb 04 '19 16:02 sonfire186

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.

Harshini-Gadige avatar Feb 04 '19 20:02 Harshini-Gadige