@@ -516,7 +516,7 @@ def __init__(
516516
517517 # Give a warning if the values exist in both `_text_config_dict` and `text_config` but being different.
518518 for key , value in _text_config_dict .items ():
519- if key in text_config and value != text_config [key ] and key not in [ "transformers_version" ] :
519+ if key in text_config and value != text_config [key ] and key != "transformers_version" :
520520 # If specified in `text_config_dict`
521521 if key in text_config_dict :
522522 message = (
@@ -548,7 +548,7 @@ def __init__(
548548
549549 # Give a warning if the values exist in both `_image_config_dict` and `image_config` but being different.
550550 for key , value in _image_config_dict .items ():
551- if key in image_config and value != image_config [key ] and key not in [ "transformers_version" ] :
551+ if key in image_config and value != image_config [key ] and key != "transformers_version" :
552552 # If specified in `image_config_dict`
553553 if key in image_config_dict :
554554 message = (
@@ -579,7 +579,7 @@ def __init__(
579579 if (
580580 key in multimodal_config
581581 and value != multimodal_config [key ]
582- and key not in [ "transformers_version" ]
582+ and key != "transformers_version"
583583 ):
584584 # If specified in `multimodal_config_dict`
585585 if key in multimodal_config_dict :
@@ -611,7 +611,7 @@ def __init__(
611611 if (
612612 key in image_codebook_config
613613 and value != image_codebook_config [key ]
614- and key not in [ "transformers_version" ]
614+ and key != "transformers_version"
615615 ):
616616 # If specified in `image_codebook_config_dict`
617617 if key in image_codebook_config_dict :
0 commit comments