Skip to content

Commit c2222db

Browse files
committed
fix
1 parent b0e8322 commit c2222db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

onnx_diagnostic/torch_export_patches/onnx_export_errors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ def torch_export_patches(
567567
sdpa_attention is not None
568568
and modeling_utils is not None
569569
and hasattr(sdpa_attention, "sdpa_attention_forward")
570+
and hasattr(sdpa_attention, "use_gqa_in_sdpa")
570571
and hasattr(modeling_utils, "AttentionInterface")
571572
):
572573
if verbose:
@@ -776,6 +777,7 @@ def torch_export_patches(
776777
sdpa_attention is not None
777778
and modeling_utils is not None
778779
and hasattr(sdpa_attention, "sdpa_attention_forward")
780+
and hasattr(sdpa_attention, "use_gqa_in_sdpa")
779781
and hasattr(modeling_utils, "AttentionInterface")
780782
):
781783
sdpa_attention.sdpa_attention_forward = f_sdpa_attention_forward

0 commit comments

Comments
 (0)