提交 f3bf2105 编写于 作者: B barrierye

fix RUN_IN_DOCKER doc

上级 95230eed
...@@ -43,6 +43,12 @@ pip install paddle-serving-server ...@@ -43,6 +43,12 @@ pip install paddle-serving-server
### Test example ### Test example
Before running the GPU version of the Server side code, you need to set the `CUDA_VISIBLE_DEVICES` environment variable to specify which GPUs the prediction service uses. The following example specifies two GPUs with indexes 0 and 1:
```bash
export CUDA_VISIBLE_DEVICES=0,1
```
Get the trained Boston house price prediction model by the following command: Get the trained Boston house price prediction model by the following command:
```bash ```bash
......
...@@ -127,6 +127,12 @@ pip install paddle-serving-server-gpu ...@@ -127,6 +127,12 @@ pip install paddle-serving-server-gpu
### 测试example ### 测试example
GPU版本在运行Server端代码前需要设置`CUDA_VISIBLE_DEVICES`环境变量来指定预测服务使用的GPU,下面的示例为指定索引为0和1两块GPU:
```bash
export CUDA_VISIBLE_DEVICES=0,1
```
通过下面命令获取训练好的Boston房价预估模型: 通过下面命令获取训练好的Boston房价预估模型:
```bash ```bash
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册