MCPcopy Create free account
hub / github.com/THUDM/GLM / state_dict

Method state_dict

model/distributed.py:30–32  ·  view source on GitHub ↗
(self, destination=None, prefix='', keep_vars=False)

Source from the content-addressed store, hash-verified

28 return self.module.named_parameters(prefix=prefix, recurse=recurse)
29
30 def state_dict(self, destination=None, prefix='', keep_vars=False):
31 sd = self.module.state_dict(destination, prefix, keep_vars)
32 return sd
33
34 def load_state_dict(self, state_dict, strict=True):
35 return self.module.load_state_dict(state_dict, strict=strict)

Callers

nothing calls this directly

Calls 1

state_dictMethod · 0.45

Tested by

no test coverage detected