lxp177
lxp177
> 干掉 --gradient_checkpointing 试试? 试了一下不用gradient_checkpointing就会报OOM错误: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 296.00 MiB. GPU 6 has a total capacity of 79.32 GiB of which 260.44 MiB is free....
> > > 干掉 --gradient_checkpointing 试试? > > > > > > 试了一下不用gradient_checkpointing就会报OOM错误: torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 296.00 MiB. GPU 6 has a total capacity of...
> 关闭gradient_checkpointing用ref offload ? 感谢建议,不过尝试了一下还是会OOM。。。。。
> --ring_attn_size 就是和长度成正比 --ring_head_stride 看内存够的话越大越好 请问假设我DPO训练一个72B模型,数据是8K长度,内存大约有1200GB的话,--ring_head_stride大致能开多大呢