+
    Pj%                         R t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
HtHt ^ RIHtHt ^RIHtHtHtHtHt ^R	IHtHt ^R
IHt . ROtRR R lltR# )z=Contains command to download files from the Hub with the CLI.N)	Annotated)	constants)snapshot_download)CLIError)DryRunFileInfohf_hub_download)_format_sizeparse_hf_uri)	RepoIdArgRepoTypeRepoTypeOptionalOptRevisionOptTokenOpt)ArgumentOption)outc                   V ^8  d   QhR\         R\        \        \        ,          R,          \	        RR7      3,          R\
        R\        R\        \        \        ,          R,          \        R	R7      3,          R
\        \        \        ,          R,          \        RR7      3,          R\        \        R,          \        RR7      3,          R\        \        R,          \        RR7      3,          R\        \        \        RR7      3,          R\        \        \        RR7      3,          R\        R\        \        \        RR7      3,          RR/# )   repo_id	filenamesNz>Files to download (e.g. `config.json`, `data/metadata.jsonl`).)help	repo_typerevisionincludez;Glob patterns to include from files to download. eg: *.jsonexcludez0Glob patterns to exclude from files to download.	cache_dirzDirectory where to save files.	local_dirzIf set, the downloaded file will be placed under this directory. Check out https://huggingface.co/docs/huggingface_hub/guides/download#download-files-to-a-local-folder for more details.force_downloadzFIf True, the files will be downloaded even if they are already cached.dry_runzAIf True, perform a dry run without actually downloading the file.tokenmax_workerszEMaximum number of workers to use for downloading files. Default is 8.return)r
   r   liststrr   r   r   r   boolr   int)formats   "u/Users/ahmed/devFolder/Ultron/claude-voice/gateway/.venv/lib/python3.14/site-packages/huggingface_hub/cli/download.py__annotate__r(   (   s    y" y"y"S	DQ	
	y" #y" y" S	DN	
	y"  S	DC	
	!y", d
1	
	-y"8 d
 M	
	9y"D Y	
	Ey"P T	
	Qy"\ ]y"^ X	
	_y"j 
ky"    c                  a aaaaaaaa	a
aa Se   Se   \        R4      hS P                  \        P                  4      '       d   Ve   \        RS  R24      hSe   \        RS  R24      h\	        S 4      pVP
                  '       d   \        R4      hVP                  pV'       d!   S P                  R4      '       d
   VR,          pVP                  VP                  VP                  uo ooV'       d   S'       d   \        RV R	S R
24      hV.oM$T;'       g    \        P                  P                  oR VV	VVVVVVV VVV
3R llpR R lpV! V! 4       4       R# )zDownload files from the Hub.NzCannot use both `--local-dir` and `--cache-dir` at the same time. Use `--cache-dir` (or set the HF_HOME environment variable) for shared caching, or `--local-dir` for a one-off download to a specific directory.z3'--repo-type' cannot be used with an 'hf://' URI ('z').z2'--revision' cannot be used with an 'hf://' URI ('zBBuckets are not supported by `hf download`. Use `hf sync` instead./z.Cannot combine a file path in the hf:// URI ('z') with positional filenames .c                f    V ^8  d   QhR\         \        ,          \        \        ,          ,          /# )r   r!   r#   r   r"   )r&   s   "r'   r(   download.<locals>.__annotate__   s%     D
 D
#.n1EE D
r)   c                    < S
e   S
M. p V  Uu. uF  qP                  R4      '       g   K  VNK  	  ppV Uu. uF  qP                  R4       R2NK  	  ppV  Uu. uF  qP                  R4      '       d   K  VNK  	  pp\        V4      ^ 8  di   Se1   \        S4      ^ 8  d!   \        RV^ ,           RV^ ,           R24      hS	e1   \        S	4      ^ 8  d!   \        RV^ ,           RV^ ,           R24      h\        V4      ^ 8  dU   Se'   \        S4      ^ 8  d   \        P
                  ! R4       S	e'   \        S	4      ^ 8  d   \        P
                  ! R	4       \        V4      ^8X  d-   \        V4      ^ 8X  d   \        SSSV^ ,          SSSSR
SR7
      # \        V4      ^ 8X  d   \        V4      ^ 8X  d   SpS	pM
