Update llama.py

This commit is contained in:
Daniel Han-Chen 2024-02-04 03:54:12 +11:00
commit 201d90c3ba

View file

@ -471,7 +471,7 @@ def LlamaModel_fast_forward(
pass
# We already handle KV cache position_ids ourselves.
if False:#(past_key_values_length != 0):
if (past_key_values_length != 0):
position_ids = torch.arange(
past_key_values_length, seq_length + past_key_values_length,
dtype = torch.int32,