





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


snake_case 				=       logging.get_logger(__name__)

# TODO: upload to AWS
snake_case 				=       {
    """yjernite/retribert-base-uncased""": (
        """https://huggingface.co/yjernite/retribert-base-uncased/resolve/main/config.json"""
    ),
}





class 				A_				(      UpperCAmelCase	):







       """simple docstring"""





       SCREAMING_SNAKE_CASE_      : Optional[int]      =  '''retribert'''







       def __init__(    self	:	Optional[int]						,__A	:	int=3_0522						,__A	:	List[Any]=768						,__A	:	Tuple=8						,__A	:	Any=12						,__A	:	Optional[Any]=3072						,__A	:	List[str]="gelu"						,__A	:	Any=0.1						,__A	:	Optional[Any]=0.1						,__A	:	str=512						,__A	:	Any=2						,__A	:	str=0.02						,__A	:	int=1e-12						,__A	:	Optional[Any]=True						,__A	:	int=128						,__A	:	List[str]=0						,**__A	:	Any						,)						->					str:
         super().__init__(pad_token_id=__A						,**__A  )

         _lowercase							= vocab_size
         _lowercase							= hidden_size
         _lowercase							= num_hidden_layers
         _lowercase							= num_attention_heads
         _lowercase							= hidden_act
         _lowercase							= intermediate_size
         _lowercase							= hidden_dropout_prob
         _lowercase							= attention_probs_dropout_prob
         _lowercase							= max_position_embeddings
         _lowercase							= type_vocab_size
         _lowercase							= initializer_range
         _lowercase							= layer_norm_eps
         _lowercase							= share_encoders
         _lowercase							= projection_dim






import warnings

from ...utils import logging
from .image_processing_donut import DonutImageProcessor


snake_case 				=       logging.get_logger(__name__)





class 				A_				(      UpperCAmelCase	):







       """simple docstring"""





       def __init__(    self	:	Dict						,*__A	:	Optional[int]						,**__A	:	List[Any]  )						->					None:
         warnings.warn(
             'The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
             ' use DonutImageProcessor instead.'						,__A						,)
         super().__init__(*__A						,**__A  )