Skip to content

Commit

Permalink
Fix import for phi3 openvino model patcher (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Jun 26, 2024
1 parent c1ee8ac commit 8b57c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/exporters/openvino/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ def _phi3_self_attn_sdpa_forward(

# TO DO: remove llama imports when transformers with phi3 support will be released
try:
from transformers.models.phi3.modelling_phi3 import apply_rotary_pos_emb, repeat_kv
from transformers.models.phi3.modeling_phi3 import apply_rotary_pos_emb, repeat_kv
except ImportError:
from transformers.models.llama.modeling_llama import apply_rotary_pos_emb, repeat_kv

Expand Down

0 comments on commit 8b57c24

Please sign in to comment.