MCPcopy
hub / github.com/zai-org/CogView / state_dict

Method state_dict

fp16/fp16.py:67–68  ·  view source on GitHub ↗
(self, destination=None, prefix='', keep_vars=False)

Source from the content-addressed store, hash-verified

65 return fp16_to_fp32(self.module(*(fp32_to_fp16(inputs)), **kwargs))
66
67 def state_dict(self, destination=None, prefix='', keep_vars=False):
68 return self.module.state_dict(destination, prefix, keep_vars)
69
70 def load_state_dict(self, state_dict, strict=True):
71 self.module.load_state_dict(state_dict, strict=strict)

Callers 5

save_zero_checkpointFunction · 0.45
save_checkpointFunction · 0.45
save_ds_checkpointFunction · 0.45
__init__Method · 0.45
state_dictMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected