Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
9194db77
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看板
提交
9194db77
编写于
8月 03, 2020
作者:
B
barrierye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update compilation dependencies
上级
8ec22efb
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
44 addition
and
15 deletion
+44
-15
doc/COMPILE.md
doc/COMPILE.md
+20
-6
doc/COMPILE_CN.md
doc/COMPILE_CN.md
+20
-6
python/requirements.txt
python/requirements.txt
+4
-0
tools/serving_build.sh
tools/serving_build.sh
+0
-3
未找到文件。
doc/COMPILE.md
浏览文件 @
9194db77
...
...
@@ -4,12 +4,26 @@
## Compilation environment requirements
-
OS: CentOS 7
-
GCC: 4.8.2 and later
-
Golang: 1.9.2 and later
-
Git:2.17.1 and later
-
CMake:3.2.2 and later
-
Python:2.7.2 and later / 3.6 and later
| module | version |
| :--------------------------: | :----------------------------------------------------------: |
| OS | CentOS 7 |
| gcc | 4.8.5 and later |
| gcc-c++ | 4.8.5 and later |
| git | 3.82 and later |
| cmake | 3.2.0 and later |
| Python | 2.7.2 and later / 3.6 and later |
| Go | 1.9.2 and later |
| git | 2.17.1 and later |
| glibc-static | 2.17 |
| openssl-devel | 1.0.2k |
| bzip2-devel | 1.0.6 and later |
| python-devel / python3-devel | 2.7.5 and later / 3.6.8 and later |
| sqlite-devel | 3.7.17 and later |
| patchelf | 0.9 and later |
| libXext | 1.3.3 |
| libSM | 1.2.2 |
| libXrender | 0.9.10 |
| python-whl | numpy>=1.12,
<
=1.16.4<
br
/>
google>=2.0.3
<br/>
protobuf>=3.12.2
<br/>
grpcio-tools>=1.28.1
<br/>
grpcio>=1.28.1
<br/>
func-timeout>=4.3.5
<br/>
pyyaml>=1.3.0
<br/>
sentencepiece==0.1.92
<br>
flask>=1.1.2
<br>
ujson>=2.0.3 |
It is recommended to use Docker for compilation. We have prepared the Paddle Serving compilation environment for you, see
[
this document
](
DOCKER_IMAGES.md
)
.
...
...
doc/COMPILE_CN.md
浏览文件 @
9194db77
...
...
@@ -4,12 +4,26 @@
## 编译环境设置
-
OS: CentOS 7
-
GCC: 4.8.2及以上
-
Golang: 1.9.2及以上
-
Git:2.17.1及以上
-
CMake:3.2.2及以上
-
Python:2.7.2及以上 / 3.6及以上
| 组件 | 版本要求 |
| :--------------------------: | :----------------------------------------------------------: |
| OS | CentOS 7 |
| gcc | 4.8.5 and later |
| gcc-c++ | 4.8.5 and later |
| git | 3.82 and later |
| cmake | 3.2.0 and later |
| Python | 2.7.2 and later / 3.6 and later |
| Go | 1.9.2 and later |
| git | 2.17.1 and later |
| glibc-static | 2.17 |
| openssl-devel | 1.0.2k |
| bzip2-devel | 1.0.6 and later |
| python-devel / python3-devel | 2.7.5 and later / 3.6.8 and later |
| sqlite-devel | 3.7.17 and later |
| patchelf | 0.9 |
| libXext | 1.3.3 |
| libSM | 1.2.2 |
| libXrender | 0.9.10 |
| python-whl | numpy>=1.12,
<
=1.16.4<
br
/>
google>=2.0.3
<br/>
protobuf>=3.12.2
<br/>
grpcio-tools>=1.28.1
<br/>
grpcio>=1.28.1
<br/>
func-timeout>=4.3.5
<br/>
pyyaml>=1.3.0
<br/>
sentencepiece==0.1.92
<br/>
flask>=1.1.2
<br/>
ujson>=2.0.3 |
推荐使用Docker编译,我们已经为您准备好了Paddle Serving编译环境,详见
[
该文档
](
DOCKER_IMAGES_CN.md
)
。
...
...
python/requirements.txt
浏览文件 @
9194db77
numpy>=1.12, <=1.16.4 ; python_version<"3.5"
google>=2.0.3
protobuf>=3.12.2
grpcio-tools>=1.28.1
grpcio>=1.28.1
func-timeout>=4.3.5
pyyaml>=1.3.0
sentencepiece==0.1.92
flask>=1.1.2
ujson>=2.0.3
tools/serving_build.sh
浏览文件 @
9194db77
...
...
@@ -54,7 +54,6 @@ function build_app() {
local
DIRNAME
=
build-app-
$TYPE
mkdir
$DIRNAME
# pwd: /Serving
cd
$DIRNAME
# pwd: /Serving/build-app-$TYPE
pip
install
numpy sentencepiece
case
$TYPE
in
CPU|GPU
)
cmake
-DPYTHON_INCLUDE_DIR
=
$PYTHONROOT
/include/python2.7/
\
...
...
@@ -295,8 +294,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
case
$TYPE
in
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录