Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
c00eac1f
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c00eac1f
编写于
4月 23, 2021
作者:
Z
zhangjun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update doc
上级
0cff583a
变更
7
展开全部
隐藏空白更改
内联
并排
Showing
7 changed file
with
33 addition
and
42263 deletion
+33
-42263
python/examples/xpu/bert/README.md
python/examples/xpu/bert/README.md
+10
-4
python/examples/xpu/bert/get_data.sh
python/examples/xpu/bert/get_data.sh
+2
-0
python/examples/xpu/bert/vocab.txt
python/examples/xpu/bert/vocab.txt
+0
-21128
python/examples/xpu/ernie/README.md
python/examples/xpu/ernie/README.md
+7
-1
python/examples/xpu/ernie/get_data.sh
python/examples/xpu/ernie/get_data.sh
+2
-0
python/examples/xpu/ernie/vocab.txt
python/examples/xpu/ernie/vocab.txt
+0
-21128
python/examples/xpu/vgg19/README.md
python/examples/xpu/vgg19/README.md
+12
-2
未找到文件。
python/examples/xpu/bert/README.md
浏览文件 @
c00eac1f
...
...
@@ -2,11 +2,17 @@
## Prepare
### download model and extract
```
wget https://paddle-serving.bj.bcebos.com/models/xpu/bert.tgz
wget https://paddle-inference-dist.cdn.bcebos.com/PaddleLite/models_and_data_for_unittests/bert_base_chinese.tar.gz
tar zxvf bert_base_chinese.tar.gz
```
### convert model
```
python -m paddle_serving_client.convert --dirname infer_bert-base-chinese_ft_model_4000.pdparams
python3 -m paddle_serving_client.convert --dirname bert_base_chinese --model_filename bert_base_chinese/model.pdmodel --params_filename bert_base_chinese/model.pdiparams
```
### or, you can get the serving saved model directly
```
wget https://paddle-serving.bj.bcebos.com/models/xpu/bert.tar.gz
tar zxvf bert.tar.gz
```
### Getting Dict and Sample Dataset
...
...
@@ -20,11 +26,11 @@ this script will download Chinese Dictionary File vocab.txt and Chinese Sample D
### Start Service
```
python bert_web_service.py serving_server 7703
python
3
bert_web_service.py serving_server 7703
```
### Client Prediction
```
head data-c.txt | python
bert_client.py
head data-c.txt | python
3 bert_client.py --model serving_client/serving_client_conf.prototxt
```
python/examples/xpu/bert/get_data.sh
0 → 100644
浏览文件 @
c00eac1f
wget https://paddle-serving.bj.bcebos.com/bert_example/data-c.txt
--no-check-certificate
wget https://paddle-serving.bj.bcebos.com/bert_example/vocab.txt
--no-check-certificate
python/examples/xpu/bert/vocab.txt
已删除
100644 → 0
浏览文件 @
0cff583a
此差异已折叠。
点击以展开。
python/examples/xpu/ernie/README.md
浏览文件 @
c00eac1f
...
...
@@ -2,12 +2,18 @@
## Prepare
### download model and extract
```
wget https://paddle-serving.bj.bcebos.com/models/xpu/ernie.tgz
wget https://paddle-inference-dist.cdn.bcebos.com/PaddleLite/models_and_data_for_unittests/ernie.tar.gz
tar zxvf ernie.tar.gz
```
### convert model
```
python3 -m paddle_serving_client.convert --dirname erine
```
### or, you can get the serving saved model directly
```
wget https://paddle-serving.bj.bcebos.com/models/xpu/bert.tar.gz
tar zxvf bert.tar.gz
```
### Getting Dict and Sample Dataset
```
...
...
python/examples/xpu/ernie/get_data.sh
0 → 100644
浏览文件 @
c00eac1f
wget https://paddle-serving.bj.bcebos.com/bert_example/data-c.txt
--no-check-certificate
wget https://paddle-serving.bj.bcebos.com/bert_example/vocab.txt
--no-check-certificate
python/examples/xpu/ernie/vocab.txt
已删除
100644 → 0
浏览文件 @
0cff583a
此差异已折叠。
点击以展开。
python/examples/xpu/vgg19/README.md
浏览文件 @
c00eac1f
## Prepare
### download model and extract
```
wget https://paddle-inference-dist.bj.bcebos.com/PaddleLite/models_and_data_for_unittests/VGG19.tar.gz
tar zxvf VGG19.tar.gz
```
### convert model
```
python -m paddle_serving_client.convert --dirname VGG19
python3 -m paddle_serving_client.convert --dirname VGG19
```
### or, you can get the serving saved model directly
```
wget https://paddle-serving.bj.bcebos.com/models/xpu/vgg19.tar.gz
tar zxvf vgg19.tar.gz
```
## RPC Service
...
...
@@ -10,7 +20,7 @@ python -m paddle_serving_client.convert --dirname VGG19
### Start Service
```
python -m paddle_serving_server.serve --model serving_server --port 7702 --use_lite --use_xpu --ir_optim
python
3
-m paddle_serving_server.serve --model serving_server --port 7702 --use_lite --use_xpu --ir_optim
```
### Client Prediction
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录