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

Method zero_cpu_offload

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

Source from the content-addressed store, hash-verified

1677 return False
1678
1679 def zero_cpu_offload(self):
1680 if self._config.zero_config.offload_optimizer is not None:
1681 return self._config.zero_config.offload_optimizer.device == OffloadDeviceEnum.cpu
1682 return False
1683
1684 def zero_partial_offload(self):
1685 return getattr(self._config.zero_config.offload_optimizer, "ratio", 1.0)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected