From 7e33aa25205a783896877c50eb666d19d7937721 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Sat, 24 Feb 2024 16:59:24 +1100 Subject: [PATCH] Update gemma.py --- unsloth/models/gemma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/models/gemma.py b/unsloth/models/gemma.py index f5066ee0c8..3385bfccdd 100644 --- a/unsloth/models/gemma.py +++ b/unsloth/models/gemma.py @@ -224,7 +224,7 @@ def GemmaModel_fast_forward( pass # We already handle KV cache position_ids ourselves. - if False:#(past_key_values_length != 0): + if True:#(past_key_values_length != 0): position_ids = torch.arange( past_key_values_length, seq_length + past_key_values_length, dtype = torch.int32,