Skip to content

Commit

Permalink
fix phi3 (#11878)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeouSker77 authored Aug 21, 2024
1 parent eab6f6d commit bd1e490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/llm/src/ipex_llm/transformers/models/phi3.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def model_forward(
head_dim = self.config.hidden_size // self.config.num_attention_heads
past_key_values = DynamicNormalCache.from_reserved(
n_layer, inputs.size(0), n_head, inputs.size(1), head_dim,
inputs.dtype, inputs.device
self.dtype, inputs.device
)
return origin_model_forward(
self=self,
Expand Down

0 comments on commit bd1e490

Please sign in to comment.