Skip to content

Commit

Permalink
update phi default onnx opset
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Mar 21, 2024
1 parent 68f2c4e commit a809853
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 @@ -252,6 +252,7 @@ class GemmaOnnxConfig(LlamaOnnxConfig):


class PhiOnnxConfig(TextDecoderWithPositionIdsOnnxConfig):
DEFAULT_ONNX_OPSET = 14 # Phi now uses F.scaled_dot_product_attention by default for torch>=2.1.1.
NORMALIZED_CONFIG_CLASS = NormalizedTextConfig


Expand Down

0 comments on commit a809853

Please sign in to comment.