






from collections import OrderedDict
from typing import Mapping

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


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

__a:     Optional[Any]   					=					{
    '''camembert-base''': '''https://huggingface.co/camembert-base/resolve/main/config.json''',
    '''umberto-commoncrawl-cased-v1''': (
        '''https://huggingface.co/Musixmatch/umberto-commoncrawl-cased-v1/resolve/main/config.json'''
    ),
    '''umberto-wikipedia-uncased-v1''': (
        '''https://huggingface.co/Musixmatch/umberto-wikipedia-uncased-v1/resolve/main/config.json'''
    ),
}
class 		SCREAMING_SNAKE_CASE__	(  UpperCAmelCase     ):

  '''simple docstring'''







  _lowerCamelCase    =  '''camembert'''


  def __init__(      self		:			Optional[int]       ,				lowerCamelCase		:			List[str]=3_0522       ,				lowerCamelCase		:			Dict=768       ,				lowerCamelCase		:			Optional[int]=12       ,				lowerCamelCase		:			List[Any]=12       ,				lowerCamelCase		:			List[Any]=3072       ,				lowerCamelCase		:			List[Any]="gelu"       ,				lowerCamelCase		:			List[Any]=0.1       ,				lowerCamelCase		:			Dict=0.1       ,				lowerCamelCase		:			Optional[int]=512       ,				lowerCamelCase		:			int=2       ,				lowerCamelCase		:			Any=0.02       ,				lowerCamelCase		:			List[Any]=1E-12       ,				lowerCamelCase		:			int=1       ,				lowerCamelCase		:			Dict=0       ,				lowerCamelCase		:			Union[str, Any]=2       ,				lowerCamelCase		:			str="absolute"       ,				lowerCamelCase		:			Union[str, Any]=True       ,				lowerCamelCase		:			Optional[Any]=None       ,				**lowerCamelCase		:			Union[str, Any]       ,				)						->	Optional[Any]:


         """simple docstring"""
         super().__init__(pad_token_id=lowerCamelCase       ,				bos_token_id=lowerCamelCase       ,				eos_token_id=lowerCamelCase       ,				**lowerCamelCase							)

         _UpperCAmelCase							=    vocab_size
         _UpperCAmelCase							=    hidden_size
         _UpperCAmelCase							=    num_hidden_layers
         _UpperCAmelCase							=    num_attention_heads
         _UpperCAmelCase							=    hidden_act
         _UpperCAmelCase							=    intermediate_size
         _UpperCAmelCase							=    hidden_dropout_prob
         _UpperCAmelCase							=    attention_probs_dropout_prob
         _UpperCAmelCase							=    max_position_embeddings
         _UpperCAmelCase							=    type_vocab_size
         _UpperCAmelCase							=    initializer_range
         _UpperCAmelCase							=    layer_norm_eps
         _UpperCAmelCase							=    position_embedding_type
         _UpperCAmelCase							=    use_cache
         _UpperCAmelCase							=    classifier_dropout



class 		SCREAMING_SNAKE_CASE__	(  UpperCAmelCase     ):

  '''simple docstring'''







  @property
  def  lowerCamelCase       (      self		:			List[Any]							)						->	Mapping[str, Mapping[int, str]]:


         """simple docstring"""
         if self.task == "multiple-choice":
                _UpperCAmelCase							=    {0: """batch""", 1: """choice""", 2: """sequence"""}
         else:
                _UpperCAmelCase							=    {0: """batch""", 1: """sequence"""}
         return OrderedDict(
             [
                 ("""input_ids""", dynamic_axis),
                 ("""attention_mask""", dynamic_axis),
             ]							)







__a:     List[Any]   					=					{
    '''Pillow''': '''Pillow''',
    '''accelerate''': '''accelerate>=0.11.0''',
    '''compel''': '''compel==0.1.8''',
    '''black''': '''black~=23.1''',
    '''datasets''': '''datasets''',
    '''filelock''': '''filelock''',
    '''flax''': '''flax>=0.4.1''',
    '''hf-doc-builder''': '''hf-doc-builder>=0.3.0''',
    '''huggingface-hub''': '''huggingface-hub>=0.13.2''',
    '''requests-mock''': '''requests-mock==1.10.0''',
    '''importlib_metadata''': '''importlib_metadata''',
    '''invisible-watermark''': '''invisible-watermark''',
    '''isort''': '''isort>=5.5.4''',
    '''jax''': '''jax>=0.2.8,!=0.3.2''',
    '''jaxlib''': '''jaxlib>=0.1.65''',
    '''Jinja2''': '''Jinja2''',
    '''k-diffusion''': '''k-diffusion>=0.0.12''',
    '''torchsde''': '''torchsde''',
    '''note_seq''': '''note_seq''',
    '''librosa''': '''librosa''',
    '''numpy''': '''numpy''',
    '''omegaconf''': '''omegaconf''',
    '''parameterized''': '''parameterized''',
    '''protobuf''': '''protobuf>=3.20.3,<4''',
    '''pytest''': '''pytest''',
    '''pytest-timeout''': '''pytest-timeout''',
    '''pytest-xdist''': '''pytest-xdist''',
    '''ruff''': '''ruff>=0.0.241''',
    '''safetensors''': '''safetensors''',
    '''sentencepiece''': '''sentencepiece>=0.1.91,!=0.1.92''',
    '''scipy''': '''scipy''',
    '''onnx''': '''onnx''',
    '''regex''': '''regex!=2019.12.17''',
    '''requests''': '''requests''',
    '''tensorboard''': '''tensorboard''',
    '''torch''': '''torch>=1.4''',
    '''torchvision''': '''torchvision''',
    '''transformers''': '''transformers>=4.25.1''',
    '''urllib3''': '''urllib3<=2.0.0''',
}