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

Function _offload_device

deepspeed/runtime/engine.py:241–244  ·  view source on GitHub ↗
(offload_config)

Source from the content-addressed store, hash-verified

239
240
241def _offload_device(offload_config):
242 if offload_config is None:
243 return None
244 return OffloadDeviceEnum(offload_config.device).value
245
246
247def _model_parameters_need_remap(model_parameters):

Callers 1

Calls 1

OffloadDeviceEnumClass · 0.85

Tested by

no test coverage detected