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

Method module_state_dict

deepspeed/runtime/engine.py:2407–2411  ·  view source on GitHub ↗
(self, destination=None, prefix="", keep_vars=False)

Source from the content-addressed store, hash-verified

2405 return tensor_list
2406
2407 def module_state_dict(self, destination=None, prefix="", keep_vars=False):
2408 sd = self.module.state_dict(destination, prefix, keep_vars)
2409 if self.random_ltd_enabled():
2410 sd = remove_random_ltd_state_dict(sd)
2411 return sd
2412
2413 @staticmethod
2414 def load_moe_state_dict(checkpoint_path,

Callers 2

_save_moe_checkpointMethod · 0.95
_save_checkpointMethod · 0.95

Calls 3

random_ltd_enabledMethod · 0.95
state_dictMethod · 0.45

Tested by

no test coverage detected