WC,           pR p\        SSSVVSSSSR
SSR7      # u upi u upi u upi )Nr+   z/**z$Cannot combine subfolder argument ('z,') with `--include`. Please use `--include "z*"` instead.z,') with `--exclude`. Please use `--include "z*"` with `--exclude` instead.z>Ignoring `--include` since filenames have been explicitly set.z>Ignoring `--exclude` since filenames have been explicitly set.zhuggingface-cli)
r   r   r   filenamer   r   r   r   library_namer   )r   r   r   allow_patternsignore_patternsr   r   r   r   r2   r    r   )endswithrstriplenr   warningswarnr   r   )filenames_listf
subfolderssubfolder_patternsregular_filenamesr3   r4   r   r   r   r   r   r   r   r    r   repo_type_strr   r   s          r'   run_downloaddownload.<locals>.run_download   s   &/&; "0CA::c?aa
C=GHZ#s3ZH(6N1jjoQQN !"Q&"s7|a'7::a=/ J..8m_LJ  "s7|a'7::a=/ J..8m_<Y[   !A%"s7|a'7^_"s7|a'7^_  !Q&3/A+Ba+G"'!*1-#-#.   !Q&3/A+Ba+G$N%O /CN"O #)+)*#
 	
e DHNs   GGG!G&6G&c                j    V ^8  d   QhR\         \        ,          \        \        ,          ,          RR/# )r   resultr!   Nr.   )r&   s   "r'   r(   r/      s)      cN2T.5II d r)   c                 Z   \        V \        4      '       d   \        P                  ! R V R7       R# \        V \        4      '       d   V .p V  Uu. uF  qP
                  '       g   K  VNK  	  pp\        P                  ! R\        V4       R\        V 4       R\        \        R V 4       4      4       R24       \        V R R	7       Uu. uF:  pR
VP                  RVP
                  '       d   \        VP                  4      MR/NK<  	  pp\        P                  ! V4       R# u upi u upi )
Downloaded)pathNz[dry-run] Will download z files (out of z) totalling c              3   8   "   T F  qP                   x  K  	  R # 5iN)	file_size).0rs   & r'   	<genexpr>2download.<locals>._print_result.<locals>.<genexpr>   s     *N1;;s   r,   c                     V P                   # rH   )r1   )xs   &r'   <lambda>1download.<locals>._print_result.<locals>.<lambda>   s    QZZr)   )keyfilesize-)
isinstancer#   r   rC   r   will_downloadtextr7   r   sumsortedr1   rI   table)rC   rK   rW   infoitemss   &    r'   _print_resultdownload.<locals>._print_result   s
   fc""JJ|&1 fn--XF$*>FqooF>&s='9&: ;F} %&s*N*N'NOPPQS	
 v+?@

 A 8J8J8JT^^4PS A 	 
 			% ?
s   D#&D#	#D(-D()r   
startswithr   HF_PROTOCOLr	   	is_bucketpath_in_repor5   idtyper   r   modelvalue)r   r   r   r   r   r   r   r   r   r   r   r    urirc   r@   r^   r?   s   ff&fffffffff    @r'   downloadri   (   sL   n !6O
 	
 )//00 PQXPYY\]^^OPWyX[\]]7#===_`` ''G,,S11CL+.66388S\\(D\NRopyozz{|  &I"44hnn;;D
 D
 D
L. ,.!r)   )z,hf download meta-llama/Llama-3.2-1B-InstructzGhf download meta-llama/Llama-3.2-1B-Instruct config.json tokenizer.jsonzXhf download meta-llama/Llama-3.2-1B-Instruct --include "*.safetensors" --exclude "*.bin"zGhf download meta-llama/Llama-3.2-1B-Instruct --local-dir ./models/llamaz=hf download HuggingFaceM4/FineVision art/ --repo-type datasetz6hf download hf://datasets/HuggingFaceH4/ultrachat_200k)NNNNNNNFFN   )__doc__r8   typingr   huggingface_hubr   "huggingface_hub._snapshot_downloadr   huggingface_hub.errorsr   huggingface_hub.file_downloadr   r   huggingface_hub.utilsr   r	   
_cli_utilsr
   r   r   r   r   
_frameworkr   r   _outputr   DOWNLOAD_EXAMPLESri    r)   r'   <module>rw      s@    D   % @ + I < W W (  y" y"r)   