MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / load_state_dict

Method load_state_dict

codegeex/megatron/model/codegeex_model.py:108–113  ·  view source on GitHub ↗

Customized load.

(self, state_dict, strict=True)

Source from the content-addressed store, hash-verified

106 return state_dict_
107
108 def load_state_dict(self, state_dict, strict=True):
109 """Customized load."""
110
111 if self._language_model_key in state_dict:
112 state_dict = state_dict[self._language_model_key]
113 self.language_model.load_state_dict(state_dict, strict=strict)
114
115
116def CrossEntropy(output, labels):

Callers 2

model_providerFunction · 0.95
model_providerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected