Pass use_cache in kwargs for GPTNeoX (#30538)

pass use_cache in kwargs
This commit is contained in:
Raushan Turganbay 2024-04-30 12:16:18 +05:00 committed by GitHub
parent a3aabc702e
commit c712d05aa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1108,6 +1108,7 @@ class GPTNeoXForCausalLM(GPTNeoXPreTrainedModel):
"attention_mask": attention_mask,
"past_key_values": past_key_values,
"position_ids": position_ids,
"use_cache": kwargs.get("use_cache"),
}
)