

"""simple docstring"""





def   _A  (  UpperCamelCase_					:	int,      UpperCamelCase_					:	int)     ->						int:
   '''simple docstring'''


   while a != 0:
      __lowercase		,__lowercase								=						b % a, a
   return b




def   _A  (  UpperCamelCase_					:	int,      UpperCamelCase_					:	int)     ->						int:
   '''simple docstring'''


   if gcd(UpperCamelCase__,      UpperCamelCase__) != 1:
      __lowercase								=						F"""mod inverse of {a!r} and {m!r} does not exist"""
      raise ValueError(UpperCamelCase__)
   __lowercase		,__lowercase		,__lowercase								=						1, 0, a
   __lowercase		,__lowercase		,__lowercase								=						0, 1, m
   while va != 0:
      __lowercase								=						ua // va
      __lowercase		,__lowercase		,__lowercase		,__lowercase		,__lowercase		,__lowercase								=						(ua - q * va), (ua - q * va), (ua - q * va), va, va, va
   return ua % m







"""simple docstring"""





import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer




def   _A  (  UpperCamelCase_					:	str,      UpperCamelCase_					:	str,      **UpperCamelCase_					:	Optional[int])     ->						Tuple:
   '''simple docstring'''


   __lowercase								=						AutoConfig.from_pretrained(UpperCamelCase_,      **UpperCamelCase_)
   __lowercase								=						AutoModelForSeqaSeqLM.from_config(UpperCamelCase_)
   model.save_pretrained(UpperCamelCase_)
   AutoTokenizer.from_pretrained(UpperCamelCase_).save_pretrained(UpperCamelCase_)
   return model


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




