serving icon indicating copy to clipboard operation
serving copied to clipboard

error while deploying multiple models with model.config file

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

while deploying Docker image with multiple models with model.config file it is resulting in model.config file not found.

Docker command : docker run -p 8501:8501 --mount type=bind,source=/opt/script/TFServingModelFactory/,target=/models/TFServingModelFactory -t $USER/tensorflow-serving --model_config_file=/opt/script/TFServingModelFactory/models.confi

error :: F tensorflow_serving/model_servers/server.cc:97] Non-OK-status: ParseProtoTextFile(file, &proto) status: Not found: /opt/script/TFServingModelFactory/models.config; No such file or directory /usr/bin/tf_serving_entrypoint.sh: line 3: 6 Aborted (core dumped) tensorflow_model_server --port=8500 --rest_api_port=8501 --model_name=${MODEL_NAME} --model_base_path=${MODEL_BASE_PATH}/${MODEL_NAME} "$@"

When I am deploying the same model.config file with tensorflow_model_server it is successfull. tensorflow_model_server --port=8500 --rest_api_port=8501 --model_config_file=/opt/script/models.config

aashish-0393 avatar Feb 05 '19 06:02 aashish-0393

  1. Did you try to build custom image with your models and config file in it, if so you can just point it the config file in the docker image.

  2. 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" }, }

Harshini-Gadige avatar Feb 05 '19 18:02 Harshini-Gadige

Closing as there is no response received and issue is in "awaiting response" status for more than a week. Feel free to add comments(if any), we will reopen if required. Thanks !

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