





def      _A       (		SCREAMING_SNAKE_CASE     :   int       ,       SCREAMING_SNAKE_CASE     :   int						):





  """simple docstring"""



  while a != 0:
    a__					,							a__	:					Optional[Any]										=b % a, a
  return b





def      _A       (		SCREAMING_SNAKE_CASE     :   int       ,       SCREAMING_SNAKE_CASE     :   int						):





  """simple docstring"""



  if gcd(SCREAMING_SNAKE_CASE       ,       SCREAMING_SNAKE_CASE						) != 1:
    a__	:					Optional[Any]										=f'''mod inverse of {a!r} and {m!r} does not exist'''
    raise ValueError(SCREAMING_SNAKE_CASE						)
  a__					,							a__					,							a__	:					Dict										=1, 0, a
  a__					,							a__					,							a__	:					List[Any]										=0, 1, m
  while va != 0:
    a__	:					str										=ua // va
    a__					,							a__					,							a__					,							a__					,							a__					,							a__	:					Dict										=(ua - q * va), (ua - q * va), (ua - q * va), va, va, va
  return ua % m










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


_UpperCAmelCase	:     Optional[Any]   =logging.get_logger(__name__)

_UpperCAmelCase	:     str   ={
    """facebook/vit-mae-base""": """https://huggingface.co/facebook/vit-mae-base/resolve/main/config.json""",
    # See all ViT MAE models at https://huggingface.co/models?filter=vit-mae
}







class  snake_case__(							UpperCAmelCase__							):







						'''simple docstring'''




						SCREAMING_SNAKE_CASE__					:     Optional[Any]    =							"""vit_mae"""




						def __init__( self      ,  __lowercase=7_6_8      ,  __lowercase=1_2      ,  __lowercase=1_2      ,  __lowercase=3_0_7_2      ,  __lowercase="gelu"      ,  __lowercase=0.0      ,  __lowercase=0.0      ,  __lowercase=0.02      ,  __lowercase=1e-12      ,  __lowercase=2_2_4      ,  __lowercase=1_6      ,  __lowercase=3      ,  __lowercase=True      ,  __lowercase=1_6      ,  __lowercase=5_1_2      ,  __lowercase=8      ,  __lowercase=2_0_4_8      ,  __lowercase=0.75      ,  __lowercase=False      ,  **__lowercase      ,  )    ->			str:
										super().__init__(**__lowercase							)

										lowerCAmelCase_       :					Dict			 = hidden_size
										lowerCAmelCase_       :					Any			 = num_hidden_layers
										lowerCAmelCase_       :					Any			 = num_attention_heads
										lowerCAmelCase_       :					int			 = intermediate_size
										lowerCAmelCase_       :					Dict			 = hidden_act
										lowerCAmelCase_       :					int			 = hidden_dropout_prob
										lowerCAmelCase_       :					str			 = attention_probs_dropout_prob
										lowerCAmelCase_       :					List[str]			 = initializer_range
										lowerCAmelCase_       :					Dict			 = layer_norm_eps
										lowerCAmelCase_       :					Union[str, Any]			 = image_size
										lowerCAmelCase_       :					Optional[int]			 = patch_size
										lowerCAmelCase_       :					Tuple			 = num_channels
										lowerCAmelCase_       :					List[str]			 = qkv_bias
										lowerCAmelCase_       :					List[Any]			 = decoder_num_attention_heads
										lowerCAmelCase_       :					int			 = decoder_hidden_size
										lowerCAmelCase_       :					Optional[int]			 = decoder_num_hidden_layers
										lowerCAmelCase_       :					Tuple			 = decoder_intermediate_size
										lowerCAmelCase_       :					Tuple			 = mask_ratio
										lowerCAmelCase_       :					Any			 = norm_pix_loss