MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / set_module

Method set_module

deepspeed/runtime/state_dict_factory.py:157–164  ·  view source on GitHub ↗
(self, sd, module)

Source from the content-addressed store, hash-verified

155 return sd[self.module_key]
156
157 def set_module(self, sd, module):
158 if self.module_key is None:
159 sd = module
160 elif self.module_key == AUTO_MODULE_KEY:
161 sd[self._choose_module_key(sd)] = module
162 else:
163 sd[self.module_key] = module
164 return sd
165
166 def check_ckpt_list(self):
167 #logger.info(f'checkpoint file list: {self.ckpt_list}')

Callers 3

loadMethod · 0.95
merge_state_dictMethod · 0.80
split_state_dictMethod · 0.80

Calls 1

_choose_module_keyMethod · 0.95

Tested by

no test coverage detected