提交 c9503409 编写于 作者: Z zhangjun

fix

上级 d8852342
## Prepare ## Prepare
### download model and extract
```
wget https://paddle-serving.bj.bcebos.com/models/xpu/bert.tgz
```
### convert model ### convert model
``` ```
python -m paddle_serving_client.convert --dirname infer_bert-base-chinese_ft_model_4000.pdparams python -m paddle_serving_client.convert --dirname infer_bert-base-chinese_ft_model_4000.pdparams
``` ```
### Getting Dict and Sample Dataset
```
sh get_data.sh
```
this script will download Chinese Dictionary File vocab.txt and Chinese Sample Data data-c.txt
## RPC Service ## RPC Service
### Start Service ### Start Service
``` ```
pytyon bert_web_service.py serving_server 7703 python bert_web_service.py serving_server 7703
``` ```
### Client Prediction ### Client Prediction
``` ```
python bert_client.py head data-c.txt | python bert_client.py
``` ```
## Prepare ## Prepare
### download model and extract
```
wget https://paddle-serving.bj.bcebos.com/models/xpu/ernie.tgz
```
### convert model ### convert model
``` ```
python3 -m paddle_serving_client.convert --dirname erine python3 -m paddle_serving_client.convert --dirname erine
``` ```
### Getting Dict and Sample Dataset
```
sh get_data.sh
```
this script will download Chinese Dictionary File vocab.txt and Chinese Sample Data data-c.txt
## RPC Service ## RPC Service
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册