Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
67675e24
M
models
项目概览
PaddlePaddle
/
models
大约 1 年 前同步成功
通知
222
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
67675e24
编写于
10月 30, 2018
作者:
T
typhoonzero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update doc
上级
0d811261
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
4 deletion
+6
-4
fluid/PaddleCV/image_classification/dist_train/README.md
fluid/PaddleCV/image_classification/dist_train/README.md
+6
-4
未找到文件。
fluid/PaddleCV/image_classification/dist_train/README.md
浏览文件 @
67675e24
...
...
@@ -102,10 +102,12 @@ Pass 0, batch 9, loss 7.43522, accucacys: [0.00390625, 0.00390625]
The below figure shows top 1 train accuracy for local training with 8 GPUs and distributed training
with 32 GPUs, and also distributed training with batch merge feature turned on. Note that the
red curve is train with origin model configuration, which do not have warmup and some detailed modifications.
red curve is trained with origin model configuration, which does not have the warmup and some detailed
modifications.
For distributed training with 32GPUs using
`--model DistResnet`
we can achieve test accuracy 75.5% after
90 passes of training (the test accuracy is not shown in below figure).
90 passes of training (the test accuracy is not shown in below figure). We can also achieve this result
using "batch merge" feature by setting
`--multi_batch_repeat 4`
and with higher throughput.
<p
align=
"center"
>
<img
src=
"../images/resnet50_32gpus-acc1.png"
height=
300
width=
528
>
<br/>
...
...
@@ -117,9 +119,9 @@ Training top-1 accuracy curves
The default resnet50 distributed training config is based on this paper: https://arxiv.org/pdf/1706.02677.pdf
-
use
`--model DistResnet`
-
we use 32 P40 GPUs with 4 Nodes, each ha
ve
8 GPUs
-
we use 32 P40 GPUs with 4 Nodes, each ha
s
8 GPUs
-
we set
`batch_size=32`
for each GPU, in
`batch_merge=on`
case, we repeat 4 times before communicating with pserver.
-
learning rate start from 0.1 and warm up to 0.4 in 5 passes(because we already have gradient merging,
-
learning rate start
s
from 0.1 and warm up to 0.4 in 5 passes(because we already have gradient merging,
so we only need to linear scale up to trainer count) using 4 nodes.
-
using batch_merge (
`--multi_batch_repeat 4`
) can make better use of GPU computing power and increase the
total training throughput. Because in the fine-tune configuration, we have to use
`batch_size=32`
per GPU,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录