Skip to content

Commit

Permalink
fix gpt bigcode ONNX export for transformers<4.39.0
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Jul 25, 2024
1 parent 21f709c commit 2997f94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optimum/exporters/onnx/model_patcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,11 @@ def _unmask_unattended_patched_legacy(
):
return expanded_mask


def _unmask_unattended_patched(expanded_mask: torch.Tensor, min_dtype: float):
return expanded_mask


def _make_causal_mask_patched(
input_ids_shape: torch.Size,
dtype: torch.dtype,
Expand Down

0 comments on commit 2997f94

Please sign in to comment.