
from collections import OrderedDict
from typing import Mapping

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


lowerCamelCase__	=							logging.get_logger(__name__)

lowerCamelCase__	=							{
    "facebook/xlm-roberta-xl": "https://huggingface.co/facebook/xlm-roberta-xl/resolve/main/config.json",
    "facebook/xlm-roberta-xxl": "https://huggingface.co/facebook/xlm-roberta-xxl/resolve/main/config.json",
    # See all XLM-RoBERTa-XL models at https://huggingface.co/models?filter=xlm-roberta-xl
}







class        lowerCAmelCase__      (   __lowercase	):
						UpperCamelCase_							: Optional[int]	=		"xlm-roberta-xl"

						def __init__(			self       ,							a=25_08_80       ,							a=25_60       ,							a=36       ,							a=32       ,							a=1_02_40       ,							a="gelu"       ,							a=0.1       ,							a=0.1       ,							a=5_14       ,							a=1       ,							a=0.02       ,							a=1e-05       ,							a=1       ,							a=0       ,							a=2       ,							a="absolute"       ,							a=True       ,							a=None       ,							**a       ,							)					->      Any:


								'''simple docstring'''

								super().__init__(pad_token_id=_UpperCAmelCase       ,							bos_token_id=_UpperCAmelCase       ,							eos_token_id=_UpperCAmelCase       ,							**_UpperCAmelCase				)
								_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        lowerCAmelCase__      (   __lowercase	):

						@property
						def  A_				(			self				)					->      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),
								    ]				)





lowerCamelCase__	=							[
    "DownloadConfig",
    "DownloadManager",
    "DownloadMode",
    "StreamingDownloadManager",
]

from .download_config import DownloadConfig
from .download_manager import DownloadManager, DownloadMode
from .streaming_download_manager import StreamingDownloadManager



