You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I am using ZeRO-3 for training, and use engine.save_checkpoint for storing the temporal results.
But I found the saved model states are all empty.
I checked the implementation, and indeed before the save_checkpint, the model is partitioned: https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/runtime/zero/stage3.py#L3114
Thus, it is reasonable to see the model states values are empty tensors (because here
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I am using ZeRO-3 for training, and use
engine.save_checkpoint
for storing the temporal results.But I found the saved model states are all empty.
I checked the implementation, and indeed before the save_checkpint, the model is partitioned: https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/runtime/zero/stage3.py#L3114
Thus, it is reasonable to see the model states values are empty tensors (because here
DeepSpeed/deepspeed/runtime/engine.py
Line 2912 in dac9056
module.state_dict
.)My questions are:
param.ds_tensor
instead ofparam.data
?Beta Was this translation helpful? Give feedback.
All reactions