Skip to content

Commit

Permalink
update opsets
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Jun 28, 2024
1 parent 6260ad5 commit 81f9787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimum/exporters/onnx/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def inputs(self) -> Dict[str, Dict[int, str]]:


class GPT2OnnxConfig(TextDecoderWithPositionIdsOnnxConfig):
DEFAULT_ONNX_OPSET = 13
DEFAULT_ONNX_OPSET = 14 # uses SDPA in Transformers, hence opset>=14.
NORMALIZED_CONFIG_CLASS = NormalizedTextConfig.with_args(num_layers="n_layer", num_attention_heads="n_head")


Expand All @@ -259,7 +259,7 @@ class GPTNeoOnnxConfig(TextDecoderWithPositionIdsOnnxConfig):


class GPTNeoXOnnxConfig(TextDecoderWithPositionIdsOnnxConfig):
DEFAULT_ONNX_OPSET = 13
DEFAULT_ONNX_OPSET = 14 # uses SDPA in Transformers, hence opset>=14.
NORMALIZED_CONFIG_CLASS = NormalizedTextConfig


Expand Down

0 comments on commit 81f9787

Please sign in to comment.