



"""simple docstring"""

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


lowercase__       =	logging.get_logger(__name__)

lowercase__       =	{
    "google/fnet-base": "https://huggingface.co/google/fnet-base/resolve/main/config.json",
    "google/fnet-large": "https://huggingface.co/google/fnet-large/resolve/main/config.json"
    # See all FNet models at https://huggingface.co/models?filter=fnet
}




class SCREAMING_SNAKE_CASE__       (		__snake_case   ):
						_lowerCAmelCase    						=       "fnet"



						def __init__(self    ,  _lowercase=32000    ,  _lowercase=768    ,  _lowercase=12    ,  _lowercase=3072    ,  _lowercase="gelu_new"    ,  _lowercase=0.1    ,  _lowercase=512    ,  _lowercase=4    ,  _lowercase=0.02    ,  _lowercase=1e-12    ,  _lowercase=False    ,  _lowercase=512    ,  _lowercase=3    ,  _lowercase=1    ,  _lowercase=2    ,  **_lowercase    ,  ):





													'''simple docstring'''

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

													__a		:		Optional[int]						=							vocab_size
													__a		:		str						=							max_position_embeddings
													__a		:		str						=							hidden_size
													__a		:		Union[str, Any]						=							num_hidden_layers
													__a		:		Any						=							intermediate_size
													__a		:		Optional[int]						=							hidden_act
													__a		:		List[str]						=							hidden_dropout_prob
													__a		:		Optional[int]						=							initializer_range
													__a		:		Dict						=							type_vocab_size
													__a		:		str						=							layer_norm_eps
													__a		:		Any						=							use_tpu_fourier_optimizations
													__a		:		Dict						=							tpu_short_seq_length






from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_tf_available,
    is_torch_available,
    is_vision_available,
)


lowerCamelCase		       =      {
    """configuration_blip""": [
        """BLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """BlipConfig""",
        """BlipTextConfig""",
        """BlipVisionConfig""",
    ],
    """processing_blip""": ["""BlipProcessor"""],
}

try:
						if not is_vision_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						lowerCamelCase		       =      ["""BlipImageProcessor"""]


try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						lowerCamelCase		       =      [
						    """BLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
						    """BlipModel""",
						    """BlipPreTrainedModel""",
						    """BlipForConditionalGeneration""",
						    """BlipForQuestionAnswering""",
						    """BlipVisionModel""",
						    """BlipTextModel""",
						    """BlipForImageTextRetrieval""",
						]

try:
						if not is_tf_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						lowerCamelCase		       =      [
						    """TF_BLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
						    """TFBlipModel""",
						    """TFBlipPreTrainedModel""",
						    """TFBlipForConditionalGeneration""",
						    """TFBlipForQuestionAnswering""",
						    """TFBlipVisionModel""",
						    """TFBlipTextModel""",
						    """TFBlipForImageTextRetrieval""",
						]

if TYPE_CHECKING:
						from .configuration_blip import BLIP_PRETRAINED_CONFIG_ARCHIVE_MAP, BlipConfig, BlipTextConfig, BlipVisionConfig
						from .processing_blip import BlipProcessor

						try:
												if not is_vision_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .image_processing_blip import BlipImageProcessor

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_blip import (
												    BLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
												    BlipForConditionalGeneration,
												    BlipForImageTextRetrieval,
												    BlipForQuestionAnswering,
												    BlipModel,
												    BlipPreTrainedModel,
												    BlipTextModel,
												    BlipVisionModel,
												)

						try:
												if not is_tf_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_tf_blip import (
												    TF_BLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
												    TFBlipForConditionalGeneration,
												    TFBlipForImageTextRetrieval,
												    TFBlipForQuestionAnswering,
												    TFBlipModel,
												    TFBlipPreTrainedModel,
												    TFBlipTextModel,
												    TFBlipVisionModel,
												)

else:
						import sys

						lowerCamelCase		       =      _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)


