MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / forward

Method forward

inference/models/llama.py:311–314  ·  view source on GitHub ↗
(self, tokens: torch.Tensor, start_pos: int)

Source from the content-addressed store, hash-verified

309
310 @torch.inference_mode()
311 def forward(self, tokens: torch.Tensor, start_pos: int):
312 h = self.model(tokens, start_pos)
313 output = self.lm_head(h) # only compute last logits
314 return output.float()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected