Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
a4c7141b
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
185
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a4c7141b
编写于
3月 18, 2021
作者:
W
wangjiawei04
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix
上级
5d0abdf1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
12 deletion
+15
-12
python/examples/pipeline/bert/benchmark.sh
python/examples/pipeline/bert/benchmark.sh
+4
-4
python/examples/pipeline/bert/config.yml
python/examples/pipeline/bert/config.yml
+1
-1
python/examples/pipeline/ocr/benchmark.sh
python/examples/pipeline/ocr/benchmark.sh
+2
-2
python/examples/pipeline/ocr/config.yml
python/examples/pipeline/ocr/config.yml
+6
-3
python/examples/pipeline/ocr/web_service.py
python/examples/pipeline/ocr/web_service.py
+2
-2
未找到文件。
python/examples/pipeline/bert/benchmark.sh
浏览文件 @
a4c7141b
...
...
@@ -6,9 +6,9 @@ ps -ef | grep web_service | awk '{print $2}' | xargs kill -9
sleep
3
python3 benchmark.py yaml local_predictor 1 gpu
rm
-rf
profile_log_
$modelname
for
thread_num
in
1
for
thread_num
in
1
8 16
do
for
batch_size
in
2
0
for
batch_size
in
1 10 10
0
do
echo
"----Bert thread num:
$thread_num
batch size:
$batch_size
mode:http ----"
>>
profile_log_
$modelname
rm
-rf
PipelineServingLogs
...
...
@@ -34,9 +34,9 @@ ps -ef | grep web_service | awk '{print $2}' | xargs kill -9
sleep
3
python3 benchmark.py yaml local_predictor 1 gpu
for
thread_num
in
1
for
thread_num
in
1
8 16
do
for
batch_size
in
2
0
for
batch_size
in
1 10 10
0
do
echo
"----Bert thread num:
$thread_num
batch size:
$batch_size
mode:rpc ----"
>>
profile_log_
$modelname
rm
-rf
PipelineServingLogs
...
...
python/examples/pipeline/bert/config.yml
浏览文件 @
a4c7141b
...
...
@@ -14,4 +14,4 @@ op:
-
pooled_output
model_config
:
bert_seq128_model/
rpc_port
:
9998
worker_num
:
1
worker_num
:
20
python/examples/pipeline/ocr/benchmark.sh
浏览文件 @
a4c7141b
...
...
@@ -6,7 +6,7 @@ ps -ef | grep web_service | awk '{print $2}' | xargs kill -9
sleep
3
python3 benchmark.py yaml local_predictor 1 gpu
rm
-rf
profile_log_
$modelname
for
thread_num
in
1
for
thread_num
in
1
8 16
do
for
batch_size
in
1
do
...
...
@@ -34,7 +34,7 @@ ps -ef | grep web_service | awk '{print $2}' | xargs kill -9
sleep
3
python3 benchmark.py yaml local_predictor 1 gpu
for
thread_num
in
1
for
thread_num
in
1
8 16
do
for
batch_size
in
1
do
...
...
python/examples/pipeline/ocr/config.yml
浏览文件 @
a4c7141b
...
...
@@ -6,7 +6,7 @@ http_port: 9999
#worker_num, 最大并发数。当build_dag_each_worker=True时, 框架会创建worker_num个进程,每个进程内构建grpcSever和DAG
##当build_dag_each_worker=False时,框架会设置主线程grpc线程池的max_workers=worker_num
worker_num
:
1
worker_num
:
5
#build_dag_each_worker, False,框架在进程内创建一条DAG;True,框架会每个进程内创建多个独立的DAG
build_dag_each_worker
:
false
...
...
@@ -20,6 +20,9 @@ dag:
#使用性能分析, True,生成Timeline性能数据,对性能有一定影响;False为不使用
use_profile
:
false
tracer
:
interval_s
:
10
op
:
det
:
#并发数,is_thread_op=True时,为线程并发;否则为进程并发
...
...
@@ -37,7 +40,7 @@ op:
fetch_list
:
[
"
concat_1.tmp_0"
]
#计算硬件ID,当devices为""或不写时为CPU预测;当devices为"0", "0,1,2"时为GPU预测,表示使用的GPU卡
devices
:
"
0
"
devices
:
"
2
"
rec
:
#并发数,is_thread_op=True时,为线程并发;否则为进程并发
concurrency
:
2
...
...
@@ -61,4 +64,4 @@ op:
fetch_list
:
[
"
ctc_greedy_decoder_0.tmp_0"
,
"
softmax_0.tmp_0"
]
#计算硬件ID,当devices为""或不写时为CPU预测;当devices为"0", "0,1,2"时为GPU预测,表示使用的GPU卡
devices
:
"
0
"
devices
:
"
2
"
python/examples/pipeline/ocr/web_service.py
浏览文件 @
a4c7141b
...
...
@@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
try
:
from
paddle_serving_server.web_service
import
WebService
,
Op
except
ImportError
:
from
paddle_serving_server_gpu.web_service
import
WebService
,
Op
except
ImportError
:
from
paddle_serving_server.web_service
import
WebService
,
Op
import
logging
import
numpy
as
np
import
cv2
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录