diff --git a/python/examples/xpu/bert/README.md b/python/examples/xpu/bert/README.md index f8c2db9d90fb8e8bbc51f898c42d15a60c54ad09..5d0e7918484008474949a5b7f67574c42ed54f79 100644 --- a/python/examples/xpu/bert/README.md +++ b/python/examples/xpu/bert/README.md @@ -1,20 +1,30 @@ ## Prepare +### download model and extract +``` +wget https://paddle-serving.bj.bcebos.com/models/xpu/bert.tgz +``` ### convert model ``` 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 ### Start Service ``` -pytyon bert_web_service.py serving_server 7703 +python bert_web_service.py serving_server 7703 ``` ### Client Prediction ``` -python bert_client.py +head data-c.txt | python bert_client.py ``` diff --git a/python/examples/xpu/ernie/README.md b/python/examples/xpu/ernie/README.md index b8b3a59c340ac8134bf2d4b9745751273d4cad28..41bea4180e0510427526c4c3aeca914daf71fd3b 100644 --- a/python/examples/xpu/ernie/README.md +++ b/python/examples/xpu/ernie/README.md @@ -1,9 +1,19 @@ ## Prepare +### download model and extract +``` +wget https://paddle-serving.bj.bcebos.com/models/xpu/ernie.tgz +``` ### convert model ``` 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 diff --git a/python/examples/xpu/ernie/erine_web_service.py b/python/examples/xpu/ernie/ernie_web_service.py similarity index 100% rename from python/examples/xpu/ernie/erine_web_service.py rename to python/examples/xpu/ernie/ernie_web_service.py