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

Function _offload_device

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

OffloadDeviceEnumClass · 0.85

Tested by

no test coverage detected