Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
9b471917
S
Serving
项目概览
PaddlePaddle
/
Serving
接近 2 年 前同步成功
通知
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看板
提交
9b471917
编写于
4月 03, 2020
作者:
J
Jiawei Wang
提交者:
GitHub
4月 03, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #390 from wangjiawei04/develop
fix Ctr with cube
上级
0b13eba6
1b70500a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
8 deletion
+14
-8
python/examples/criteo_ctr_with_cube/README.md
python/examples/criteo_ctr_with_cube/README.md
+7
-4
python/examples/criteo_ctr_with_cube/README_CN.md
python/examples/criteo_ctr_with_cube/README_CN.md
+7
-4
未找到文件。
python/examples/criteo_ctr_with_cube/README.md
浏览文件 @
9b471917
...
@@ -19,15 +19,18 @@ go to directory `python/examples/criteo_ctr_with_cube`
...
@@ -19,15 +19,18 @@ go to directory `python/examples/criteo_ctr_with_cube`
sh get_data.sh
sh get_data.sh
```
```
###
Train and Save Model
###
Download Model and Sparse Parameter Sequence Files
```
```
python local_train.py
wget https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz
tar xf ctr_cube_unittest.tar.gz
mv models/ctr_client_conf ./
mv models/ctr_serving_model_kv ./
mv models/data ./cube/
```
```
the
trained model will be in ./ctr_server_model and ./ctr_client_config, and ctr_server_model_kv, ctr_client_conf_kv。
the
model will be in ./ctr_server_model_kv and ./ctr_client_config.
### Start Sparse Parameter Indexing Service
### Start Sparse Parameter Indexing Service
```
```
cp ../../../build_server/core/predictor/seq_generator seq_generator
cp ../../../build_server/output/bin/cube* ./cube/
cp ../../../build_server/output/bin/cube* ./cube/
sh cube_prepare.sh &
sh cube_prepare.sh &
```
```
...
...
python/examples/criteo_ctr_with_cube/README_CN.md
浏览文件 @
9b471917
...
@@ -17,15 +17,18 @@ make install -j10
...
@@ -17,15 +17,18 @@ make install -j10
sh get_data.sh
sh get_data.sh
```
```
###
保存模型和配置
文件
###
下载模型和稀疏参数序列
文件
```
```
python local_train.py
wget https://paddle-serving.bj.bcebos.com/unittest/ctr_cube_unittest.tar.gz
tar xf ctr_cube_unittest.tar.gz
mv models/ctr_client_conf ./
mv models/ctr_serving_model_kv ./
mv models/data ./cube/
```
```
执行脚本后会在当前目录
生成ctr_server_model和ctr_client_config文件夹,以及ctr_server_model_kv, ctr_client_conf_kv
。
执行脚本后会在当前目录
有ctr_server_model_kv和ctr_client_config文件夹
。
### 启动稀疏参数索引服务
### 启动稀疏参数索引服务
```
```
cp ../../../build_server/core/predictor/seq_generator seq_generator
cp ../../../build_server/output/bin/cube* ./cube/
cp ../../../build_server/output/bin/cube* ./cube/
sh cube_prepare.sh &
sh cube_prepare.sh &
```
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录