(self, tokens: torch.Tensor, start_pos: int)
| 298 | |
| 299 | @torch.inference_mode() |
| 300 | def forward(self, tokens: torch.Tensor, start_pos: int): |
| 301 | h = self.transformer(tokens, start_pos) |
| 302 | output = self.transformer.wte(h, unembed=True) # only compute last logits |
| 303 | return output.float() |
nothing calls this directly
no outgoing calls
no test coverage detected