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

Method _set_client_model

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

Source from the content-addressed store, hash-verified

1699 return
1700
1701 def _set_client_model(self, model):
1702 # register client model in _modules so that nn.module methods work correctly
1703 modules = self.__dict__.get('_modules')
1704 modules['module'] = model
1705 # register module attribute in engine but avoid getattr
1706 self.__dict__['module'] = model
1707
1708 def _configure_distributed_model(self, model):
1709 self._set_client_model(model)

Calls 1

getMethod · 0.45

Tested by

no test coverage detected