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

Method forward

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

Source from the content-addressed store, hash-verified

425 )
426
427 def forward(self, x: torch.Tensor) -> torch.Tensor:
428 # x_fc_1 = self.fc_1(x)
429 # x_fc_2 = self.fc_2(x)
430 # x = torch.nn.functional.silu(x_fc_1) * x_fc_2
431 # return self.proj(x)
432 return self.swiglu(x)
433
434
435def build_rope_cache(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected