




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


_SCREAMING_SNAKE_CASE			=						logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE			=						{
    "google/vivit-b-16x2-kinetics400": (
        "https://huggingface.co/google/vivit-b-16x2-kinetics400/resolve/main/config.json"
    ),
    # See all Vivit models at https://huggingface.co/models?filter=vivit
}
class   __UpperCAmelCase				(     lowerCAmelCase				):



					'''simple docstring'''





					_UpperCamelCase							=		"""vivit"""



					def __init__(	self     :						List[Any]      ,       _lowercase     :						str=224      ,       _lowercase     :						int=32      ,       _lowercase     :						List[str]=[2, 16, 16]      ,       _lowercase     :						str=3      ,       _lowercase     :						int=768      ,       _lowercase     :						List[Any]=12      ,       _lowercase     :						Optional[Any]=12      ,       _lowercase     :						int=3_072      ,       _lowercase     :						Tuple="gelu_fast"      ,       _lowercase     :						List[Any]=0.0      ,       _lowercase     :						Optional[Any]=0.0      ,       _lowercase     :						Optional[int]=0.02      ,       _lowercase     :						Union[str, Any]=1E-06      ,       _lowercase     :						Optional[int]=True      ,       **_lowercase     :						List[str]      ,       )    ->							Union[str, Any]:
								A_									= hidden_size
								A_									= num_hidden_layers
								A_									= num_attention_heads
								A_									= intermediate_size
								A_									= hidden_act
								A_									= hidden_dropout_prob
								A_									= attention_probs_dropout_prob
								A_									= initializer_range
								A_									= layer_norm_eps

								A_									= image_size
								A_									= num_frames
								A_									= tubelet_size
								A_									= num_channels
								A_									= qkv_bias

								super().__init__(**_lowercase)










'''simple docstring'''
from argparse import ArgumentParser

from .add_new_model import AddNewModelCommand
from .add_new_model_like import AddNewModelLikeCommand
from .convert import ConvertCommand
from .download import DownloadCommand
from .env import EnvironmentCommand
from .lfs import LfsCommands
from .pt_to_tf import PTtoTFCommand
from .run import RunCommand
from .serving import ServeCommand
from .user import UserCommands





def 			lowerCamelCase(							)		->		int:
			A_									= ArgumentParser('Transformers CLI tool'       ,usage='transformers-cli <command> [<args>]'     )
			A_									= parser.add_subparsers(help='transformers-cli command helpers'     )

			# Register commands
			ConvertCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			DownloadCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			EnvironmentCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			RunCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			ServeCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			UserCommands.register_subcommand(SCREAMING_SNAKE_CASE_     )
			AddNewModelCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			AddNewModelLikeCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )
			LfsCommands.register_subcommand(SCREAMING_SNAKE_CASE_     )
			PTtoTFCommand.register_subcommand(SCREAMING_SNAKE_CASE_     )

			# Let's go
			A_									= parser.parse_args()

			if not hasattr(SCREAMING_SNAKE_CASE_       ,'func'     ):
						parser.print_help()
						exit(1     )

			# Run
			A_									= args.func(SCREAMING_SNAKE_CASE_     )
			service.run()


if __name__ == "__main__":
							main()




