From 604ae6c5751854f4e01efa7cdaf465c01bacc928 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Mon, 30 Mar 2020 07:18:58 +0000 Subject: [PATCH] Merge remote-tracking branch 'origin/0.2.0-fix-client' into 0.2.0-fix-client sync --- doc/RUN_IN_DOCKER.md | 4 ++-- doc/RUN_IN_DOCKER_CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/RUN_IN_DOCKER.md b/doc/RUN_IN_DOCKER.md index edfd9141..972de2d9 100644 --- a/doc/RUN_IN_DOCKER.md +++ b/doc/RUN_IN_DOCKER.md @@ -147,7 +147,7 @@ tar -xzf uci_housing.tar.gz Running on the Server side (inside the container): ```bash - python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9292 --name uci + python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9292 --name uci --gpu_ids 0 ``` Running on the Client side (inside or outside the container): @@ -161,7 +161,7 @@ tar -xzf uci_housing.tar.gz Running on the Server side (inside the container): ```bash - python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9292 + python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9292 --gpu_ids 0 ``` Running following Python code on the Client side (inside or outside the container, The `paddle-serving-client` package needs to be installed): diff --git a/doc/RUN_IN_DOCKER_CN.md b/doc/RUN_IN_DOCKER_CN.md index 47914a2f..17bdd30a 100644 --- a/doc/RUN_IN_DOCKER_CN.md +++ b/doc/RUN_IN_DOCKER_CN.md @@ -145,7 +145,7 @@ tar -xzf uci_housing.tar.gz 在Server端(容器内)运行: ```bash - python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9292 --name uci + python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9292 --name uci --gpu_ids 0 ``` 在Client端(容器内或容器外)运行: @@ -159,7 +159,7 @@ tar -xzf uci_housing.tar.gz 在Server端(容器内)运行: ```bash - python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9292 + python -m paddle_serving_server_gpu.serve --model uci_housing_model --thread 10 --port 9292 --gpu_ids 0 ``` 在Client端(容器内或容器外,需要安装`paddle-serving-client`包)运行下面Python代码: -- GitLab