MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / save

Method save

deepspeed/compile/util.py:212–213  ·  view source on GitHub ↗
(self, name: str, v: Argument, offload)

Source from the content-addressed store, hash-verified

210 return v
211
212 def save(self, name: str, v: Argument, offload) -> None:
213 self.env_values[name] = map_aggregate(v, lambda x: self._to_cpu(x) if offload else x)
214
215 def load(self, name: str) -> Argument:
216 return map_aggregate(self.env_values[name], lambda x: self._from_cpu(x))

Callers 15

runMethod · 0.45
runMethod · 0.45
_write_tp_sliceFunction · 0.45
_write_stage3_checkpointFunction · 0.45
runMethod · 0.45
runMethod · 0.45
train_save_convertFunction · 0.45
_write_checkpoint_layoutFunction · 0.45

Calls 1

_to_cpuMethod · 0.95

Tested by 15

runMethod · 0.36
runMethod · 0.36
_write_tp_sliceFunction · 0.36
_write_stage3_checkpointFunction · 0.36
runMethod · 0.36
runMethod · 0.36
train_save_convertFunction · 0.36
_write_checkpoint_layoutFunction · 0.36