"""simple docstring"""







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


__SCREAMING_SNAKE_CASE								=logging.get_logger(__name__)

__SCREAMING_SNAKE_CASE								={"openai-gpt": "https://huggingface.co/openai-gpt/resolve/main/config.json"}







class  UpperCamelCase	(    __SCREAMING_SNAKE_CASE						):
   lowercase							=						'openai-gpt'
   lowercase							=						{
       'max_position_embeddings': 'n_positions',
       'hidden_size': 'n_embd',
       'num_attention_heads': 'n_head',
       'num_hidden_layers': 'n_layer',
   }
   def __init__(    self  ,__UpperCamelCase=4_0478  ,__UpperCamelCase=512  ,__UpperCamelCase=768  ,__UpperCamelCase=12  ,__UpperCamelCase=12  ,__UpperCamelCase="gelu"  ,__UpperCamelCase=0.1  ,__UpperCamelCase=0.1  ,__UpperCamelCase=0.1  ,__UpperCamelCase=1e-5  ,__UpperCamelCase=0.02  ,__UpperCamelCase="cls_index"  ,__UpperCamelCase=True  ,__UpperCamelCase=None  ,__UpperCamelCase=True  ,__UpperCamelCase=0.1  ,**__UpperCamelCase  ,)			->   str:


        '''simple docstring'''


        lowercase_			:       List[str]									=			vocab_size
        lowercase_			:       str									=			n_positions
        lowercase_			:       Any									=			n_embd
        lowercase_			:       str									=			n_layer
        lowercase_			:       Optional[Any]									=			n_head
        lowercase_			:       Tuple									=			afn
        lowercase_			:       int									=			resid_pdrop
        lowercase_			:       Optional[Any]									=			embd_pdrop
        lowercase_			:       Any									=			attn_pdrop
        lowercase_			:       Optional[Any]									=			layer_norm_epsilon
        lowercase_			:       str									=			initializer_range
        lowercase_			:       str									=			summary_type
        lowercase_			:       int									=			summary_use_proj
        lowercase_			:       int									=			summary_activation
        lowercase_			:       Optional[Any]									=			summary_first_dropout
        lowercase_			:       int									=			summary_proj_to_labels
        super().__init__(**__snake_case    )


"""simple docstring"""







from argparse import ArgumentParser

from .env import EnvironmentCommand



def     lowercase__( ):
     lowercase_			:       List[Any]									=			ArgumentParser('Diffusers CLI tool'  ,    usage='diffusers-cli <command> [<args>]'   )
     lowercase_			:       int									=			parser.add_subparsers(help='diffusers-cli command helpers'   )

     # Register commands
     EnvironmentCommand.register_subcommand(__SCREAMING_SNAKE_CASE   )

     # Let's go
     lowercase_			:       str									=			parser.parse_args()

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

     # Run
     lowercase_			:       Optional[Any]									=			args.func(__SCREAMING_SNAKE_CASE   )
     service.run()


if __name__ == "__main__":
       main()

