MCPcopy
hub / github.com/deepspeedai/DeepSpeed / save

Method save

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

Source from the content-addressed store, hash-verified

200 return v
201
202 def save(self, name: str, v: Argument, offload) -> None:
203 self.env_values[name] = map_aggregate(v, lambda x: self._to_cpu(x) if offload else x)
204
205 def load(self, name: str) -> Argument:
206 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
train_save_convertFunction · 0.45
runMethod · 0.45
runMethod · 0.45

Calls 1

_to_cpuMethod · 0.95

Tested by 11

runMethod · 0.36
runMethod · 0.36
_write_tp_sliceFunction · 0.36
train_save_convertFunction · 0.36
runMethod · 0.36
runMethod · 0.36