veScale-FSDP:在大规模上灵活且高性能的FSDP
veScale-FSDP: Flexible and High-Performance FSDP at Scale
AI总结:
veScale-FSDP通过灵活的RaggedShard分片格式和结构感知规划算法,提升大规模GPU训练的性能和效率,实现更高的吞吐量和更低的内存使用。
摘要:
完全分片数据并行(FSDP),也称为零冗余优化器(ZeRO),因其内存效率和对模型代码的最小侵入性而广泛用于大规模模型训练。然而,现有FSDP系统依赖于固定的元素级或行级分片格式,这与块结构计算冲突。因此,它们难以支持现代结构感知训练方法,包括块级量化和非元素级优化器如Shampoo和Muon。此外,当前实现带来了通信和内存开销,这在数万块GPU规模下会降低效率。我们引入veScale-FSDP,一种新的FSDP系统,结合了灵活的RaggedShard分片格式和结构感知规划算法,以提供灵活性和性能。veScale-FSDP实现了零拷贝FSDP通信,并原生支持块级量化和非元素级优化器,比现有FSDP系统在吞吐量上提高了5%至66%,在内存使用上降低了16%至30%,同时能够高效扩展到数万块GPU。
英文摘要:
Fully Sharded Data Parallel (FSDP), also known as Zero Redundancy Optimizer (ZeRO), is widely used for large-scale model training, because of its memory efficiency and minimal intrusion on model code. However, existing FSDP systems rely on fixed element-wise or row-wise sharding formats that conflict with block-structured computations. As a result, they struggle to support modern structure-aware training methods, including block-wise quantization and non-element-wise optimizers such as Shampoo and Muon. In addition, today's implementations incur communication and memory overheads that degrade efficiency at the scale of tens of thousands of GPUs. We introduce veScale-FSDP, a novel FSDP system that combines RaggedShard, a flexible sharding format, with a structure-aware planning algorithm to deliver both flexibility and performance. veScale-FSDP enables zero-copy FSDP communications and natively supports block-wise quantization and non-element-wise optimizers, achieving 5% to 66% higher throughput and 16% to 30% lower memory usage than existing FSDP systems, while scaling efficiently to tens of thousands of GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。