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


lowerCAmelCase__					:       Optional[int]		=       logging.get_logger(__name__)

lowerCAmelCase__					:       List[Any]		=       {
    'ZinengTang/tvlt-base': 'https://huggingface.co/ZinengTang/tvlt-base/blob/main/config.json',
}





class 			__snake_case  (      lowercase_     ):
					__lowerCamelCase	 =       """tvlt"""




					def __init__(       self   ,	__UpperCamelCase=224   ,	__UpperCamelCase=2048   ,	__UpperCamelCase=128   ,	__UpperCamelCase=[16, 16]   ,	__UpperCamelCase=[16, 16]   ,	__UpperCamelCase=3   ,	__UpperCamelCase=1   ,	__UpperCamelCase=8   ,	__UpperCamelCase=768   ,	__UpperCamelCase=12   ,	__UpperCamelCase=12   ,	__UpperCamelCase=3072   ,	__UpperCamelCase="gelu"   ,	__UpperCamelCase=0.0   ,	__UpperCamelCase=0.0   ,	__UpperCamelCase=0.0_2   ,	__UpperCamelCase=1E-6   ,	__UpperCamelCase=True   ,	__UpperCamelCase=False   ,	__UpperCamelCase=16   ,	__UpperCamelCase=512   ,	__UpperCamelCase=8   ,	__UpperCamelCase=2048   ,	__UpperCamelCase=0.7_5   ,	__UpperCamelCase=0.1_5   ,	__UpperCamelCase="frame-level"   ,	__UpperCamelCase=True   ,	__UpperCamelCase=True   ,	__UpperCamelCase="classification"   ,	**__UpperCamelCase   ,	)					->  List[Any]:



									'''simple docstring'''







									super().__init__(**__UpperCamelCase		)

									if audio_mask_type not in ("frame-level", "patch_level"):
													raise ValueError(
													    'audio_mask_type must be one of two acceptable strategies - {\'frame_level\', \'patch-level\') '
													    F"""got {audio_mask_type}"""		)

									snake_case__ :     Optional[Any] 							=				image_size
									snake_case__ :     int 							=				spectrogram_length
									snake_case__ :     List[str] 							=				frequency_length
									snake_case__ :     Any 							=				image_patch_size
									snake_case__ :     Optional[int] 							=				audio_patch_size
									snake_case__ :     Optional[Any] 							=				num_image_channels
									snake_case__ :     int 							=				num_audio_channels
									snake_case__ :     Optional[int] 							=				num_frames

									snake_case__ :     List[str] 							=				hidden_size
									snake_case__ :     Tuple 							=				num_hidden_layers
									snake_case__ :     Optional[int] 							=				num_attention_heads
									snake_case__ :     str 							=				intermediate_size
									snake_case__ :     Optional[Any] 							=				hidden_act
									snake_case__ :     str 							=				hidden_dropout_prob
									snake_case__ :     Optional[int] 							=				attention_probs_dropout_prob
									snake_case__ :     List[Any] 							=				initializer_range
									snake_case__ :     Union[str, Any] 							=				layer_norm_eps
									snake_case__ :     Union[str, Any] 							=				qkv_bias
									snake_case__ :     int 							=				use_mean_pooling

									snake_case__ :     Tuple 							=				decoder_num_attention_heads
									snake_case__ :     Optional[int] 							=				decoder_hidden_size
									snake_case__ :     Tuple 							=				decoder_num_hidden_layers
									snake_case__ :     Optional[Any] 							=				decoder_intermediate_size
									snake_case__ :     List[str] 							=				pixel_mask_ratio
									snake_case__ :     Optional[int] 							=				audio_mask_ratio
									snake_case__ :     List[Any] 							=				audio_mask_type

									snake_case__ :     List[str] 							=				task_matching
									snake_case__ :     Optional[int] 							=				task_mae
									snake_case__ :     Union[str, Any] 							=				loss_type



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_tokenizers_available


lowerCAmelCase__					:       Optional[int]		=       {}

try:
				if not is_sentencepiece_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				lowerCAmelCase__					:       Tuple		=       ['''MBart50Tokenizer''']

try:
				if not is_tokenizers_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				lowerCAmelCase__					:       Tuple		=       ['''MBart50TokenizerFast''']


if TYPE_CHECKING:
				try:
								if not is_sentencepiece_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .tokenization_mbartaa import MBartaaTokenizer

				try:
								if not is_tokenizers_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .tokenization_mbartaa_fast import MBartaaTokenizerFast

else:
				import sys

				lowerCAmelCase__					:       Optional[int]		=       _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)


