"""simple docstring"""
from ..utils import DummyObject, requires_backends




class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Dict:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Tuple:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Optional[Any]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			int:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Dict:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			List[str]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Tuple:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			str:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			str:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Tuple:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			List[str]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			int:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			int:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Optional[int]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Dict:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			List[str]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			str:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Optional[int]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			int:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Union[str, Any]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Any:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Dict:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Optional[Any]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			str:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Optional[int]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Optional[int]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Union[str, Any]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Dict:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			Tuple:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			List[str]:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])







class    __snake_case       (     metaclass=__lowerCAmelCase				):
      a__        =		["""sentencepiece"""]



      def __init__(						self    ,			*lowercase    ,			**lowercase)	->			str:





        '''simple docstring'''





        requires_backends(self    ,			['sentencepiece'])



"""simple docstring"""
from collections import OrderedDict
from typing import Mapping

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


lowercase__					       =	logging.get_logger(__name__)

lowercase__					       =	{
    'andreasmadsen/efficient_mlm_m0.40': (
        'https://huggingface.co/andreasmadsen/efficient_mlm_m0.40/resolve/main/config.json'
    ),
}




class    __snake_case       (     __lowerCAmelCase				):
      a__        =		"""roberta-prelayernorm"""



      def __init__(						self    ,			lowercase=5_02_65    ,			lowercase=7_68    ,			lowercase=12    ,			lowercase=12    ,			lowercase=30_72    ,			lowercase="gelu"    ,			lowercase=0.1    ,			lowercase=0.1    ,			lowercase=5_12    ,			lowercase=2    ,			lowercase=0.02    ,			lowercase=1e-12    ,			lowercase=1    ,			lowercase=0    ,			lowercase=2    ,			lowercase="absolute"    ,			lowercase=True    ,			lowercase=None    ,			**lowercase    ,			)	->			Any:





        '''simple docstring'''





        super().__init__(pad_token_id=lowercase    ,			bos_token_id=lowercase    ,			eos_token_id=lowercase    ,			**lowercase)

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







class    __snake_case       (     __lowerCAmelCase				):



      @property
      def   lowerCamelCase_   (						self)	->			Mapping[str, Mapping[int, str]]:





        '''simple docstring'''





        if self.task == "multiple-choice":
          a__:     str										=	{0: 'batch', 1: 'choice', 2: 'sequence'}
        else:
          a__:     Union[str, Any]										=	{0: 'batch', 1: 'sequence'}
        return OrderedDict(
            [
                ('input_ids', dynamic_axis),
                ('attention_mask', dynamic_axis),
            ])


