



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


lowerCamelCase		       =      logging.get_logger(__name__)

lowerCamelCase		       =      {"""ctrl""": """https://huggingface.co/ctrl/resolve/main/config.json"""}


class 				_a						(       SCREAMING_SNAKE_CASE			):





							'''simple docstring'''

							A				:Union[str, Any] =       "ctrl"
							A				:Tuple =       ["past_key_values"]
							A				:Optional[Any] =       {
							    "max_position_embeddings": "n_positions",
							    "hidden_size": "n_embd",
							    "num_attention_heads": "n_head",
							    "num_hidden_layers": "n_layer",
							}



							def __init__(							self ,					__UpperCAmelCase=24_6534 ,					__UpperCAmelCase=256 ,					__UpperCAmelCase=1280 ,					__UpperCAmelCase=8192 ,					__UpperCAmelCase=48 ,					__UpperCAmelCase=16 ,					__UpperCAmelCase=0.1 ,					__UpperCAmelCase=0.1 ,					__UpperCAmelCase=1E-6 ,					__UpperCAmelCase=0.0_2 ,					__UpperCAmelCase=True ,					**__UpperCAmelCase ,					):







											"""simple docstring"""



											a__	:							List[Any]      						= vocab_size
											a__	:							str      						= n_positions
											a__	:							List[Any]      						= n_embd
											a__	:							Union[str, Any]      						= n_layer
											a__	:							List[Any]      						= n_head
											a__	:							Tuple      						= dff
											a__	:							List[Any]      						= resid_pdrop
											a__	:							Any      						= embd_pdrop
											a__	:							Dict      						= layer_norm_epsilon
											a__	:							Tuple      						= initializer_range

											a__	:							List[Any]      						= use_cache

											super().__init__(**__UpperCAmelCase				)







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowerCamelCase		       =      {
    """configuration_instructblip""": [
        """INSTRUCTBLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """InstructBlipConfig""",
        """InstructBlipQFormerConfig""",
        """InstructBlipVisionConfig""",
    ],
    """processing_instructblip""": ["""InstructBlipProcessor"""],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						lowerCamelCase		       =      [
						    """INSTRUCTBLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
						    """InstructBlipQFormerModel""",
						    """InstructBlipPreTrainedModel""",
						    """InstructBlipForConditionalGeneration""",
						    """InstructBlipVisionModel""",
						]

if TYPE_CHECKING:
						from .configuration_instructblip import (
						    INSTRUCTBLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
						    InstructBlipConfig,
						    InstructBlipQFormerConfig,
						    InstructBlipVisionConfig,
						)
						from .processing_instructblip import InstructBlipProcessor

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_instructblip import (
												    INSTRUCTBLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
												    InstructBlipForConditionalGeneration,
												    InstructBlipPreTrainedModel,
												    InstructBlipQFormerModel,
												    InstructBlipVisionModel,
												)

else:
						import sys

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


