



'''simple docstring'''



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 _UpperCamelCase		(     A		):





				'''simple docstring'''





				lowerCAmelCase__					    =    """ctrl"""
				lowerCAmelCase__					    =    ["""past_key_values"""]
				lowerCAmelCase__					    =    {
				    """max_position_embeddings""": """n_positions""",
				    """hidden_size""": """n_embd""",
				    """num_attention_heads""": """n_head""",
				    """num_hidden_layers""": """n_layer""",
				}

				def __init__(							self  :  str  ,       _lowerCAmelCase  :  Optional[int]=2_4_6_5_3_4  ,       _lowerCAmelCase  :  Dict=2_5_6  ,       _lowerCAmelCase  :  Union[str, Any]=1_2_8_0  ,       _lowerCAmelCase  :  Dict=8_1_9_2  ,       _lowerCAmelCase  :  Tuple=4_8  ,       _lowerCAmelCase  :  Any=1_6  ,       _lowerCAmelCase  :  str=0.1  ,       _lowerCAmelCase  :  Tuple=0.1  ,       _lowerCAmelCase  :  Any=1e-6  ,       _lowerCAmelCase  :  Any=0.02  ,       _lowerCAmelCase  :  Tuple=True  ,       **_lowerCAmelCase  :  Optional[int]  ,       ):







											'''simple docstring'''

											__lowercase       	=vocab_size
											__lowercase       	=n_positions
											__lowercase       	=n_embd
											__lowercase       	=n_layer
											__lowercase       	=n_head
											__lowercase       	=dff
											__lowercase       	=resid_pdrop
											__lowercase       	=embd_pdrop
											__lowercase       	=layer_norm_epsilon
											__lowercase       	=initializer_range

											__lowercase       	=use_cache

											super().__init__(**_lowerCAmelCase)








'''simple docstring'''



from typing import TYPE_CHECKING

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


lowerCamelCase	 =       {
    """configuration_mask2former""": [
        """MASK2FORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """Mask2FormerConfig""",
    ],
}

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

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		lowerCamelCase	 =       [
		    """MASK2FORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
		    """Mask2FormerForUniversalSegmentation""",
		    """Mask2FormerModel""",
		    """Mask2FormerPreTrainedModel""",
		]

if TYPE_CHECKING:
		from .configuration_maskaformer import MASK2FORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, MaskaFormerConfig

		try:
				if not is_vision_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .image_processing_maskaformer import MaskaFormerImageProcessor

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_maskaformer import (
				    MASK2FORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
				    MaskaFormerForUniversalSegmentation,
				    MaskaFormerModel,
				    MaskaFormerPreTrainedModel,
				)


else:
		import sys

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



