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

Method load_state_dict

codegeex/oneflow/codegeex_model.py:1097–1102  ·  view source on GitHub ↗

Customized load.

(self, state_dict, strict=True)

Source from the content-addressed store, hash-verified

1095 return state_dict_
1096
1097 def load_state_dict(self, state_dict, strict=True):
1098 """Customized load."""
1099
1100 if self._language_model_key in state_dict:
1101 state_dict = state_dict[self._language_model_key]
1102 self.language_model.load_state_dict(state_dict, strict=strict)

Callers

nothing calls this directly

Calls 1

load_state_dictMethod · 0.45

Tested by

no test coverage detected