paper-with-me

홈 › Papers

SimpleFSDP: Simpler Fully Sharded Data Parallel with torch.compile

2024-11-01 · Ruisi Zhang, Tianyu Liu, Will Feng, Andrew Gu, Sanket Purandare, Wanchao Liang, Francisco Massa

Distributed training of large models consumes enormous computation resources and requires substantial engineering efforts to compose various training techniques. This paper presents SimpleFSDP, a PyTorch-native compiler-based Fully Sharded Data Parallel (FSDP) framework, which has a simple implementation for maintenance and composability, allows full computation-communication graph tracing, and brings performance enhancement via compiler backend optimizations. SimpleFSDP's novelty lies in its unique $torch.compile$-friendly implementation of collective communications using existing PyTorch primitives, namely parametrizations, selective activation checkpointing, and DTensor. It also features the first-of-its-kind intermediate representation (IR) nodes bucketing and reordering in the TorchInductor backend for effective computation-communication overlapping. As a result, users can employ the aforementioned optimizations to automatically or manually wrap model components for minimal communication exposure. Extensive evaluations of SimpleFSDP on Llama 3 models (including the ultra-large 405B) using TorchTitan demonstrate up to 28.54% memory reduction and 68.67% throughput improvement compared to the most widely adopted FSDP2 eager framework, when composed with other distributed training techniques.

📄 PDF Abstract BibTeX arXiv:2411.00284

Code (2)

facebookresearch/capi jax
pytorch/torchtitan pytorch

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

Scaling Neural Network Verification with Tensor Parallelism and Fully Sharded Data Parallelism

2026-06-08 · Sergei Vorobyov, Eugene Ilyushin arxiv

Formal neural network verification -- proving that a network satisfies safety properties for *all* inputs in a specified domain -- is bounded in practice by GPU memory: standard implementations of bound-propagation algor…

FlexDeMo: Decoupled Momentum Optimization for Hybrid Sharded Data Parallel Training

2025-02-10 · Mogens Henrik From, Jacob Nielsen, Lukas Galke, Peter Schneider-Kamp

Training large neural network models requires extensive computational resources, often distributed across several nodes and accelerators. Recent findings suggest that it may be sufficient to only exchange the fast moving…

Placement Semantics for Distributed Deep Learning: A Systematic Framework for Analyzing Parallelism Strategies

2026-01-05 · Deep Pankajbhai Mehta arxiv

Training large language models requires distributing computation across many accelerators, yet practitioners select parallelism strategies (data, tensor, pipeline, ZeRO) through trial and error because no unified systema…

veScale: Consistent and Efficient Tensor Programming with Eager-Mode SPMD

2025-09-05 · Youjie Li, Cheng Wan, Zhiqi Lin, Hongyu Zhu 외 arxiv

Large Language Models (LLMs) have scaled rapidly in size and complexity, requiring increasingly intricate parallelism for distributed training, such as 3D parallelism. This sophistication motivates a shift toward simpler…

PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallel

2023-04-21 · Yanli Zhao, Andrew Gu, Rohan Varma, Liang Luo 외

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, whic…