




import logging

from transformers import PretrainedConfig


UpperCamelCase__    			=			logging.getLogger(__name__)


UpperCamelCase__    			=			{
    """bertabs-finetuned-cnndm""": """https://huggingface.co/remi/bertabs-finetuned-cnndm-extractive-abstractive-summarization/resolve/main/config.json""",
}
class 			a__    (					snake_case__      ):
						_a							:    Optional[int]					=    """bertabs"""






						def __init__(   self		,			_A=3_0_5_2_2		,			_A=5_1_2		,			_A=6		,			_A=5_1_2		,			_A=8		,			_A=5_1_2		,			_A=0.2		,			_A=6		,			_A=7_6_8		,			_A=8		,			_A=2_0_4_8		,			_A=0.2		,			**_A		,			):




											"""simple docstring"""



											super().__init__(**_A			)

											__lowerCAmelCase				   =       vocab_size
											__lowerCAmelCase				   =       max_pos

											__lowerCAmelCase				   =       enc_layers
											__lowerCAmelCase				   =       enc_hidden_size
											__lowerCAmelCase				   =       enc_heads
											__lowerCAmelCase				   =       enc_ff_size
											__lowerCAmelCase				   =       enc_dropout

											__lowerCAmelCase				   =       dec_layers
											__lowerCAmelCase				   =       dec_hidden_size
											__lowerCAmelCase				   =       dec_heads
											__lowerCAmelCase				   =       dec_ff_size
											__lowerCAmelCase				   =       dec_dropout











from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
	if not (is_transformers_available() and is_torch_available() and is_transformers_version('''>=''', '''4.25.0''')):
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	from ...utils.dummy_torch_and_transformers_objects import UnCLIPImageVariationPipeline, UnCLIPPipeline
else:
	from .pipeline_unclip import UnCLIPPipeline
	from .pipeline_unclip_image_variation import UnCLIPImageVariationPipeline
	from .text_proj import UnCLIPTextProjModel
