Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle
  • 合并请求
  • !25196

P
Paddle
  • 项目概览

PaddlePaddle / Paddle
大约 2 年 前同步成功

通知 2325
Star 20933
Fork 5424
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 1423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
Paddle
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 1,423
    • Issue 1,423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
    • 合并请求 543
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板

[WIP]Paddle fleet distributed strategy !25196

  • Report abuse
!25196 已关闭 6月 24, 2020 由 saxon_zh@saxon_zh 创建
#<User:0x00007ff7c098ceb0>
  • 概览 7
  • 提交 81
  • 变更 137

Created by: guru4elephant

PR types

New features

PR changes

APIs

Describe

unify distributed_strategy in paddle.fleet. All distributed training strategy should be configured through this class.

Propose to formalize the paddle.fleet api as follows:

  • base
    • distributed_strategy.py
      • all distributed strategies are implemented here, including various kinds of distributed optimizers
      • the distributed strategy can be serialized into protobuf file
      • distributed job info is defined in distributed_strategy.py, including distributed runtime information such as endpoints, node num, etc.
      • a distributed training job can be configured through serialized distributed strategy and distributed job info.
    • fleet_base.py
      • the only entry of distributed training of Paddle
      • singleton instance
      • a Fleet() object is initialized through RoleMaker
      • Util and DistributedOptimizer(either collective、ps or other distributed optimizer) can be initialized by RoleMaker
    • obj_creator.py
      • obj_creator helps to create Util and DistributedOptimizer
    • role_maker.py
      • PaddleCloudRoleMaker and UserDefinedRoleMaker can be defined currently
      • different kinds of RoleMaker is specified by arguments of __init__(self, role_maker)
    • util_base.py
      • implement all Util classes, Util Base class can be inherited so that a third party Util class can be used.
  • collective
    • collective_distributed_optimizer.py
      • define collective training
  • parameter_server
    • ps_distributed_optimizer.py
      • define ps training
  • metrics
    • meric.py
      • distributed metrics

What is paddle.fleet?

  • paddle.fleet is the official entry point for distributed training of Paddle. The motivation of paddle.fleet is to make distributed training efficient and easy to configure.
  • RoleMaker, DistributedStrategy and DistributedOptimizer are the key concepts to understand in paddle.fleet
    • RoleMaker : the role of a node in distributed cluster is specified by RoleMaker, such as worker or pserver.
    • DistributedStrategy : paddle.fleet supports lots of distributed training algorithm and scalable configurations all defined in DistributedStrategy, such as hierarchical all reduce, deep gradient compression and async parameter server training, etc.
    • DistributedOptimizer : in general, three kinds of optimizers exist in paddle. 1) commonly used local optimizer, such as SGD and Adam. 2) decorator of local optimzier, such RecomputeOptimizer, PipelineOptimizer and LookAheadOptimizer that often wraps a local optimizer as an inner optimizer. 3) distributed decorator of 1)、2) or combination of 1) and different 2), such as collective distributed optimizer and parameter server distributed optimzier. paddle.fleet is the third kind of optimizer that users can define.
指派人
分配到
审核者
Request review from
无
里程碑
无
分配里程碑
工时统计
标识: paddlepaddle/Paddle!25196
Source branch: github/fork/guru4elephant/paddle_fleet_distributed_strategy
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7