Skip to content

Commit a809853

Browse files
committed
update phi default onnx opset
1 parent 68f2c4e commit a809853

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

optimum/exporters/onnx/model_configs.py

+1
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ class GemmaOnnxConfig(LlamaOnnxConfig):
252252

253253

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

257258

0 commit comments

Comments
 (0)