Skip to content

Commit

Permalink
Update llama.py
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhanchen committed Jun 6, 2024
1 parent c1e1646 commit 8b1ebc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unsloth/models/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def _CausalLM_fast_forward(
*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,
Expand Down

0 comments on commit 8b1ebc4

Please sign in to comment.