Update llama.py
This commit is contained in:
parent
bc2b9f11d8
commit
82520f5e4c
1 changed files with 1 additions and 1 deletions
|
|
@ -791,7 +791,7 @@ def CausalLM_fast_forward(fast_forward_inference):
|
|||
*args, **kwargs,
|
||||
) -> Union[Tuple, CausalLMOutputWithPast]:
|
||||
|
||||
if past_key_values is not None:
|
||||
if past_key_values is not None and self.config.model_type != "qwen2":
|
||||
outputs = fast_forward_inference(
|
||||
self,
|
||||
input_ids,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue