Update gemma.py
This commit is contained in:
parent
a6752f3f16
commit
23e6ebf14d
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ def GemmaDecoderLayer_fast_forward(
|
|||
# padding_mask: Optional[torch.LongTensor] = None,
|
||||
*args, **kwargs,
|
||||
) -> Tuple[torch.FloatTensor, Optional[Tuple[torch.FloatTensor, torch.FloatTensor]]]:
|
||||
if past_key_value is not None:
|
||||
print(past_key_value)
|
||||
if False:#past_key_value is not None:
|
||||
do_prefill = not hasattr(self.self_attn, "paged_attention")
|
||||
|
||||
# Self Attention
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue