
"""simple docstring"""






from collections import OrderedDict
from typing import Mapping

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


UpperCAmelCase        =				logging.get_logger(__name__)

UpperCAmelCase        =				{
    """xlm-roberta-base""": """https://huggingface.co/xlm-roberta-base/resolve/main/config.json""",
    """xlm-roberta-large""": """https://huggingface.co/xlm-roberta-large/resolve/main/config.json""",
    """xlm-roberta-large-finetuned-conll02-dutch""": (
        """https://huggingface.co/xlm-roberta-large-finetuned-conll02-dutch/resolve/main/config.json"""
    ),
    """xlm-roberta-large-finetuned-conll02-spanish""": (
        """https://huggingface.co/xlm-roberta-large-finetuned-conll02-spanish/resolve/main/config.json"""
    ),
    """xlm-roberta-large-finetuned-conll03-english""": (
        """https://huggingface.co/xlm-roberta-large-finetuned-conll03-english/resolve/main/config.json"""
    ),
    """xlm-roberta-large-finetuned-conll03-german""": (
        """https://huggingface.co/xlm-roberta-large-finetuned-conll03-german/resolve/main/config.json"""
    ),
}



class 			lowercase					( lowercase__		):
			lowercase        =     '''xlm-roberta'''






			def __init__(self  :	Tuple      ,SCREAMING_SNAKE_CASE_  :	Dict=30_522      ,SCREAMING_SNAKE_CASE_  :	Optional[Any]=768      ,SCREAMING_SNAKE_CASE_  :	List[str]=12      ,SCREAMING_SNAKE_CASE_  :	int=12      ,SCREAMING_SNAKE_CASE_  :	Optional[int]=3_072      ,SCREAMING_SNAKE_CASE_  :	Optional[Any]="gelu"      ,SCREAMING_SNAKE_CASE_  :	Tuple=0.1      ,SCREAMING_SNAKE_CASE_  :	Any=0.1      ,SCREAMING_SNAKE_CASE_  :	Optional[int]=512      ,SCREAMING_SNAKE_CASE_  :	Optional[Any]=2      ,SCREAMING_SNAKE_CASE_  :	str=0.02      ,SCREAMING_SNAKE_CASE_  :	Dict=1e-12      ,SCREAMING_SNAKE_CASE_  :	str=1      ,SCREAMING_SNAKE_CASE_  :	List[str]=0      ,SCREAMING_SNAKE_CASE_  :	List[str]=2      ,SCREAMING_SNAKE_CASE_  :	Union[str, Any]="absolute"      ,SCREAMING_SNAKE_CASE_  :	Union[str, Any]=True      ,SCREAMING_SNAKE_CASE_  :	Dict=None      ,**SCREAMING_SNAKE_CASE_  :	Union[str, Any]      ,)       ->	Union[str, Any]:





				"""simple docstring"""


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

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





class 			lowercase					( lowercase__		):






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





				"""simple docstring"""


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




"""simple docstring"""






import warnings

from ...utils import logging
from .image_processing_perceiver import PerceiverImageProcessor


UpperCAmelCase        =				logging.get_logger(__name__)



class 			lowercase					( lowercase__		):






			def __init__(self  :	str      ,*SCREAMING_SNAKE_CASE_  :	Any      ,**SCREAMING_SNAKE_CASE_  :	Optional[int]			)       ->	None:





				"""simple docstring"""


				warnings.warn(
				    '''The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
				    ''' Please use PerceiverImageProcessor instead.'''      ,SCREAMING_SNAKE_CASE_      ,)
				super().__init__(*SCREAMING_SNAKE_CASE_      ,**SCREAMING_SNAKE_CASE_			)


