MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / load

Method load

bing_bert/turing/models.py:121–122  ·  view source on GitHub ↗
(self, model_state_dict: str)

Source from the content-addressed store, hash-verified

119 return torch.save(network.state_dict(), filename)
120
121 def load(self, model_state_dict: str):
122 return self.network.module.load_state_dict(torch.load(model_state_dict, map_location=lambda storage, loc: storage))
123
124 def move_batch(self, batch: TorchTuple, non_blocking=False):
125 return batch.to(self.device, non_blocking)

Callers 4

construct_argumentsFunction · 0.45
__init__Method · 0.45
filename_to_urlFunction · 0.45

Calls 1

load_state_dictMethod · 0.45

Tested by

no test coverage detected