Skip to content

Commit

Permalink
bump default opset m2m100
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Sep 26, 2024
1 parent 94dee27 commit 3bfa30e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions optimum/exporters/onnx/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ def generate(self, input_name: str, framework: str = "pt", int_dtype: str = "int


class M2M100OnnxConfig(TextSeq2SeqOnnxConfig):
DEFAULT_ONNX_OPSET = 14 # now uses F.scaled_dot_product_attention by default for torch>=2.1.1.
NORMALIZED_CONFIG_CLASS = NormalizedSeq2SeqConfig.with_args(
encoder_num_layers="encoder_layers",
decoder_num_layers="decoder_layers",
Expand Down

0 comments on commit 3bfa30e

Please sign in to comment.