Skip to content

Commit 9ec1a9b

Browse files
Add normaliezd text and vision config to Gemma3
1 parent 4270237 commit 9ec1a9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimum/exporters/onnx/model_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ class GemmaOnnxConfig(LlamaOnnxConfig):
502502
class Gemma3OnnxConfig(LlamaOnnxConfig):
503503
DUMMY_INPUT_GENERATOR_CLASSES = (DummyTextInputGenerator, GemmaDummyPastKeyValuesGenerator)
504504
DUMMY_PKV_GENERATOR_CLASS = GemmaDummyPastKeyValuesGenerator
505-
NORMALIZED_CONFIG_CLASS = NormalizedTextConfig.with_args(vocab_size="text_config.vocab_size")
505+
NORMALIZED_CONFIG_CLASS = NormalizedTextAndVisionConfig
506506
MIN_TRANSFORMERS_VERSION = version.parse("4.52.0.dev0")
507507

508508

0 commit comments

Comments
 (0)