MCPcopy Index your code
hub / github.com/zai-org/CodeGeeX / load_state_dict

Method load_state_dict

codegeex/torch/codegeex_model.py:1006–1011  ·  view source on GitHub ↗

Customized load.

(self, state_dict, strict=True)

Source from the content-addressed store, hash-verified

1004 return state_dict_
1005
1006 def load_state_dict(self, state_dict, strict=True):
1007 """Customized load."""
1008
1009 if self._language_model_key in state_dict:
1010 state_dict = state_dict[self._language_model_key]
1011 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