Skip to content

Commit 10c2a92

Browse files
committed
fix
1 parent efd7b5e commit 10c2a92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

onnx_diagnostic/torch_export_patches/patches/patch_transformers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,9 @@ class patched_Phi4MultimodalRotaryEmbedding(common_RotaryEmbedding):
889889
transformers.models.phi4_multimodal.modeling_phi4_multimodal.Phi4MultimodalRotaryEmbedding
890890
)
891891

892+
893+
if pv.Version(transformers.__version__) >= pv.Version("4.53"):
894+
892895
class patched_SmolLM3RotaryEmbedding(common_RotaryEmbedding):
893896
_PATCHES_ = ["forward"]
894897
_PATCHED_CLASS_ = transformers.models.smollm3.modeling_smollm3.SmolLM3RotaryEmbedding

0 commit comments

Comments
 (0)