(self)
| 48 | if attn_start is None and local_end is None: |
| 49 | return self._k_buffer[layer_id] |
| 50 | return self._k_buffer[layer_id][attn_start:local_end] |
| 51 | |
| 52 | def v_cache(self, layer_id: int, attn_start: int | None = None, local_end: int | None = None) -> torch.Tensor: |
| 53 | self._ensure_kv_buffer() |
| 54 | if attn_start is None and local_end is None: |
no outgoing calls
no test coverage detected