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

Method forward

transformer.py:164–166  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

162 self.down_proj = Linear(expand_dim, dim)
163
164 def forward(self, x):
165 gate, up = self.gateup_proj(x).chunk(2, dim=-1)
166 return self.down_proj(up * F.silu(gate))
167
168class GQA(nn.Module):
169 def __init__(self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected