




from pathlib import Path

import fire



def 							_A       (						lowerCAmelCase_					: str       ,    lowerCAmelCase_					: str       ,    lowerCAmelCase_					: int      ):
     """simple docstring"""

     lowerCAmelCase__          =			Path(lowerCAmelCase_      )
     lowerCAmelCase__          =			Path(lowerCAmelCase_      )
     dest_dir.mkdir(exist_ok=lowerCAmelCase_      )
     for path in src_dir.iterdir():
          lowerCAmelCase__          =			[x.rstrip() for x in list(path.open().readlines()      )][:n]
          lowerCAmelCase__          =			dest_dir.joinpath(path.name      )
          print(lowerCAmelCase_      )
          dest_path.open("w"      ).write("\n".join(lowerCAmelCase_      )      )


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






import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer



def 							_A       (						lowerCAmelCase_					: str       ,    lowerCAmelCase_					: str       ,    **lowerCAmelCase_					: str      ):
     """simple docstring"""

     lowerCAmelCase__          =			AutoConfig.from_pretrained(lowerCAmelCase_       ,    **lowerCAmelCase_      )
     lowerCAmelCase__          =			AutoModelForSeqaSeqLM.from_config(lowerCAmelCase_      )
     model.save_pretrained(lowerCAmelCase_      )
     AutoTokenizer.from_pretrained(lowerCAmelCase_      ).save_pretrained(lowerCAmelCase_      )
     return model


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