



'''simple docstring'''
from argparse import ArgumentParser

from . import BaseTransformersCLICommand






def A__       (	UpperCAmelCase_				):
						return DownloadCommand(args.model    ,    args.cache_dir    ,    args.force    ,    args.trust_remote_code				)






class 				lowercase__      (				lowercase  ):





	@staticmethod
	def       UpperCamelCase_    (					lowerCamelCase__   :							ArgumentParser					):







							'''simple docstring'''
							_UpperCamelCase   :						List[Any]												=  parser.add_parser('download'					)
							download_parser.add_argument(
							    '--cache-dir'					,type=lowerCamelCase__					,default=lowerCamelCase__					,help='Path to location to store the models'					)
							download_parser.add_argument(
							    '--force'					,action='store_true'					,help='Force the model to be download even if already in cache-dir'					)
							download_parser.add_argument(
							    '--trust-remote-code'					,action='store_true'					,help='Whether or not to allow for custom models defined on the Hub in their own modeling files. Use only if you\'ve reviewed the code as it will execute on your local machine'					,)
							download_parser.add_argument('model'					,type=lowerCamelCase__					,help='Name of the model to download'					)
							download_parser.set_defaults(func=lowerCamelCase__					)





	def __init__(					self   :							Union[str, Any]					,lowerCamelCase__   :							str					,lowerCamelCase__   :							str					,lowerCamelCase__   :							bool					,lowerCamelCase__   :							bool					):







							'''simple docstring'''
							_UpperCamelCase   :						List[str]												=  model
							_UpperCamelCase   :						Dict												=  cache
							_UpperCamelCase   :						Dict												=  force
							_UpperCamelCase   :						Optional[int]												=  trust_remote_code





	def       UpperCamelCase_    (					self   :							Tuple					):







							'''simple docstring'''
							from ..models.auto import AutoModel, AutoTokenizer

							AutoModel.from_pretrained(
							    self._model					,cache_dir=self._cache					,force_download=self._force					,trust_remote_code=self._trust_remote_code					)
							AutoTokenizer.from_pretrained(
							    self._model					,cache_dir=self._cache					,force_download=self._force					,trust_remote_code=self._trust_remote_code					)







'''simple docstring'''
def A__       (	UpperCAmelCase_    ,    UpperCAmelCase_				):
						return int((input_a, input_a).count(0				) != 0				)






def A__       (	):
						assert nand_gate(0    ,    0				) == 1
						assert nand_gate(0    ,    1				) == 1
						assert nand_gate(1    ,    0				) == 1
						assert nand_gate(1    ,    1				) == 0


if __name__ == "__main__":
					print(nand_gate(0, 0))
					print(nand_gate(0, 1))
					print(nand_gate(1, 0))
					print(nand_gate(1, 1))


