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

Method _set_client_model

deepspeed/runtime/engine.py:1620–1625  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

1618 return
1619
1620 def _set_client_model(self, model):
1621 # register client model in _modules so that nn.module methods work correctly
1622 modules = self.__dict__.get('_modules')
1623 modules['module'] = model
1624 # register module attribute in engine but avoid getattr
1625 self.__dict__['module'] = model
1626
1627 def _configure_distributed_model(self, model):
1628 self._set_client_model(model)

Calls 1

getMethod · 0.45

Tested by

no test coverage detected