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

Method forward

inference/models/falcon.py:294–297  ·  view source on GitHub ↗
(self, tokens: torch.Tensor, start_pos: int)

Source from the content-addressed store, hash-verified

292
293 @torch.inference_mode()
294 def forward(self, tokens: torch.Tensor, start_pos: int):
295 h = self.transformer(tokens, start_pos)
296 output = self.lm_head(h) # only compute last logits
297 return output.float()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected