




from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowercase_		=							logging.get_logger(__name__)

lowercase_		=							{
    '''dandelin/vilt-b32-mlm''': '''https://huggingface.co/dandelin/vilt-b32-mlm/blob/main/config.json'''
}





class 		A__    (       __SCREAMING_SNAKE_CASE			):
	lowerCamelCase__		:			List[Any]       ="vilt"






	def __init__(     self    ,					lowerCamelCase=30522    ,					lowerCamelCase=2    ,					lowerCamelCase=2    ,					lowerCamelCase=40    ,					lowerCamelCase=768    ,					lowerCamelCase=12    ,					lowerCamelCase=12    ,					lowerCamelCase=3072    ,					lowerCamelCase="gelu"    ,					lowerCamelCase=0.0    ,					lowerCamelCase=0.0    ,					lowerCamelCase=0.0_2    ,					lowerCamelCase=1e-12    ,					lowerCamelCase=384    ,					lowerCamelCase=32    ,					lowerCamelCase=3    ,					lowerCamelCase=True    ,					lowerCamelCase=-1    ,					lowerCamelCase=False    ,					lowerCamelCase=-1    ,					**lowerCamelCase    ,					)				->       Union[str, Any]:




						"""simple docstring"""






						super().__init__(tie_word_embeddings=lowerCamelCase    ,					**lowerCamelCase						)

						__magic_name__ :							str		       =							vocab_size
						__magic_name__ :							Any		       =							type_vocab_size
						__magic_name__ :							Union[str, Any]		       =							modality_type_vocab_size
						__magic_name__ :							List[Any]		       =							max_position_embeddings

						__magic_name__ :							List[str]		       =							hidden_size
						__magic_name__ :							Union[str, Any]		       =							num_hidden_layers
						__magic_name__ :							Tuple		       =							num_attention_heads
						__magic_name__ :							Any		       =							intermediate_size
						__magic_name__ :							str		       =							hidden_act
						__magic_name__ :							str		       =							hidden_dropout_prob
						__magic_name__ :							Union[str, Any]		       =							attention_probs_dropout_prob
						__magic_name__ :							Tuple		       =							initializer_range
						__magic_name__ :							str		       =							layer_norm_eps

						__magic_name__ :							Dict		       =							image_size
						__magic_name__ :							str		       =							patch_size
						__magic_name__ :							Dict		       =							num_channels
						__magic_name__ :							Optional[int]		       =							qkv_bias
						__magic_name__ :							List[str]		       =							max_image_length
						__magic_name__ :							List[str]		       =							num_images









from ..utils import requires_backends


lowercase_		=							None





class 		A__    :






	def __init__(     self    ,					*lowerCamelCase    ,					**lowerCamelCase						)				->       Optional[Any]:




						"""simple docstring"""






						requires_backends(self    ,					['''detectron2''']						)






	@classmethod
	def 			lowercase				(     cls    ,					*lowerCamelCase    ,					**lowerCamelCase						)				->       List[Any]:




						"""simple docstring"""






						requires_backends(cls    ,					['''detectron2''']						)



