




_lowerCamelCase					:     List[Any]					  =  "\n# Transformers installation\n! pip install transformers datasets evaluate\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

_lowerCamelCase					:     List[str]					  =  [{"type": "code", "content": INSTALL_CONTENT}]
_lowerCamelCase					:     Optional[Any]					  =  {
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}







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


_lowerCamelCase					:     List[str]					  =  logging.get_logger(__name__)

_lowerCamelCase					:     List[str]					  =  {
    "ZinengTang/tvlt-base": "https://huggingface.co/ZinengTang/tvlt-base/blob/main/config.json",
}
class 				__snake_case     (_a						):
				lowerCAmelCase__			=   "tvlt"



				def __init__(					self					:						Dict						,		_UpperCAmelCase					:						Any=224						,		_UpperCAmelCase					:						Any=2048						,		_UpperCAmelCase					:						Optional[int]=128						,		_UpperCAmelCase					:						Tuple=[16, 16]						,		_UpperCAmelCase					:						Optional[int]=[16, 16]						,		_UpperCAmelCase					:						Tuple=3						,		_UpperCAmelCase					:						str=1						,		_UpperCAmelCase					:						Dict=8						,		_UpperCAmelCase					:						Any=768						,		_UpperCAmelCase					:						Dict=12						,		_UpperCAmelCase					:						Any=12						,		_UpperCAmelCase					:						Optional[Any]=3072						,		_UpperCAmelCase					:						Tuple="gelu"						,		_UpperCAmelCase					:						List[str]=0.0						,		_UpperCAmelCase					:						Any=0.0						,		_UpperCAmelCase					:						Optional[int]=0.02						,		_UpperCAmelCase					:						int=1E-6						,		_UpperCAmelCase					:						str=True						,		_UpperCAmelCase					:						Dict=False						,		_UpperCAmelCase					:						str=16						,		_UpperCAmelCase					:						List[Any]=512						,		_UpperCAmelCase					:						Optional[Any]=8						,		_UpperCAmelCase					:						Optional[Any]=2048						,		_UpperCAmelCase					:						Optional[int]=0.75						,		_UpperCAmelCase					:						List[Any]=0.15						,		_UpperCAmelCase					:						int="frame-level"						,		_UpperCAmelCase					:						Union[str, Any]=True						,		_UpperCAmelCase					:						Optional[int]=True						,		_UpperCAmelCase					:						Any="classification"						,		**_UpperCAmelCase					:						Tuple						,		)     ->			List[str]:





								'''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}"					)

								_lowerCAmelCase			:			Tuple        =					image_size
								_lowerCAmelCase			:			List[str]        =					spectrogram_length
								_lowerCAmelCase			:			str        =					frequency_length
								_lowerCAmelCase			:			Dict        =					image_patch_size
								_lowerCAmelCase			:			Tuple        =					audio_patch_size
								_lowerCAmelCase			:			str        =					num_image_channels
								_lowerCAmelCase			:			Dict        =					num_audio_channels
								_lowerCAmelCase			:			str        =					num_frames

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

								_lowerCAmelCase			:			Union[str, Any]        =					decoder_num_attention_heads
								_lowerCAmelCase			:			int        =					decoder_hidden_size
								_lowerCAmelCase			:			List[str]        =					decoder_num_hidden_layers
								_lowerCAmelCase			:			Optional[int]        =					decoder_intermediate_size
								_lowerCAmelCase			:			Any        =					pixel_mask_ratio
								_lowerCAmelCase			:			int        =					audio_mask_ratio
								_lowerCAmelCase			:			Optional[int]        =					audio_mask_type

								_lowerCAmelCase			:			Dict        =					task_matching
								_lowerCAmelCase			:			Any        =					task_mae
								_lowerCAmelCase			:			int        =					loss_type

