

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


__UpperCAmelCase     					=  logging.get_logger(__name__)

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





class A__     (			A			):



 """simple docstring"""







 _lowercase  :       int  			=    '''vilt'''

 def __init__(		self			:						str  ,    A_			:						Dict=3_0_5_2_2  ,    A_			:						Optional[Any]=2  ,    A_			:						List[Any]=2  ,    A_			:						Optional[int]=4_0  ,    A_			:						int=7_6_8  ,    A_			:						Optional[int]=1_2  ,    A_			:						Tuple=1_2  ,    A_			:						Union[str, Any]=3_0_7_2  ,    A_			:						int="gelu"  ,    A_			:						Optional[Any]=0.0  ,    A_			:						int=0.0  ,    A_			:						List[str]=0.02  ,    A_			:						Optional[int]=1E-12  ,    A_			:						str=3_8_4  ,    A_			:						Union[str, Any]=3_2  ,    A_			:						Optional[Any]=3  ,    A_			:						List[str]=True  ,    A_			:						Dict=-1  ,    A_			:						List[Any]=False  ,    A_			:						int=-1  ,    **A_			:						Optional[int]  ,    ):






      '''simple docstring'''




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

      _lowerCAmelCase :       List[Any]	   =     vocab_size
      _lowerCAmelCase :       str	   =     type_vocab_size
      _lowerCAmelCase :       Optional[int]	   =     modality_type_vocab_size
      _lowerCAmelCase :       Tuple	   =     max_position_embeddings

      _lowerCAmelCase :       Any	   =     hidden_size
      _lowerCAmelCase :       Union[str, Any]	   =     num_hidden_layers
      _lowerCAmelCase :       str	   =     num_attention_heads
      _lowerCAmelCase :       Dict	   =     intermediate_size
      _lowerCAmelCase :       Optional[Any]	   =     hidden_act
      _lowerCAmelCase :       Dict	   =     hidden_dropout_prob
      _lowerCAmelCase :       Any	   =     attention_probs_dropout_prob
      _lowerCAmelCase :       Tuple	   =     initializer_range
      _lowerCAmelCase :       Tuple	   =     layer_norm_eps

      _lowerCAmelCase :       Union[str, Any]	   =     image_size
      _lowerCAmelCase :       Optional[int]	   =     patch_size
      _lowerCAmelCase :       Dict	   =     num_channels
      _lowerCAmelCase :       Dict	   =     qkv_bias
      _lowerCAmelCase :       Tuple	   =     max_image_length
      _lowerCAmelCase :       Union[str, Any]	   =     num_images









import unittest
from timeit import timeit







def 						_snake_case		(     SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE					)							->   int:

     """simple docstring"""







     _lowerCAmelCase :       List[str]	   =     first_num if first_num >= second_num else second_num
     _lowerCAmelCase :       List[str]	   =     max_num
     while (common_mult % first_num > 0) or (common_mult % second_num > 0):
          common_mult += max_num
     return common_mult







def 						_snake_case		(     SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE					)							->   int:

     """simple docstring"""







     return b if a == 0 else greatest_common_divisor(b % a		,				SCREAMING_SNAKE_CASE					)







def 						_snake_case		(     SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE					)							->   int:

     """simple docstring"""







     return first_num // greatest_common_divisor(SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE					) * second_num







def 						_snake_case		(     )							->   str:

     """simple docstring"""







     _lowerCAmelCase :       List[Any]	   =     (
         "from __main__ import least_common_multiple_slow, least_common_multiple_fast"
     )
     print(
         "least_common_multiple_slow():"		,				timeit("least_common_multiple_slow(1000, 999)"		,				setup=SCREAMING_SNAKE_CASE					)		,				)
     print(
         "least_common_multiple_fast():"		,				timeit("least_common_multiple_fast(1000, 999)"		,				setup=SCREAMING_SNAKE_CASE					)		,				)





class A__     (			unittest.TestCase			):



 """simple docstring"""







 _lowercase  :       Union[str, Any]  			=    (
     (10, 20),
     (13, 15),
     (4, 31),
     (10, 42),
     (43, 34),
     (5, 12),
     (12, 25),
     (10, 25),
     (6, 9),
 )
 _lowercase  :       Dict  			=    (20, 195, 124, 210, 1_462, 60, 300, 50, 18)

 def  __magic_name__							(		self			:						int							):






      '''simple docstring'''




      for i, (first_num, second_num) in enumerate(self.test_inputs							):
           _lowerCAmelCase :       Optional[int]	   =     least_common_multiple_slow(A_  ,    A_							)
           _lowerCAmelCase :       Optional[int]	   =     least_common_multiple_fast(A_  ,    A_							)
           with self.subTest(i=A_							):
                self.assertEqual(A_  ,    self.expected_results[i]							)
                self.assertEqual(A_  ,    self.expected_results[i]							)


if __name__ == "__main__":
  benchmark()
  unittest.main()






