






import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer

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


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












def      _lowerCamelCase	(						__A    :							int )      ->					bool:
    if not isinstance(__A		,		__A ):
        _UpperCAmelCase				:      Tuple			  =				f'''Input value of [number={number}] must be an integer'''
        raise TypeError(__A )
    if number < 0:
        return False
    _UpperCAmelCase				:      List[str]			  =				number * number
    while number > 0:
        if number % 10 != number_square % 10:
            return False
        number //= 10
        number_square //= 10
    return True


if __name__ == "__main__":
  import doctest

  doctest.testmod()




