PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel

By Yanli Zhao, A. Gu, Rohan Varma, Liangchen Luo, Chien-chin Huang, Min Xu, Less Wright, Hamid Shojanazeri, Myle Ott, Sam Shleifer and 6 more. 2023

795 citations recorded by the source corpus.

It is widely acknowledged that large models have the potential to deliver superior performance across a broad range of domains. Despite the remarkable progress made in the field of machine learning systems research, which has enabled the development and exploration of large models, such abilities remain confined to a small group of advanced users and industry leaders, resulting in an implicit technical barrier for the wider community to access and leverage these technologies. In this paper, we introduce PyTorch Fully Sharded Data Parallel (FSDP) as an industry-grade solution for large model training. FSDP has been closely co-designed with several key PyTorch core components including Tensor implementation, dispatcher system, and CUDA memory caching allocator, to provide non-intrusive user experiences and high training efficiency. Additionally, FSDP natively incorporates a range of techniques and settings to optimize resource utilization across a variety of hardware configurations. The experimental results demonstrate that FSDP is capable of achieving comparable performance to Distributed Data Parallel while providing support for significantly larger models with near-linear scalability in terms of TFLOPS.

Subfields: Computer Networks and Communications, Computer Vision and Pattern Recognition, Hardware and Architecture, Optimization & Training

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Networks and Communications

  1. Oyvind Tafjord
  2. Marie-Anne Lachaux
  3. Angela Fan
  4. Percy Liang
  5. Yann LeCun
  6. Jingren Zhou
  7. Russ Tedrake
  8. Sergey Levine

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Xiaogang Wang
  4. Trevor Darrell
  5. Jitendra Malik
  6. Ming-Hsuan Yang
  7. Mohit Bansal
  8. Alan L. Yuille

In Hardware and Architecture

  1. Marie-Anne Lachaux
  2. Angela Fan
  3. Percy Liang
  4. Ludwig Schmidt
  5. Yann LeCun
  6. Jingren Zhou
  7. Russ Tedrake
  8. Dorsa Sadigh

In Optimization & Training

  1. Yann LeCun
  2. Yuandong Tian
  3. Percy Liang
  4. Sergey Levine
  5. Luke S. Zettlemoyer
  6. Mitchell Wortsman
  7. Rafael Rafailov
  8. Siddharth Karamcheti

Citations in the corpus