






from __future__ import annotations

def      lowerCAmelCase__	(    _a       :			int  ,      _a       :			int    ):
		if partitions <= 0:
				raise ValueError("partitions must be a positive number!"    )
		if partitions > number_of_bytes:
				raise ValueError("partitions can not > number_of_bytes!"    )
		snake_case_				:							str						 =       number_of_bytes // partitions
		snake_case_				:							Dict						 =       []
		for i in range(_a    ):
				snake_case_				:							List[Any]						 =       i * bytes_per_partition + 1
				snake_case_				:							int						 =       (
				    number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
				)
				allocation_list.append(F'''{start_bytes}-{end_bytes}'''    )
		return allocation_list


if __name__ == "__main__":
							import doctest

							doctest.testmod()








import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer

def      lowerCAmelCase__	(    _a       :			str  ,      _a       :			str  ,      **_a       :			Optional[int]    ):
		snake_case_				:							Any						 =       AutoConfig.from_pretrained(_a  ,      **_a    )
		snake_case_				:							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)
