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

Method zero_cpu_offload

deepspeed/runtime/engine.py:1651–1654  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1649 return False
1650
1651 def zero_cpu_offload(self):
1652 if self._config.zero_config.offload_optimizer is not None:
1653 return self._config.zero_config.offload_optimizer.device == OffloadDeviceEnum.cpu
1654 return False
1655
1656 def zero_partial_offload(self):
1657 return getattr(self._config.zero_config.offload_optimizer, "ratio", 1.0)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected