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

Method __init__

model/downstream.py:115–118  ·  view source on GitHub ↗
(self, language_model, take_softmax=False)

Source from the content-addressed store, hash-verified

113
114class GLMForSingleTokenCloze(torch.nn.Module):
115 def __init__(self, language_model, take_softmax=False):
116 super().__init__()
117 self.model = language_model
118 self.take_softmax = take_softmax
119
120 def state_dict(self, destination=None, prefix='', keep_vars=False):
121 # [h.remove() for h in self.hook_handles]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected