



'''simple docstring'''






from __future__ import annotations

from typing import Dict

from ...configuration_utils import PretrainedConfig


lowerCAmelCase:      int		 =		{
    '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__(      lowerCamelCase__			):
				lowercase__				=					"""ernie_m"""
				lowercase__				=					{"""dropout""": """classifier_dropout""", """num_classes""": """num_labels"""}







				def __init__(   self				:						Optional[int]		,    __snake_case				:						int = 25_00_02		,    __snake_case				:						int = 7_68		,    __snake_case				:						int = 12		,    __snake_case				:						int = 12		,    __snake_case				:						int = 30_72		,    __snake_case				:						str = "gelu"		,    __snake_case				:						float = 0.1		,    __snake_case				:						float = 0.1		,    __snake_case				:						int = 5_14		,    __snake_case				:						float = 0.02		,    __snake_case				:						int = 1		,    __snake_case				:						float = 1e-0_5		,    __snake_case				:						List[Any]=None		,    __snake_case				:						Tuple=False		,    __snake_case				:						str=0.0		,    **__snake_case				:						Any		,    ):
						super().__init__(pad_token_id=__snake_case		,    **__snake_case			)
						a		:      int       =  vocab_size
						a		:      Union[str, Any]       =  hidden_size
						a		:      Union[str, Any]       =  num_hidden_layers
						a		:      str       =  num_attention_heads
						a		:      Any       =  intermediate_size
						a		:      int       =  hidden_act
						a		:      Optional[Any]       =  hidden_dropout_prob
						a		:      Optional[int]       =  attention_probs_dropout_prob
						a		:      Optional[int]       =  max_position_embeddings
						a		:      Union[str, Any]       =  initializer_range
						a		:      Optional[int]       =  layer_norm_eps
						a		:      List[str]       =  classifier_dropout
						a		:      Dict       =  is_decoder
						a		:      Any       =  act_dropout




'''simple docstring'''






from ..utils import DummyObject, requires_backends

class 							a__(      metaclass=lowerCamelCase__			):
    lowercase__				=					["""torch""", """torchsde"""]







    def __init__(   self				:						Any		,    *__snake_case				:						List[str]		,    **__snake_case				:						Tuple			):
      requires_backends(self		,    ['torch', 'torchsde']			)







    @classmethod
    def     lowercase_ (   cls				:						List[Any]		,    *__snake_case				:						str		,    **__snake_case				:						List[Any]			):
      requires_backends(cls		,    ['torch', 'torchsde']			)







    @classmethod
    def     lowercase_ (   cls				:						Dict		,    *__snake_case				:						Optional[Any]		,    **__snake_case				:						str			):
      requires_backends(cls		,    ['torch', 'torchsde']			)