'''simple docstring'''

import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer







def __UpperCamelCase( _A       :					str	,      _A       :					str	,      **_A       :					Union[str, Any]     ):
   '''simple docstring'''
   UpperCAmelCase__				:					List[Any] 					=	AutoConfig.from_pretrained(_A	,      **_A     )
   UpperCAmelCase__				:					Optional[int] 					=	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)





'''simple docstring'''

def __UpperCamelCase( _A       :					float	,      _A       :					list[float]     ):
   '''simple docstring'''
   if discount_rate < 0:
      raise ValueError('''Discount rate cannot be negative'''     )
   if not cash_flows:
      raise ValueError('''Cash flows list cannot be empty'''     )
   UpperCAmelCase__				:					str 					=	sum(
       cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(_A     )     )
   return round(_A	,      ndigits=2     )


if __name__ == "__main__":
  import doctest

  doctest.testmod()




