(self, tokens: torch.Tensor, start_pos: int)
| 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() |
nothing calls this directly
no outgoing calls
no test coverage detected