'''simple docstring'''






from __future__ import annotations

from typing import Dict

from ...configuration_utils import PretrainedConfig


a_					:    List[Any]          =    {
    "susnato/ernie-m-base_pytorch": "https://huggingface.co/susnato/ernie-m-base_pytorch/blob/main/config.json",
    "susnato/ernie-m-large_pytorch": "https://huggingface.co/susnato/ernie-m-large_pytorch/blob/main/config.json",
}




class  a     (     _SCREAMING_SNAKE_CASE       ):
 _lowerCAmelCase 					=	"""ernie_m"""
 _lowerCAmelCase 					=	{"""dropout""": """classifier_dropout""", """num_classes""": """num_labels"""}
 def __init__( self      ,				__magic_name__ = 25_00_02      ,				__magic_name__ = 7_68      ,				__magic_name__ = 12      ,				__magic_name__ = 12      ,				__magic_name__ = 30_72      ,				__magic_name__ = "gelu"      ,				__magic_name__ = 0.1      ,				__magic_name__ = 0.1      ,				__magic_name__ = 5_14      ,				__magic_name__ = 0.0_2      ,				__magic_name__ = 1      ,				__magic_name__ = 1e-05      ,				__magic_name__=None      ,				__magic_name__=False      ,				__magic_name__=0.0      ,				**__magic_name__      ,				)					->							Dict:
      super().__init__(pad_token_id=__magic_name__      ,				**__magic_name__						)
      _a			      =							vocab_size
      _a			      =							hidden_size
      _a			      =							num_hidden_layers
      _a			      =							num_attention_heads
      _a			      =							intermediate_size
      _a			      =							hidden_act
      _a			      =							hidden_dropout_prob
      _a			      =							attention_probs_dropout_prob
      _a			      =							max_position_embeddings
      _a			      =							initializer_range
      _a			      =							layer_norm_eps
      _a			      =							classifier_dropout
      _a			      =							is_decoder
      _a			      =							act_dropout





'''simple docstring'''






import warnings

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


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




class  a     (     _SCREAMING_SNAKE_CASE       ):
 def __init__( self      ,				*__magic_name__      ,				**__magic_name__						)					->							None:
      warnings.warn(
          'The class DonutFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
          ' use DonutImageProcessor instead.'      ,				__magic_name__      ,				)
      super().__init__(*__magic_name__      ,				**__magic_name__						)

