


'''simple docstring'''





import fire

from transformers import AutoConfig, AutoModelForSeqaSeqLM, AutoTokenizer






def 						UpperCAmelCase__(				_SCREAMING_SNAKE_CASE					: str,_SCREAMING_SNAKE_CASE					: str,**_SCREAMING_SNAKE_CASE					: Union[str, Any] ):






			"""simple docstring"""




			__A=	AutoConfig.from_pretrained(_SCREAMING_SNAKE_CASE,**_SCREAMING_SNAKE_CASE )
			__A=	AutoModelForSeqaSeqLM.from_config(_SCREAMING_SNAKE_CASE )
			model.save_pretrained(_SCREAMING_SNAKE_CASE )
			AutoTokenizer.from_pretrained(_SCREAMING_SNAKE_CASE ).save_pretrained(_SCREAMING_SNAKE_CASE )
			return model


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







'''simple docstring'''





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


UpperCAmelCase__  			=				{}

try:
					if not is_sentencepiece_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					UpperCAmelCase__  			=				['''BartphoTokenizer''']

if TYPE_CHECKING:
					try:
										if not is_sentencepiece_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .tokenization_bartpho import BartphoTokenizer

else:
					import sys

					UpperCAmelCase__  			=				_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



