





'''simple docstring'''






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/xmod-base""": """https://huggingface.co/facebook/xmod-base/resolve/main/config.json""",
    """facebook/xmod-large-prenorm""": """https://huggingface.co/facebook/xmod-large-prenorm/resolve/main/config.json""",
    """facebook/xmod-base-13-125k""": """https://huggingface.co/facebook/xmod-base-13-125k/resolve/main/config.json""",
    """facebook/xmod-base-30-125k""": """https://huggingface.co/facebook/xmod-base-30-125k/resolve/main/config.json""",
    """facebook/xmod-base-30-195k""": """https://huggingface.co/facebook/xmod-base-30-195k/resolve/main/config.json""",
    """facebook/xmod-base-60-125k""": """https://huggingface.co/facebook/xmod-base-60-125k/resolve/main/config.json""",
    """facebook/xmod-base-60-265k""": """https://huggingface.co/facebook/xmod-base-60-265k/resolve/main/config.json""",
    """facebook/xmod-base-75-125k""": """https://huggingface.co/facebook/xmod-base-75-125k/resolve/main/config.json""",
    """facebook/xmod-base-75-269k""": """https://huggingface.co/facebook/xmod-base-75-269k/resolve/main/config.json""",
}
class    lowerCamelCase  (      _A       ):
	snake_case_      =   "xmod"



	def __init__(   self		,      a_=30_522		,      a_=768		,      a_=12		,      a_=12		,      a_=3_072		,      a_="gelu"		,      a_=0.1		,      a_=0.1		,      a_=512		,      a_=2		,      a_=0.02		,      a_=1e-1_2		,      a_=1		,      a_=0		,      a_=2		,      a_="absolute"		,      a_=True		,      a_=None		,      a_=False		,      a_=2		,      a_=False		,      a_=True		,      a_=True		,      a_=("en_XX",)		,      a_=None		,      **a_		,      ):
			super().__init__(pad_token_id=a_		,      bos_token_id=a_		,      eos_token_id=a_		,      **a_	)

			lowerCAmelCase     :    str						=   vocab_size
			lowerCAmelCase     :    List[str]						=   hidden_size
			lowerCAmelCase     :    List[Any]						=   num_hidden_layers
			lowerCAmelCase     :    Tuple						=   num_attention_heads
			lowerCAmelCase     :    Optional[int]						=   hidden_act
			lowerCAmelCase     :    Optional[Any]						=   intermediate_size
			lowerCAmelCase     :    Optional[Any]						=   hidden_dropout_prob
			lowerCAmelCase     :    Dict						=   attention_probs_dropout_prob
			lowerCAmelCase     :    str						=   max_position_embeddings
			lowerCAmelCase     :    str						=   type_vocab_size
			lowerCAmelCase     :    Optional[Any]						=   initializer_range
			lowerCAmelCase     :    Any						=   layer_norm_eps
			lowerCAmelCase     :    List[str]						=   position_embedding_type
			lowerCAmelCase     :    Optional[int]						=   use_cache
			lowerCAmelCase     :    str						=   classifier_dropout
			lowerCAmelCase     :    Union[str, Any]						=   pre_norm
			lowerCAmelCase     :    Optional[Any]						=   adapter_reduction_factor
			lowerCAmelCase     :    Dict						=   adapter_layer_norm
			lowerCAmelCase     :    int						=   adapter_reuse_layer_norm
			lowerCAmelCase     :    str						=   ln_before_adapter
			lowerCAmelCase     :    List[Any]						=   list(a_	)
			lowerCAmelCase     :    Tuple						=   default_language






class    lowerCamelCase  (      _A       ):



	@property
	def   _lowerCamelCase    (   self	):
			if self.task == "multiple-choice":
					lowerCAmelCase     :    str						=   {0: "batch", 1: "choice", 2: "sequence"}
			else:
					lowerCAmelCase     :    List[str]						=   {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_chinese_clip import ChineseCLIPImageProcessor


lowerCAmelCase       		=      logging.get_logger(__name__)
class 		lowerCamelCase  (      _A       ):



	def __init__(   self		,      *a_		,      **a_	):
			warnings.warn(
			    "The class ChineseCLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
			    " Please use ChineseCLIPImageProcessor instead."		,      a_		,      )
			super().__init__(*a_		,      **a_	)



