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

Method zero_cpu_offload

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

Source from the content-addressed store, hash-verified

1596 return False
1597
1598 def zero_cpu_offload(self):
1599 if self._config.zero_config.offload_optimizer is not None:
1600 return self._config.zero_config.offload_optimizer.device == OffloadDeviceEnum.cpu
1601 return False
1602
1603 def zero_partial_offload(self):
1604 return getattr(self._config.zero_config.offload_optimizer, "ratio", 1.0)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected