






from collections import OrderedDict
from typing import Mapping

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


A_						:						Union[str, Any]						      =					logging.get_logger(__name__)

A_						:						int						      =					{
    'xlm-mlm-en-2048': 'https://huggingface.co/xlm-mlm-en-2048/resolve/main/config.json',
    'xlm-mlm-ende-1024': 'https://huggingface.co/xlm-mlm-ende-1024/resolve/main/config.json',
    'xlm-mlm-enfr-1024': 'https://huggingface.co/xlm-mlm-enfr-1024/resolve/main/config.json',
    'xlm-mlm-enro-1024': 'https://huggingface.co/xlm-mlm-enro-1024/resolve/main/config.json',
    'xlm-mlm-tlm-xnli15-1024': 'https://huggingface.co/xlm-mlm-tlm-xnli15-1024/resolve/main/config.json',
    'xlm-mlm-xnli15-1024': 'https://huggingface.co/xlm-mlm-xnli15-1024/resolve/main/config.json',
    'xlm-clm-enfr-1024': 'https://huggingface.co/xlm-clm-enfr-1024/resolve/main/config.json',
    'xlm-clm-ende-1024': 'https://huggingface.co/xlm-clm-ende-1024/resolve/main/config.json',
    'xlm-mlm-17-1280': 'https://huggingface.co/xlm-mlm-17-1280/resolve/main/config.json',
    'xlm-mlm-100-1280': 'https://huggingface.co/xlm-mlm-100-1280/resolve/main/config.json',
}




class 							_lowerCAmelCase(			UpperCAmelCase_   ):





       """simple docstring"""







       a							:						int										='''xlm'''
       a							:						str										={
           '''hidden_size''': '''emb_dim''',
           '''num_attention_heads''': '''n_heads''',
           '''num_hidden_layers''': '''n_layers''',
           '''n_words''': '''vocab_size''',  # For backward compatibility
       }





       def __init__(   self    ,     _lowerCamelCase=3_0_1_4_5    ,     _lowerCamelCase=2_0_4_8    ,     _lowerCamelCase=1_2    ,     _lowerCamelCase=1_6    ,     _lowerCamelCase=0.1    ,     _lowerCamelCase=0.1    ,     _lowerCamelCase=True    ,     _lowerCamelCase=False    ,     _lowerCamelCase=False    ,     _lowerCamelCase=False    ,     _lowerCamelCase=1    ,     _lowerCamelCase=True    ,     _lowerCamelCase=5_1_2    ,     _lowerCamelCase=2_0_4_8**-0.5    ,     _lowerCamelCase=1e-12    ,     _lowerCamelCase=0.0_2    ,     _lowerCamelCase=0    ,     _lowerCamelCase=1    ,     _lowerCamelCase=2    ,     _lowerCamelCase=3    ,     _lowerCamelCase=5    ,     _lowerCamelCase=True    ,     _lowerCamelCase="first"    ,     _lowerCamelCase=True    ,     _lowerCamelCase=None    ,     _lowerCamelCase=True    ,     _lowerCamelCase=0.1    ,     _lowerCamelCase=5    ,     _lowerCamelCase=5    ,     _lowerCamelCase=0    ,     _lowerCamelCase=0    ,     _lowerCamelCase=2    ,     _lowerCamelCase=0    ,     **_lowerCamelCase    ,     ):
         UpperCamelCase_:   Any        =							vocab_size
         UpperCamelCase_:   Any        =							emb_dim
         UpperCamelCase_:   Optional[int]        =							n_layers
         UpperCamelCase_:   int        =							n_heads
         UpperCamelCase_:   Optional[int]        =							dropout
         UpperCamelCase_:   Tuple        =							attention_dropout
         UpperCamelCase_:   List[Any]        =							gelu_activation
         UpperCamelCase_:   Optional[int]        =							sinusoidal_embeddings
         UpperCamelCase_:   Any        =							causal
         UpperCamelCase_:   Tuple        =							asm
         UpperCamelCase_:   Optional[Any]        =							n_langs
         UpperCamelCase_:   int        =							use_lang_emb
         UpperCamelCase_:   Optional[Any]        =							layer_norm_eps
         UpperCamelCase_:   Any        =							bos_index
         UpperCamelCase_:   Any        =							eos_index
         UpperCamelCase_:   Optional[int]        =							pad_index
         UpperCamelCase_:   List[str]        =							unk_index
         UpperCamelCase_:   Optional[Any]        =							mask_index
         UpperCamelCase_:   Optional[int]        =							is_encoder
         UpperCamelCase_:   Any        =							max_position_embeddings
         UpperCamelCase_:   List[Any]        =							embed_init_std
         UpperCamelCase_:   Union[str, Any]        =							init_std
         UpperCamelCase_:   Dict        =							summary_type
         UpperCamelCase_:   Optional[int]        =							summary_use_proj
         UpperCamelCase_:   Dict        =							summary_activation
         UpperCamelCase_:   Dict        =							summary_proj_to_labels
         UpperCamelCase_:   List[Any]        =							summary_first_dropout
         UpperCamelCase_:   Dict        =							start_n_top
         UpperCamelCase_:   Optional[Any]        =							end_n_top
         UpperCamelCase_:   List[Any]        =							mask_token_id
         UpperCamelCase_:   Optional[int]        =							lang_id

         if "n_words" in kwargs:
           UpperCamelCase_:   str        =							kwargs['n_words']

         super().__init__(pad_token_id=_lowerCamelCase    ,     bos_token_id=_lowerCamelCase    ,     **_lowerCamelCase				)







class 							_lowerCAmelCase(			UpperCAmelCase_   ):





       """simple docstring"""







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


import warnings

from ...utils import logging
from .image_processing_yolos import YolosImageProcessor


UpperCamelCase__		 =     logging.get_logger(__name__)

class     __snake_case    (				snake_case__  ):
       """simple docstring"""







       def __init__(		self      , *_UpperCamelCase      , **_UpperCamelCase   )      ->							None:






              """simple docstring"""


              warnings.warn(
                  """The class YolosFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
                  """ use YolosImageProcessor instead."""      , _UpperCamelCase      , )
              super().__init__(*_UpperCamelCase      , **_UpperCamelCase   )

