

'''simple docstring'''



from ...configuration_utils import PretrainedConfig
from ...utils import logging


SCREAMING_SNAKE_CASE_     = logging.get_logger(__name__)

SCREAMING_SNAKE_CASE_     = {
    """uw-madison/mra-base-512-4""": """https://huggingface.co/uw-madison/mra-base-512-4/resolve/main/config.json""",
}

class       SCREAMING_SNAKE_CASE       (				lowercase_       ):






      '''simple docstring'''






      SCREAMING_SNAKE_CASE__			:					Optional[int]     =					'mra'




      def __init__(       self			:		List[str]  ,       snake_case			:		Any=50265  ,       snake_case			:		List[str]=768  ,       snake_case			:		Union[str, Any]=12  ,       snake_case			:		Tuple=12  ,       snake_case			:		List[Any]=3072  ,       snake_case			:		int="gelu"  ,       snake_case			:		int=0.1  ,       snake_case			:		Union[str, Any]=0.1  ,       snake_case			:		Optional[int]=512  ,       snake_case			:		int=1  ,       snake_case			:		int=0.02  ,       snake_case			:		int=1e-5  ,       snake_case			:		Union[str, Any]="absolute"  ,       snake_case			:		Any=4  ,       snake_case			:		Optional[Any]="full"  ,       snake_case			:		Optional[int]=0  ,       snake_case			:		int=0  ,       snake_case			:		Optional[Any]=1  ,       snake_case			:		Optional[Any]=0  ,       snake_case			:		Any=2  ,       **snake_case			:		str  ,       ):



          """simple docstring"""





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

          _snake_case			:			Optional[int]				       =		vocab_size
          _snake_case			:			List[str]				       =		max_position_embeddings
          _snake_case			:			Any				       =		hidden_size
          _snake_case			:			List[Any]				       =		num_hidden_layers
          _snake_case			:			int				       =		num_attention_heads
          _snake_case			:			Optional[Any]				       =		intermediate_size
          _snake_case			:			Tuple				       =		hidden_act
          _snake_case			:			Dict				       =		hidden_dropout_prob
          _snake_case			:			Tuple				       =		attention_probs_dropout_prob
          _snake_case			:			Optional[int]				       =		initializer_range
          _snake_case			:			Optional[Any]				       =		type_vocab_size
          _snake_case			:			Optional[int]				       =		layer_norm_eps
          _snake_case			:			Any				       =		position_embedding_type
          _snake_case			:			Union[str, Any]				       =		block_per_row
          _snake_case			:			int				       =		approx_mode
          _snake_case			:			Any				       =		initial_prior_first_n_blocks
          _snake_case			:			Dict				       =		initial_prior_diagonal_n_blocks




"""simple docstring"""






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


__lowerCAmelCase       :			Optional[int]   	={
    """configuration_chinese_clip""": [
        """CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """ChineseCLIPConfig""",
        """ChineseCLIPOnnxConfig""",
        """ChineseCLIPTextConfig""",
        """ChineseCLIPVisionConfig""",
    ],
    """processing_chinese_clip""": ["""ChineseCLIPProcessor"""],
}

try:
       if not is_vision_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __lowerCAmelCase       :			List[Any]   	=["""ChineseCLIPFeatureExtractor"""]
       __lowerCAmelCase       :			List[Any]   	=["""ChineseCLIPImageProcessor"""]

try:
       if not is_torch_available():
              raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
       pass
else:
       __lowerCAmelCase       :			Tuple   	=[
           """CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
           """ChineseCLIPModel""",
           """ChineseCLIPPreTrainedModel""",
           """ChineseCLIPTextModel""",
           """ChineseCLIPVisionModel""",
       ]

if TYPE_CHECKING:
       from .configuration_chinese_clip import (
           CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
           ChineseCLIPConfig,
           ChineseCLIPOnnxConfig,
           ChineseCLIPTextConfig,
           ChineseCLIPVisionConfig,
       )
       from .processing_chinese_clip import ChineseCLIPProcessor

       try:
              if not is_vision_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .feature_extraction_chinese_clip import ChineseCLIPFeatureExtractor, ChineseCLIPImageProcessor

       try:
              if not is_torch_available():
                     raise OptionalDependencyNotAvailable()
       except OptionalDependencyNotAvailable:
              pass
       else:
              from .modeling_chinese_clip import (
                  CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
                  ChineseCLIPModel,
                  ChineseCLIPPreTrainedModel,
                  ChineseCLIPTextModel,
                  ChineseCLIPVisionModel,
              )

else:
       import sys

       __lowerCAmelCase       :			Optional[Any]   	=_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)



