a key appeal of ZeRO if that no model code modifications are required
using ZeRO in a DeepSpeed model is quick and easy because all you need is to change a few configurations in the DeepSpeed configuration JSON。No code changes are needed
3篇论文:(Zero Redundancy Optimizer)
ZeRO:Memory Optimizations Toward Training Trillion Parameter Models
ZeRO-Infinity:Breaking the GPU Memory Wall for Exterme Scale Deep Learning
ZeRO-Offload:Democratizing Billion-Scale Model Training
DeepSpeed
Optimizer state partitioning (ZeRO stage 1)
Gradient partitioning (ZeRO stage 2)
Paramter partitioning (ZeRO satge 3)
Custom mixed precision training handing
A range of fast CUDA-extension-based opyimizers
ZeRO-Offload to CPU and NVMe
安装
安装之后的校验,命令行执行ds_report
除此之外还有:
ds_acceleartor:setting ds_acceleratot to cuda(auto_detect)