MCPcopy Create free account
hub / github.com/Standard-Intelligence/hertz-dev / GPTOutput

Class GPTOutput

ioblocks.py:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86class GPTOutput(nn.Module):
87 def __init__(self, dim, vocab_size):
88 super().__init__()
89 self.output = nn.Linear(dim, vocab_size, bias=False)
90
91 def forward(self, x):
92 return self.output(x)
93
94
95# helper functions

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected