MCPcopy Create free account
hub / github.com/RL-Align/RL-Kernel / __init__

Method __init__

tests/test_paged_kv_baseline.py:22–25  ·  view source on GitHub ↗
(self, logits: torch.Tensor)

Source from the content-addressed store, hash-verified

20
21class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected