Skip to content

Commit 4270237

Browse files
Add vocab size to text config
1 parent b870501 commit 4270237

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
@@ -502,7 +502,8 @@ class GemmaOnnxConfig(LlamaOnnxConfig):
502502
class Gemma3OnnxConfig(LlamaOnnxConfig):
503503
DUMMY_INPUT_GENERATOR_CLASSES = (DummyTextInputGenerator, GemmaDummyPastKeyValuesGenerator)
504504
DUMMY_PKV_GENERATOR_CLASS = GemmaDummyPastKeyValuesGenerator
505-
MIN_TRANSFORMERS_VERSION = version.parse("4.51.0")
505+
NORMALIZED_CONFIG_CLASS = NormalizedTextConfig.with_args(vocab_size="text_config.vocab_size")
506+
MIN_TRANSFORMERS_VERSION = version.parse("4.52.0.dev0")
506507

507508

508509
@register_tasks_manager_onnx("granite", *COMMON_TEXT_GENERATION_TASKS)

0 commit comments

Comments
 (0)