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

Method __init__

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

Source from the content-addressed store, hash-verified

55
56class GLMForMultiTokenClozeFast(torch.nn.Module):
57 def __init__(self, language_model, take_softmax=True, length_penalty=0.0):
58 super(GLMForMultiTokenClozeFast, self).__init__()
59 self.model = language_model
60 self.take_softmax = take_softmax
61 self.length_penalty = length_penalty
62
63 def forward(self, input_ids, position_ids, attention_mask,
64 dec_input_ids, dec_position_ids, dec_attention_mask, dec_target_ids, dec_logit_mask):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected