





'''simple docstring'''




import enum
import shutil
import sys


lowercase__      ,				lowercase__       : List[Any]         =       shutil.get_terminal_size()

lowercase__       : str         =       {'''UP''': '''A''', '''DOWN''': '''B''', '''RIGHT''': '''C''', '''LEFT''': '''D'''}


class 					SCREAMING_SNAKE_CASE       (enum.Enum				):
     lowerCAmelCase						     =			0
     lowerCAmelCase						     =			1






def 			_lowerCAmelCase     (    __snake_case    :					Tuple					,				__snake_case    :					Union[str, Any]=""     )	->	Union[str, Any]:
     sys.stdout.write(str(__snake_case     ) + end     )
     sys.stdout.flush()






def 			_lowerCAmelCase     (    __snake_case    :					Any					,				__snake_case    :					Any					,				__snake_case    :					List[str]=""     )	->	Tuple:
     forceWrite(f'\u001b[{color}m{content}\u001b[0m'					,				__snake_case     )






def 			_lowerCAmelCase     (    )	->	Union[str, Any]:
     forceWrite('\r'     )






def 			_lowerCAmelCase     (    __snake_case    :					int					,				__snake_case    :					str     )	->	Any:
     forceWrite(f'\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}'     )






def 			_lowerCAmelCase     (    )	->	List[Any]:
     forceWrite(' ' * TERMINAL_WIDTH     )
     reset_cursor()







def 			_lowerCAmelCase     (    )	->	int:
     reset_cursor()
     forceWrite('-' * TERMINAL_WIDTH     )






'''simple docstring'''




import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer






def 			_lowerCAmelCase     (    __snake_case    :					str					,				__snake_case    :					str					,				**__snake_case    :					List[Any]     )	->	Any:
     __A		:					Optional[Any]						=			AutoConfig.from_pretrained(__snake_case					,				**__snake_case     )
     __A		:					int						=			AutoModelForSeqaSeqLM.from_config(__snake_case     )
     model.save_pretrained(__snake_case     )
     AutoTokenizer.from_pretrained(__snake_case     ).save_pretrained(__snake_case     )
     return model


if __name__ == "__main__":
  fire.Fire(save_randomly_initialized_version)