@@ -1158,7 +1158,7 @@ def patch_model_for_export(
1158
1158
library_name = "transformers" ,
1159
1159
)
1160
1160
class Gemma3TextOpenVINOConfig (Gemma2OpenVINOConfig ):
1161
- MIN_TRANSFORMERS_VERSION = version .parse ("4.49 .0" )
1161
+ MIN_TRANSFORMERS_VERSION = version .parse ("4.50 .0" )
1162
1162
1163
1163
1164
1164
class DeciDummyPastKeyValuesGenerator (DummyPastKeyValuesGenerator ):
@@ -3029,8 +3029,8 @@ def patch_model_for_export(
3029
3029
3030
3030
3031
3031
@register_in_tasks_manager ("gemma3" , * ["image-text-to-text" ], library_name = "transformers" )
3032
- class Gemma3OpneVINOConfig (LlavaOpenVINOConfig ):
3033
- MIN_TRANSFORMERS_VERSION = "4.49 .0"
3032
+ class Gemma3OpenVINOConfig (LlavaOpenVINOConfig ):
3033
+ MIN_TRANSFORMERS_VERSION = "4.50 .0"
3034
3034
3035
3035
def patch_model_for_export (
3036
3036
self , model : Union ["PreTrainedModel" , "TFPreTrainedModel" ], model_kwargs : Optional [Dict [str , Any ]] = None
@@ -3062,6 +3062,6 @@ def with_behavior(
3062
3062
self .int_dtype ,
3063
3063
self .float_dtype ,
3064
3064
model_patcher = Gemma3LMModelPatcher ,
3065
- inputs_update = {"token_type_ids" : {0 : "batch_size" , 1 : "past_sequence_length + 1 " }},
3065
+ inputs_update = {"token_type_ids" : {0 : "batch_size" , 1 : "sequence_length " }},
3066
3066
)
3067
3067
return super ().with_behavior (behavior )
0 commit comments