Skip to content

Commit

Permalink
vision encoder decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Oct 24, 2024
1 parent 6191617 commit 79ed335
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 @@ -2033,6 +2033,7 @@ class TrOCROnnxConfig(TextSeq2SeqOnnxConfig):
class VisionEncoderDecoderOnnxConfig(EncoderDecoderBaseOnnxConfig):
NORMALIZED_CONFIG_CLASS = NormalizedEncoderDecoderConfig
ATOL_FOR_VALIDATION = 1e-3
DEFAULT_ONNX_OPSET = 14 # uses SDPA in Transformers, hence opset>=14.

DUMMY_INPUT_GENERATOR_CLASSES = (DummyVisionInputGenerator, DummyVisionEncoderDecoderPastKeyValuesGenerator)

Expand Down

0 comments on commit 79ed335

Please sign in to comment.