Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
ac43e8f5
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看板
提交
ac43e8f5
编写于
4月 10, 2020
作者:
B
barrierye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix bug
上级
fd1055ef
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
3 deletion
+5
-3
python/paddle_serving_server_gpu/__init__.py
python/paddle_serving_server_gpu/__init__.py
+3
-3
tools/serving_build.sh
tools/serving_build.sh
+2
-0
未找到文件。
python/paddle_serving_server_gpu/__init__.py
浏览文件 @
ac43e8f5
...
...
@@ -306,6 +306,9 @@ class Server(object):
self
.
check_local_bin
()
if
not
self
.
use_local_bin
:
self
.
download_bin
()
# wait for other process to download server bin
while
not
os
.
path
.
exists
(
self
.
server_path
):
time
.
sleep
(
1
)
else
:
print
(
"Use local bin : {}"
.
format
(
self
.
bin_path
))
command
=
"{} "
\
...
...
@@ -337,8 +340,5 @@ class Server(object):
self
.
gpuid
,)
print
(
"Going to Run Comand"
)
print
(
command
)
# wait for other process to download server bin
while
not
os
.
path
.
exists
(
self
.
server_path
):
time
.
sleep
(
1
)
os
.
system
(
command
)
tools/serving_build.sh
浏览文件 @
ac43e8f5
...
...
@@ -164,6 +164,7 @@ function python_test_fit_a_line() {
fi
;;
GPU
)
export
CUDA_VISIBLE_DEVICES
=
0
# test rpc
check_cmd
"python -m paddle_serving_server_gpu.serve --model uci_housing_model --port 9393 --thread 4 --gpu_ids 0 > /dev/null &"
sleep
5
# wait for the server to start
...
...
@@ -298,6 +299,7 @@ function python_test_bert() {
echo
"bert RPC inference pass"
;;
GPU
)
export
CUDA_VISIBLE_DEVICES
=
0
pip
install
paddlehub
# Because download from paddlehub may timeout,
# download the model from bos(max_seq_len=128).
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录