Skip to content

Commit 50c9f9d

Browse files
committed
g
1 parent 10c2a92 commit 50c9f9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

onnx_diagnostic/torch_export_patches/patches/patch_transformers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,12 +877,15 @@ class patched_PhiRotaryEmbedding(common_RotaryEmbedding):
877877
_PATCHED_CLASS_ = transformers.models.phi.modeling_phi.PhiRotaryEmbedding
878878

879879

880-
if pv.Version(transformers.__version__) >= pv.Version("4.52"):
880+
if pv.Version(transformers.__version__) >= pv.Version("4.51"):
881881

882882
class patched_Phi3RotaryEmbedding(common_RotaryEmbedding):
883883
_PATCHES_ = ["forward"]
884884
_PATCHED_CLASS_ = transformers.models.phi3.modeling_phi3.Phi3RotaryEmbedding
885885

886+
887+
if pv.Version(transformers.__version__) >= pv.Version("4.52"):
888+
886889
class patched_Phi4MultimodalRotaryEmbedding(common_RotaryEmbedding):
887890
_PATCHES_ = ["forward"]
888891
_PATCHED_CLASS_ = (

0 commit comments

Comments
 (0)