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

Method _set_client_model

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

Source from the content-addressed store, hash-verified

2137 return
2138
2139 def _set_client_model(self, model):
2140 # register client model in _modules so that nn.module methods work correctly
2141 modules = self.__dict__.get('_modules')
2142 modules['module'] = model
2143 # register module attribute in engine but avoid getattr
2144 self.__dict__['module'] = model
2145
2146 def _configure_distributed_model(self, model):
2147 self._set_client_model(model)

Calls 1

getMethod · 0.45

Tested by

no test coverage detected