MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / forward

Method forward

models/llama_7b.py:97–98  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

95 self.w3 = nn.Linear(dim, hidden_dim, bias=False) # up
96
97 def forward(self, x: torch.Tensor) -> torch.Tensor:
98 return self.w2(F.silu(self.w1(x)) * self.w3(x))
99
100
101class TransformerBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected