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

Method _set_client_model

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

Source from the content-addressed store, hash-verified

2190 return
2191
2192 def _set_client_model(self, model):
2193 # register client model in _modules so that nn.module methods work correctly
2194 modules = self.__dict__.get('_modules')
2195 modules['module'] = model
2196 # register module attribute in engine but avoid getattr
2197 self.__dict__['module'] = model
2198
2199 def _configure_distributed_model(self, model):
2200 self._set_client_model(model)

Calls 1

getMethod · 0.45

Tested by

no test coverage detected