DeepSpeed icon indicating copy to clipboard operation
DeepSpeed copied to clipboard

When I load model and use deepspeed with ZERO stage 3, I have a problem with high cpu memory Usage

Open ZJXNEFU opened this issue 3 years ago • 3 comments

deepspeed: 0.9.2 transformers: 4.30.0.dev0 torch: 1.12.1+cuda11.6 server info: 8*A100 80G Memory: 500G

When load a model that has 15B parameters on single node(8*A100),the memory usage exceeds 500 GB and the process was killed, I have used the Zero stage 3.

how can I reduce the Memory Usage

ZJXNEFU avatar Jun 09 '23 07:06 ZJXNEFU

you need zero.Init()

Quan-Sun avatar Jun 21 '23 06:06 Quan-Sun

you need zero.Init()

yeap, but there is the other bug when use zero.init() #3156

ZJXNEFU avatar Jun 21 '23 06:06 ZJXNEFU

Hi @ZJXNEFU. Could you provide a reproduce script so we can better investigate this issue? Thank you

HeyangQin avatar Jul 21 '23 18:07 HeyangQin