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

Method load_state_dict

fp16/fp16.py:70–71  ·  view source on GitHub ↗
(self, state_dict, strict=True)

Source from the content-addressed store, hash-verified

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)
72
73# TODO: Update overflow check + downscale to use Carl's fused kernel.
74class FP16_Optimizer(object):

Callers 5

load_checkpointFunction · 0.45
setup_modelFunction · 0.45
__init__Method · 0.45
load_state_dictMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected