dashulu
dashulu
我看文档中all-reduce是用reduce(grad) + broadcast(para)来实现的,这边我看profile的结果是直接用了all-reduce。这个为什么?reduce + broadcast应该会比all-reduce少传输数据吧。
fluid v1.0, 模型: ```python #!/bin/env python # -*- encoding:utf-8 -*- """ nccl2 demo Authors: xiayanming refer to: https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/fluid/tests/book/test_fit_a_line.py """ import argparse import cProfile import time import os import numpy as...
基于官方demo改了点内容
> 使用模型脚本是官方提供的吗? vgg16印象里8卡加速比大约是6,可以参考一下 使用的是官方模型vgg11.
> Please have a try of py_reader, which enhance the io performance eagerly. > For details: > https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/fluid/tests/unittests/test_py_reader_using_executor.py 我的数据是直接random生成的,这个用py_reader能加速吗?
> @dashulu 使用parallel executor进行多卡训练时,需要将executor的strategy线程数设为卡数,比如可以改成下面: > > ```python > strategy.num_threads = 2 # gpu卡数 > strategy.allow_op_delay = False > exe = fluid.ParallelExecutor( > True, > avg_loss.name, > exec_strategy=strategy, > num_trainers=num_trainers, >...
@hjchen2 还有第二个问题,在设置2卡时,all_reduce次数为110次,conv2d_grad次数为80次,  4卡训练时,conv2d_grad变为160次,为什么all_reduce还是110次? 
> Is there any activation @dzhwinter vgg uses relu
> Profile the [ParallelGraph feature](https://github.com/PaddlePaddle/Paddle/pull/14791), computation_op_handle took much more time at async NCCL, and much more time at API `cudaStreamWaitEvent(stream)`. Do you know why computation_op_handle take much more time at...
那paddle现在有工具可以看一个模型训练过程中,需要多少内存、多少计算量吗?