Skip to content

Commit 35a647f

Browse files
Add normaliezd text and vision config to Gemma3
1 parent 1775f54 commit 35a647f

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
@@ -510,7 +510,7 @@ class GemmaOnnxConfig(LlamaOnnxConfig):
510510
class Gemma3OnnxConfig(LlamaOnnxConfig):
511511
DUMMY_INPUT_GENERATOR_CLASSES = (DummyTextInputGenerator, GemmaDummyPastKeyValuesGenerator)
512512
DUMMY_PKV_GENERATOR_CLASS = GemmaDummyPastKeyValuesGenerator
513-
NORMALIZED_CONFIG_CLASS = NormalizedTextConfig.with_args(vocab_size="text_config.vocab_size")
513+
NORMALIZED_CONFIG_CLASS = NormalizedTextAndVisionConfig
514514
MIN_TRANSFORMERS_VERSION = version.parse("4.52.0.dev0")
515515

516516

0 commit comments

Comments
 (0)