MCPcopy Index your code
hub / github.com/Standard-Intelligence/hertz-dev / __init__

Method __init__

transformer.py:307–313  ·  view source on GitHub ↗
(self, dim, vocab_size)

Source from the content-addressed store, hash-verified

305
306class GPTOutput(nn.Module):
307 def __init__(self, dim, vocab_size):
308 super().__init__()
309 self.dim = dim
310 self.norm = Norm(dim)
311 self.output = Linear(dim, vocab_size)
312
313 self.reset_parameters()
314
315 def reset_parameters(self):
316 std = 1.0 / math.sqrt(self.dim**2)

Callers

nothing calls this directly

Calls 4

reset_parametersMethod · 0.95
NormClass · 0.85
LinearClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected