




from ..utils import deprecate
from .attention_processor import (  # noqa: F401
    Attention,
    AttentionProcessor,
    AttnAddedKVProcessor,
    AttnProcessor2_0,
    LoRAAttnProcessor,
    LoRALinearLayer,
    LoRAXFormersAttnProcessor,
    SlicedAttnAddedKVProcessor,
    SlicedAttnProcessor,
    XFormersAttnProcessor,
)
from .attention_processor import AttnProcessor as AttnProcessorRename  # noqa: F401


deprecate(
    'cross_attention',
    '0.20.0',
    'Importing from cross_attention is deprecated. Please import from diffusers.models.attention_processor instead.',
    standard_warn=False,
)


UpperCamelCase__						=		AttentionProcessor


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						Optional[Any]				  =				f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'   )   )} instead."
						deprecate('cross_attention'					,			'0.20.0'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						Tuple				  =				f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'   )   )} instead."
						deprecate('cross_attention'					,			'0.20.0'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						Optional[int]				  =				f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'   )   )} instead."
						deprecate('cross_attention'					,			'0.20.0'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						Union[str, Any]				  =				f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'   )   )} instead."
						deprecate('cross_attention'					,			'0.20.0'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						Any				  =				f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'   )   )} instead."
						deprecate('cross_attention'					,			'0.20.0'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						Any				  =				f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'   )   )} instead."
						deprecate('cross_attention'					,			'0.20.0'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						Tuple				  =				f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'   )   )} instead."
						deprecate('cross_attention'					,			'0.20.0'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )


class 							__SCREAMING_SNAKE_CASE				(						lowerCamelCase    ):

					def __init__(							self					,			*__lowercase					,			**__lowercase   ):







						'''simple docstring'''




						lowerCamelCase_				:						List[str]				  =				f"{self.__class__.__name__} is deprecated and will be removed in `0.20.0`. Please use `from diffusers.models.attention_processor import {''.join(self.__class__.__name__.split('Cross'   )   )} instead."
						deprecate('cross_attention'					,			'0.20.0'					,			__lowercase					,			standard_warn=__lowercase   )
						super().__init__(*__lowercase					,			**__lowercase   )

"""simple docstring"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowercase__   			=      logging.get_logger(__name__)

lowercase__   			=      {
    'tau/splinter-base': 'https://huggingface.co/tau/splinter-base/resolve/main/config.json',
    'tau/splinter-base-qass': 'https://huggingface.co/tau/splinter-base-qass/resolve/main/config.json',
    'tau/splinter-large': 'https://huggingface.co/tau/splinter-large/resolve/main/config.json',
    'tau/splinter-large-qass': 'https://huggingface.co/tau/splinter-large-qass/resolve/main/config.json',
    # See all Splinter models at https://huggingface.co/models?filter=splinter
}




class   __snake_case			(	__lowerCAmelCase							):
      a__								=						"""splinter"""



      def __init__(		self       ,     lowercase=3_05_22       ,     lowercase=7_68       ,     lowercase=12       ,     lowercase=12       ,     lowercase=30_72       ,     lowercase="gelu"       ,     lowercase=0.1       ,     lowercase=0.1       ,     lowercase=5_12       ,     lowercase=2       ,     lowercase=0.02       ,     lowercase=1e-12       ,     lowercase=True       ,     lowercase=0       ,     lowercase=1_04       ,     **lowercase       ,     )      ->     Union[str, Any]:





        '''simple docstring'''





        super().__init__(pad_token_id=lowercase       ,     **lowercase)

        a__:	Dict     				=      vocab_size
        a__:	Dict     				=      max_position_embeddings
        a__:	Dict     				=      hidden_size
        a__:	int     				=      num_hidden_layers
        a__:	str     				=      num_attention_heads
        a__:	Dict     				=      intermediate_size
        a__:	Tuple     				=      hidden_act
        a__:	Optional[Any]     				=      hidden_dropout_prob
        a__:	List[Any]     				=      attention_probs_dropout_prob
        a__:	Tuple     				=      initializer_range
        a__:	str     				=      type_vocab_size
        a__:	Optional[Any]     				=      layer_norm_eps
        a__:	Any     				=      use_cache
        a__:	List[Any]     				=      question_token_id


