MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / forward

Method forward

lit_gpt/model.py:411–414  ·  view source on GitHub ↗
(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

409 self.proj = nn.Linear(config.intermediate_size, config.n_embd, bias=config.bias)
410
411 def forward(self, x: torch.Tensor) -> torch.Tensor:
412 x = self.fc(x)
413 x = torch.nn.functional.gelu(x)
414 return self.proj(x)
415
416
417class LLaMAMLP(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected