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

Method set_state_dict

codegeex/paddle/codegeex_model.py:1005–1010  ·  view source on GitHub ↗

Customized load.

(self, state_dict, use_structured_name=True)

Source from the content-addressed store, hash-verified

1003 return state_dict_
1004
1005 def set_state_dict(self, state_dict, use_structured_name=True):
1006 """Customized load."""
1007
1008 if self._language_model_key in state_dict:
1009 state_dict = state_dict[self._language_model_key]
1010 self.language_model.set_state_dict(state_dict, use_structured_name=use_structured_name)

Callers

nothing calls this directly

Calls 1

set_state_dictMethod · 0.45

Tested by

no test coverage detected