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