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

Method load_state_dict

model/downstream.py:20–21  ·  view source on GitHub ↗
(self, state_dict, strict=True)

Source from the content-addressed store, hash-verified

18 return sd
19
20 def load_state_dict(self, state_dict, strict=True):
21 return self.model.load_state_dict(state_dict, strict=strict)
22
23 def named_parameters(self, prefix: str = '', recurse: bool = True):
24 return self.model.named_parameters(prefix=prefix, recurse=recurse)

Callers 1

load_state_dictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected