Skip to content

Commit 1775f54

Browse files
Add vocab size to text config
1 parent ae1bfce commit 1775f54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

optimum/exporters/onnx/model_configs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,8 @@ class GemmaOnnxConfig(LlamaOnnxConfig):
510510
class Gemma3OnnxConfig(LlamaOnnxConfig):
511511
DUMMY_INPUT_GENERATOR_CLASSES = (DummyTextInputGenerator, GemmaDummyPastKeyValuesGenerator)
512512
DUMMY_PKV_GENERATOR_CLASS = GemmaDummyPastKeyValuesGenerator
513-
MIN_TRANSFORMERS_VERSION = version.parse("4.51.0")
513+
NORMALIZED_CONFIG_CLASS = NormalizedTextConfig.with_args(vocab_size="text_config.vocab_size")
514+
MIN_TRANSFORMERS_VERSION = version.parse("4.52.0.dev0")
514515

515516

516517
@register_tasks_manager_onnx("nemotron", *COMMON_TEXT_GENERATION_TASKS)

0 commit comments

Comments
 (0)