MCPcopy Create free account
hub / github.com/THUDM/GLM / __init__

Method __init__

model/downstream.py:9–13  ·  view source on GitHub ↗
(self, language_model: GLMModel, take_softmax=True, length_penalty=0.0)

Source from the content-addressed store, hash-verified

7
8class GLMForMultiTokenCloze(torch.nn.Module):
9 def __init__(self, language_model: GLMModel, take_softmax=True, length_penalty=0.0):
10 super(GLMForMultiTokenCloze, self).__init__()
11 self.model = language_model
12 self.take_softmax = take_softmax
13 self.length_penalty = length_penalty
14
15 def state_dict(self, destination=None, prefix='', keep_vars=False):
16 # [h.remove() for h in self.hook_handles]

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected