


'''simple docstring'''







from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_SCREAMING_SNAKE_CASE							: List[Any]										=			logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE							: Tuple										=			{
    '''facebook/data2vec-text-base''': '''https://huggingface.co/data2vec/resolve/main/config.json''',
}






class 		_snake_case     (					snake_case_		):






						'''simple docstring'''







						__snake_case				=   '''data2vec-text'''







						def __init__(	self:						Tuple   ,				__UpperCamelCase:						Union[str, Any]=3_0522   ,				__UpperCamelCase:						Optional[int]=768   ,				__UpperCamelCase:						Union[str, Any]=12   ,				__UpperCamelCase:						Dict=12   ,				__UpperCamelCase:						str=3072   ,				__UpperCamelCase:						str="gelu"   ,				__UpperCamelCase:						Dict=0.1   ,				__UpperCamelCase:						List[str]=0.1   ,				__UpperCamelCase:						List[str]=512   ,				__UpperCamelCase:						Tuple=2   ,				__UpperCamelCase:						Optional[Any]=0.0_2   ,				__UpperCamelCase:						Dict=1E-12   ,				__UpperCamelCase:						Tuple=1   ,				__UpperCamelCase:						Dict=0   ,				__UpperCamelCase:						Tuple=2   ,				__UpperCamelCase:						Optional[int]="absolute"   ,				__UpperCamelCase:						int=True   ,				__UpperCamelCase:						Dict=None   ,				**__UpperCamelCase:						Optional[int]   ,				)				->						Optional[int]:
										super().__init__(pad_token_id=__snake_case   ,				bos_token_id=__snake_case   ,				eos_token_id=__snake_case   ,				**__snake_case  )

										__magic_name__					:       Optional[Any]    							=							vocab_size
										__magic_name__					:       List[str]    							=							hidden_size
										__magic_name__					:       Any    							=							num_hidden_layers
										__magic_name__					:       str    							=							num_attention_heads
										__magic_name__					:       List[str]    							=							hidden_act
										__magic_name__					:       Tuple    							=							intermediate_size
										__magic_name__					:       Union[str, Any]    							=							hidden_dropout_prob
										__magic_name__					:       Dict    							=							attention_probs_dropout_prob
										__magic_name__					:       List[str]    							=							max_position_embeddings
										__magic_name__					:       Optional[int]    							=							type_vocab_size
										__magic_name__					:       List[Any]    							=							initializer_range
										__magic_name__					:       int    							=							layer_norm_eps
										__magic_name__					:       Tuple    							=							position_embedding_type
										__magic_name__					:       Optional[Any]    							=							use_cache
										__magic_name__					:       Any    							=							classifier_dropout






class 		_snake_case     (					snake_case_		):






						'''simple docstring'''







						@property
						def lowerCAmelCase__			(	self:						str  )				->						Mapping[str, Mapping[int, str]]:
										if self.task == "multiple-choice":
														__magic_name__					:       List[str]    							=							{0: "batch", 1: "choice", 2: "sequence"}
										else:
														__magic_name__					:       Dict    							=							{0: "batch", 1: "sequence"}
										return OrderedDict(
										    [
										        ("input_ids", dynamic_axis),
										        ("attention_mask", dynamic_axis),
										    ]  )






'''simple docstring'''






from ..utils import DummyObject, requires_backends




class 					UpperCAmelCase	(     metaclass=snake_case_  ):
      _lowercase:     List[Any]			=  ['''torch''', '''scipy''']




      def __init__(     self     :					Tuple     ,     *__snake_case     :					Dict     ,     **__snake_case     :					List[str]    )							-> str:
            requires_backends(self     ,     ["""torch""", """scipy"""]    )




      @classmethod
      def 							lowercase__       (     cls     :					str     ,     *__snake_case     :					List[str]     ,     **__snake_case     :					str    )							-> Tuple:
            requires_backends(cls     ,     ["""torch""", """scipy"""]    )




      @classmethod
      def 							lowercase__       (     cls     :					Optional[int]     ,     *__snake_case     :					int     ,     **__snake_case     :					Union[str, Any]    )							-> Optional[int]:
            requires_backends(cls     ,     ["""torch""", """scipy"""]    )






