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

Method save_bert

bing_bert/turing/models.py:133–134  ·  view source on GitHub ↗
(self, filename: str)

Source from the content-addressed store, hash-verified

131 self.network.train()
132
133 def save_bert(self, filename: str):
134 return torch.save(self.bert_encoder.state_dict(), filename)
135
136 def to(self, device):
137 assert isinstance(device, torch.device)

Callers

nothing calls this directly

Calls 2

saveMethod · 0.45
state_dictMethod · 0.45

Tested by

no test coverage detected