"""simple docstring"""




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


__lowerCamelCase							 =     logging.get_logger(__name__)

__lowerCamelCase							 =     {
    "uw-madison/mra-base-512-4": "https://huggingface.co/uw-madison/mra-base-512-4/resolve/main/config.json",
}
class 			UpperCamelCase__(	__A       ):
						lowerCAmelCase__     :  str  							=						'mra'





						def __init__(				self						,__UpperCAmelCase=5_02_65						,__UpperCAmelCase=7_68						,__UpperCAmelCase=12						,__UpperCAmelCase=12						,__UpperCAmelCase=30_72						,__UpperCAmelCase="gelu"						,__UpperCAmelCase=0.1						,__UpperCAmelCase=0.1						,__UpperCAmelCase=5_12						,__UpperCAmelCase=1						,__UpperCAmelCase=0.0_2						,__UpperCAmelCase=1e-5						,__UpperCAmelCase="absolute"						,__UpperCAmelCase=4						,__UpperCAmelCase="full"						,__UpperCAmelCase=0						,__UpperCAmelCase=0						,__UpperCAmelCase=1						,__UpperCAmelCase=0						,__UpperCAmelCase=2						,**__UpperCAmelCase						,)    -> List[Any]:
													super().__init__(pad_token_id=__UpperCAmelCase						,bos_token_id=__UpperCAmelCase						,eos_token_id=__UpperCAmelCase						,**__UpperCAmelCase   )

													A__		   =							vocab_size
													A__		   =							max_position_embeddings
													A__		   =							hidden_size
													A__		   =							num_hidden_layers
													A__		   =							num_attention_heads
													A__		   =							intermediate_size
													A__		   =							hidden_act
													A__		   =							hidden_dropout_prob
													A__		   =							attention_probs_dropout_prob
													A__		   =							initializer_range
													A__		   =							type_vocab_size
													A__		   =							layer_norm_eps
													A__		   =							position_embedding_type
													A__		   =							block_per_row
													A__		   =							approx_mode
													A__		   =							initial_prior_first_n_blocks
													A__		   =							initial_prior_diagonal_n_blocks






"""simple docstring"""




from typing import TYPE_CHECKING

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


__lowerCamelCase							 =     {
    "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							 =     ["ChineseCLIPFeatureExtractor"]
				__lowerCamelCase							 =     ["ChineseCLIPImageProcessor"]

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				__lowerCamelCase							 =     [
				    "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							 =     _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)





