(self, logits: torch.Tensor)
| 20 | |
| 21 | class FakeGenerationReferenceModel(torch.nn.Module): |
| 22 | def __init__(self, logits: torch.Tensor): |
| 23 | super().__init__() |
| 24 | self.register_buffer("fixed_logits", logits) |
| 25 | self.use_cache_calls: list[bool | None] = [] |
| 26 | |
| 27 | def forward(self, input_ids, attention_mask=None, use_cache=None): |
| 28 | del attention_mask |
nothing calls this directly
no outgoing calls
no test coverage detected