


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


lowerCAmelCase	=							logging.get_logger(__name__)

lowerCAmelCase	=							{
    '''Visual-Attention-Network/van-base''': (
        '''https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'''
    ),
}


class 	_a							(      SCREAMING_SNAKE_CASE_      ):
							_lowercase     :      Any  				=			'''van'''

							def __init__(							self:     Any   ,						UpperCamelCase_:     int=224   ,						UpperCamelCase_:     Union[str, Any]=3   ,						UpperCamelCase_:     Union[str, Any]=[7, 3, 3, 3]   ,						UpperCamelCase_:     Any=[4, 2, 2, 2]   ,						UpperCamelCase_:     Union[str, Any]=[64, 128, 320, 512]   ,						UpperCamelCase_:     List[str]=[3, 3, 12, 3]   ,						UpperCamelCase_:     Optional[int]=[8, 8, 4, 4]   ,						UpperCamelCase_:     Dict="gelu"   ,						UpperCamelCase_:     Dict=0.02   ,						UpperCamelCase_:     Union[str, Any]=1E-6   ,						UpperCamelCase_:     Union[str, Any]=1E-2   ,						UpperCamelCase_:     List[str]=0.0   ,						UpperCamelCase_:     Optional[Any]=0.0   ,						**UpperCamelCase_:     List[str]   ,						)      ->       str:





									"""simple docstring"""







									super().__init__(**__a							)
									lowercase__						=				image_size
									lowercase__						=				num_channels
									lowercase__						=				patch_sizes
									lowercase__						=				strides
									lowercase__						=				hidden_sizes
									lowercase__						=				depths
									lowercase__						=				mlp_ratios
									lowercase__						=				hidden_act
									lowercase__						=				initializer_range
									lowercase__						=				layer_norm_eps
									lowercase__						=				layer_scale_init_value
									lowercase__						=				drop_path_rate
									lowercase__						=				dropout_rate






import logging

from transformers import PretrainedConfig


lowerCAmelCase	=							logging.getLogger(__name__)


lowerCAmelCase	=							{
    'bertabs-finetuned-cnndm': 'https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json',
}


class 	_a							(      UpperCamelCase__      ):
							_lowercase     :      List[Any]  				=			'''bertabs'''

							def __init__(							self:     List[str]   ,						UpperCamelCase_:     Dict=30_522   ,						UpperCamelCase_:     Union[str, Any]=512   ,						UpperCamelCase_:     Optional[int]=6   ,						UpperCamelCase_:     int=512   ,						UpperCamelCase_:     Optional[int]=8   ,						UpperCamelCase_:     List[Any]=512   ,						UpperCamelCase_:     Tuple=0.2   ,						UpperCamelCase_:     List[Any]=6   ,						UpperCamelCase_:     Tuple=768   ,						UpperCamelCase_:     List[Any]=8   ,						UpperCamelCase_:     Union[str, Any]=2_048   ,						UpperCamelCase_:     str=0.2   ,						**UpperCamelCase_:     Any   ,						)      ->       List[str]:





									"""simple docstring"""







									super().__init__(**UpperCamelCase_							)

									lowercase__						=				vocab_size
									lowercase__						=				max_pos

									lowercase__						=				enc_layers
									lowercase__						=				enc_hidden_size
									lowercase__						=				enc_heads
									lowercase__						=				enc_ff_size
									lowercase__						=				enc_dropout

									lowercase__						=				dec_layers
									lowercase__						=				dec_hidden_size
									lowercase__						=				dec_heads
									lowercase__						=				dec_ff_size
									lowercase__						=				dec_dropout


