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

Method forward

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

Source from the content-addressed store, hash-verified

107 self.ffn_norm = RMSNorm(dim)
108
109 def forward(self, x: torch.Tensor, freqs_cis: torch.Tensor) -> torch.Tensor:
110 x = x + self.attention(self.attention_norm(x), freqs_cis)
111 x = x + self.feed_forward(self.ffn_norm(x))
112 return x
113
114
115class LlamaModel(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected