





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


a_			=					logging.get_logger(__name__)

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



class  __lowerCAmelCase     (	__lowerCamelCase   ):
 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	,				__UpperCAmelCase=246534	,				__UpperCAmelCase=256	,				__UpperCAmelCase=1280	,				__UpperCAmelCase=8192	,				__UpperCAmelCase=48	,				__UpperCAmelCase=16	,				__UpperCAmelCase=0.1	,				__UpperCAmelCase=0.1	,				__UpperCAmelCase=1E-6	,				__UpperCAmelCase=0.02	,				__UpperCAmelCase=True	,				**__UpperCAmelCase	,				):



    '''simple docstring'''
    __lowerCamelCase													=    vocab_size
    __lowerCamelCase													=    n_positions
    __lowerCamelCase													=    n_embd
    __lowerCamelCase													=    n_layer
    __lowerCamelCase													=    n_head
    __lowerCamelCase													=    dff
    __lowerCamelCase													=    resid_pdrop
    __lowerCamelCase													=    embd_pdrop
    __lowerCamelCase													=    layer_norm_epsilon
    __lowerCamelCase													=    initializer_range

    __lowerCamelCase													=    use_cache

    super().__init__(**a_				)











from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


a_			=					{
    """configuration_clipseg""": [
        """CLIPSEG_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """CLIPSegConfig""",
        """CLIPSegTextConfig""",
        """CLIPSegVisionConfig""",
    ],
    """processing_clipseg""": ["""CLIPSegProcessor"""],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  a_			=					[
      """CLIPSEG_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """CLIPSegModel""",
      """CLIPSegPreTrainedModel""",
      """CLIPSegTextModel""",
      """CLIPSegVisionModel""",
      """CLIPSegForImageSegmentation""",
  ]

if TYPE_CHECKING:
  from .configuration_clipseg import (
      CLIPSEG_PRETRAINED_CONFIG_ARCHIVE_MAP,
      CLIPSegConfig,
      CLIPSegTextConfig,
      CLIPSegVisionConfig,
  )
  from .processing_clipseg import CLIPSegProcessor

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_clipseg import (
        CLIPSEG_PRETRAINED_MODEL_ARCHIVE_LIST,
        CLIPSegForImageSegmentation,
        CLIPSegModel,
        CLIPSegPreTrainedModel,
        CLIPSegTextModel,
        CLIPSegVisionModel,
    )

else:
  import sys

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






