Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
2b2c9a5a
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看板
提交
2b2c9a5a
编写于
4月 10, 2020
作者:
B
barrierye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix ci script
上级
6cc707eb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
3 deletion
+10
-3
tools/Dockerfile
tools/Dockerfile
+3
-0
tools/Dockerfile.ci
tools/Dockerfile.ci
+3
-0
tools/serving_build.sh
tools/serving_build.sh
+4
-3
未找到文件。
tools/Dockerfile
浏览文件 @
2b2c9a5a
...
...
@@ -3,6 +3,9 @@ FROM centos:7.3.1611
RUN
yum
-y
install
wget
&&
\
yum
-y
install
epel-release
&&
yum
-y
install
patchelf
&&
\
yum
-y
install
gcc make python-devel
&&
\
yum
-y
install
libSM-1.2.2-2.el7.x86_64
--setopt
=
protected_multilib
=
false
&&
\
yum
-y
install
libXrender-0.9.10-1.el7.x86_64
--setopt
=
protected_multilib
=
false
&&
\
yum
-y
install
libXext-1.3.3-3.el7.x86_64
--setopt
=
protected_multilib
=
false
&&
\
yum
-y
install
python3 python3-devel
&&
\
yum clean all
&&
\
curl https://bootstrap.pypa.io/get-pip.py
-o
get-pip.py
&&
\
...
...
tools/Dockerfile.ci
浏览文件 @
2b2c9a5a
...
...
@@ -2,6 +2,9 @@ FROM centos:7.3.1611
RUN yum -y install wget >/dev/null \
&& yum -y install gcc gcc-c++ make glibc-static which >/dev/null \
&& yum -y install git openssl-devel curl-devel bzip2-devel python-devel >/dev/null \
&& yum -y install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=false \
&& yum -y install libXrender-0.9.10-1.el7.x86_64 --setopt=protected_multilib=false \
yum -y install libXext-1.3.3-3.el7.x86_64 --setopt=protected_multilib=false && \
&& wget https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz >/dev/null \
&& tar xzf cmake-3.2.0-Linux-x86_64.tar.gz \
&& mv cmake-3.2.0-Linux-x86_64 /usr/local/cmake3.2.0 \
...
...
tools/serving_build.sh
浏览文件 @
2b2c9a5a
...
...
@@ -227,7 +227,7 @@ function python_run_criteo_ctr_with_cube() {
exit
1
fi
echo
"criteo_ctr_with_cube inference auc test success"
ps
-ef
|
grep
"paddle_serving_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_server_process
ps
-ef
|
grep
"cube"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
;;
GPU
)
...
...
@@ -254,7 +254,7 @@ function python_run_criteo_ctr_with_cube() {
exit
1
fi
echo
"criteo_ctr_with_cube inference auc test success"
ps
-ef
|
grep
"paddle_serving_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
kill_server_process
ps
-ef
|
grep
"cube"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
;;
*
)
...
...
@@ -270,7 +270,6 @@ function python_run_criteo_ctr_with_cube() {
function
python_test_bert
()
{
# pwd: /Serving/python/examples
local
TYPE
=
$1
yum
install
-y
libXext libSM libXrender
>
/dev/null
pip
install
ujson
export
SERVING_BIN
=
${
SERVING_WORKDIR
}
/build-server-
${
TYPE
}
/core/general-server/serving
cd
bert
# pwd: /Serving/python/examples/bert
...
...
@@ -347,6 +346,7 @@ function python_test_imdb() {
check_cmd
"python text_classify_service.py imdb_cnn_model/workdir/9292 imdb.vocab &"
sleep
5
check_cmd
"curl -H "
Content-Type:application/json
" -X POST -d '{"
words
": "
i am very sad | 0
", "
fetch
":["
prediction
"]}' http://127.0.0.1:9292/imdb/prediction"
kill_server_process
ps
-ef
|
grep
"paddle_serving_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
ps
-ef
|
grep
"text_classify_service.py"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
echo
"imdb CPU HTTP inference pass"
...
...
@@ -378,6 +378,7 @@ function python_test_lac() {
check_cmd
"python lac_web_service.py jieba_server_model/ lac_workdir 9292 &"
sleep
5
check_cmd
"curl -H "
Content-Type:application/json
" -X POST -d '{"
words
": "
我爱北京天安门
", "
fetch
":["
word_seg
"]}' http://127.0.0.1:9292/lac/prediction"
kill_server_process
ps
-ef
|
grep
"paddle_serving_server"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
ps
-ef
|
grep
"lac_web_service"
|
grep
-v
grep
|
awk
'{print $2}'
| xargs
kill
echo
"lac CPU HTTP inference pass"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录