MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / state_dict

Method state_dict

Megatron-LM/model/model.py:84–86  ·  view source on GitHub ↗
(self, destination=None, prefix='', keep_vars=False)

Source from the content-addressed store, hash-verified

82 checkpoint_activations=checkpoint_activations)
83
84 def state_dict(self, destination=None, prefix='', keep_vars=False):
85 return self.model.state_dict(destination=destination, prefix=prefix,
86 keep_vars=keep_vars)
87
88 def load_state_dict(self, state_dict, strict=True):
89 return self.model.load_state_dict(state_dict, strict=strict)

Callers 7

saveMethod · 0.45
save_bertMethod · 0.45
save_zero_checkpointFunction · 0.45
save_checkpointFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected