+
    &jj                          R t ^ RIt^ RIHt ^ RIt^ RIHt ^ RIHt ^ RI	H
t
Ht ^ RIHt ^RIHtHtHtHt ^RIHt . ROtR]P,                  RRRRRR	R	R^3R
 R lltR# )a  Contains command to download files from the Hub with the CLI.

Usage:
    hf download --help

    # Download file
    hf download gpt2 config.json

    # Download entire repo
    hf download fffiloni/zeroscope --repo-type=space --revision=refs/pr/78

    # Download repo with filters
    hf download gpt2 --include="*.safetensors"

    # Download with token
    hf download Wauplin/private-model --token=hf_***

    # Download quietly (no progress bar, no warnings, only the returned path)
    hf download gpt2 config.json --quiet

    # Download to local dir
    hf download gpt2 --local-dir=./models/gpt2

    # Download a subfolder
    hf download HuggingFaceM4/FineVision art/ --repo-type=dataset
N)	Annotated)snapshot_downloadCLIError)DryRunFileInfohf_hub_download)_format_size)	RepoIdArgRepoTypeOptRevisionOptTokenOpt)outFc                T   V ^8  d   QhR\         R\        \        \        ,          R,          \        P
                  ! RR7      3,          R\        R\        R\        \        \        ,          R,          \        P                  ! R	R7      3,          R
\        \        \        ,          R,          \        P                  ! RR7      3,          R\        \        R,          \        P                  ! RR7      3,          R\        \        R,          \        P                  ! RR7      3,          R\        \        \        P                  ! RR7      3,          R\        \        \        P                  ! RR7      3,          R\        R\        \        \        P                  ! 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strtyperArgumentr
   r   Optionboolr   int)formats   "t/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/huggingface_hub/cli/download.py__annotate__r'   @   s    [" ["["S	DQ	
	[" [" [" S	DN	
	["  S	DC	
	![", d
1	
	-["8 d
 M	
	9["D Y	
	E["P T	
	Q["\ ]["^ X	
	_["j 
k["    c                   a aaaaaaaaa	a
a Se   Se   \        R4      h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.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  d7   \        V4      ^ 8X  d'   \        SSP                  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P                  SVVSSSSR
SSR7      # u upi u upi u upi )N/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 being explicitly set.z?Ignoring `--exclude` since filenames have being explicitly set.zhuggingface-cli)
r   r   r   filenamer   r   r   r   library_namer   )r   r   r   allow_patternsignore_patternsr   r   r   r   r0   r   r   )	endswithrstriplenr   warningswarnr   valuer   )filenames_listf
subfolderssubfolder_patternsregular_filenamesr1   r2   r   r   r   r   r   r   r   r   r   r   r   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 oo)+)*#
 	
e DHNs   G0G0G5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   .c                     V P                   # rF   )r/   )xs   &r&   <lambda>1download.<locals>._print_result.<locals>.<lambda>   s    QZZr(   )keyfilesize-)
isinstancer   r   rA   r   will_downloadtextr5   r   sumsortedr/   rG   table)rA   rI   rV   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   )r   r   r   r   r   r   r   r   r   r   r   r   r>   r]   s   ffffffffffff  r&   downloadr_   @   sI    n !6O
 	
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 dataset)__doc__r6   typingr   r    "huggingface_hub._snapshot_downloadr   huggingface_hub.errorsr   huggingface_hub.file_downloadr   r   huggingface_hub.utilsr   
_cli_utilsr	   r
   r   r   _outputr   DOWNLOAD_EXAMPLESmodelr_    r(   r&   <module>rk      sv   6    @ + I . E E    	(..  	 	 	 	 	 	 	
i[" ["r(   