+
    &j?                        R t ^ RIt^ RIHtHt ^ RIt^ RIHtHtH	t	 ^ RI
HtHt ^ RIHt ^RIHtHtHtHtHtHtHtHtHtHt ^RIHt ^RIHtHt ]! ]! ]4      4      t ]! ]4      t!]PD                  ! R	]! U u/ uF  q V bK  	  up ]#R
7      t$]]#R,          ]PJ                  ! RRPM                  ] 4       R2]! ] 4      R7      3,          t']! RR7      t(](PS                  R. ROR7      RRRRRR]RRRRRR3R R ll4       t*](PS                  RRR.R7      RR R ll4       t+](PS                  R. R OR7      R!R R ll4       t,R# u up i )"a  Contains commands to interact with models on the Hugging Face Hub.

Usage:
    # list models on the Hub
    hf models ls

    # list models with a search query
    hf models ls --search "llama"

    # get info about a model
    hf models info Lightricks/LTX-2
N)	Annotatedget_args)CLIErrorRepositoryNotFoundErrorRevisionNotFoundError)ExpandModelProperty_TModelSort_T)	ModelCard)
REPO_LIST_DEFAULT_LIMIT	AuthorOpt	FilterOptLimitOptRevisionOpt	SearchOptTokenOpt
get_hf_apimake_expand_properties_parsertyper_factory)list_repo_files_cmd)_dataclass_to_dictoutModelSortEnum)typezComma-separated properties to return. When used, only the listed properties (and id) are returned. Example: '--expand=downloads,likes,tags'. Valid: z, .)helpcallbackz Interact with models on the Hub.r   z	list | ls)examplesFc                   V ^8  d   QhR\         \        R,          \        P                  ! RR7      3,          R\        R\
        R\        R\         \        R,          \        P                  ! R	R7      3,          R
\         \        R,          \        P                  ! RR7      3,          R\        R\        R\         \        \        P                  ! RRRR7      3,          R\         \        \        P                  ! RRR7      3,          R\         \        \        P                  ! RRRR7      3,          R\        R\        RR/# )   repo_idNzRModel ID (e.g. `username/repo-name`) to list files from. If omitted, lists models.r   searchauthorfilternum_parametersz2Filter by parameter count, e.g. 'min:6B,max:128B'.sortzSort results.limitexpandhuman_readablez--human-readablez-hz=Show sizes in human readable format (only for listing files).as_treez--treez3List files in tree format (only for listing files).	recursivez--recursivez-Rz0List files recursively (only for listing files).revisiontokenreturn)r   strtyperArgumentr   r   r   Optionr   r   	ExpandOptboolr   r   )formats   "r/Users/jameslopez/projects/CWCArchive/cwc-podcast/.venv/lib/python3.14/site-packages/huggingface_hub/cli/models.py__annotate__r6   P   s`    U Ud
pq	sU
 U U U d
NO	QU /*	,U  !U" #U$ '4st	v%U, X$YZ	\-U4 ]D/ab	d5U< =U> ?U@ 
AU    c           
     n   V e   Ve   \         P                  ! R4      hVe   \         P                  ! R4      hVe   \         P                  ! R4      hVe   \         P                  ! R4      hVe   \         P                  ! R4      hV\        8w  d   \         P                  ! R4      hVe   \         P                  ! R4      h\        V R	VV	V
VVR
7      # V	'       d   \         P                  ! R4      hV
'       d   \         P                  ! R4      hV'       d   \         P                  ! R4      hVe   \         P                  ! R4      h\	        VR7      pV'       d   VP
                  MRpVP                  VVVVVVVR7       Uu. uF  p\        V4      NK  	  pp\        P                  ! V4       R# u upi )zList models on the Hub, or files in a model repo.

When called with no argument, lists models on the Hub.
When called with a model ID, lists files in that model repo.
Nz'Cannot use --search when listing files.z'Cannot use --author when listing files.z'Cannot use --filter when listing files.z/Cannot use --num-parameters when listing files.z%Cannot use --sort when listing files.z&Cannot use --limit when listing files.z'Cannot use --expand when listing files.model)r    	repo_typer(   r)   r*   r+   r,   z&Cannot use --tree when listing models.z+Cannot use --recursive when listing models.z0Cannot use --human-readable when listing models.z*Cannot use --revision when listing models.r,   )r#   r"   r!   r$   r%   r&   r'   )
r/   BadParameterr
   r   r   valuelist_modelsr   r   table)r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   apisort_key
model_inforesultss   &&&&&&&&&&&&&    r5   	models_lsrD   E   s   b $$%NOO$$%NOO$$%NOO%$$%VWW$$%LMM++$$%MNN$$%NOO")
 	
   !IJJ  !NOO  !STT  !MNN
5
!C!tzztH //) * 

J 	:&
   IIgs   F2infoz/hf models info meta-llama/Llama-3.2-1B-Instructz<hf models info Qwen/Qwen3.5-9B --expand downloads,likes,tagsc          
          V ^8  d   QhR\         \        \        P                  ! RR7      3,          R\        R\
        R\        RR/# )	r   model_id)The model ID (e.g. `username/repo-name`).r   r+   r'   r,   r-   N)r   r.   r/   r0   r   r2   r   )r4   s   "r5   r6   r6      sN      U^^1\]]^  	
 
r7   c                    \        VR7      p VP                  WVR7      p\
        P                  ! T4       R#   \         d   p\        RT  R24      ThRp?i\         d   p\        RT RT  R24      ThRp?ii ; i)	z"Get info about a model on the Hub.r;   )r    r+   r'   zModel 'z' not found.Nz
Revision 'z' not found on 'z'.)r   rB   r   r   r   r   dict)rG   r+   r'   r,   r@   rE   es   &&&&   r5   models_inforL      s     5
!CS~~h&~Q
 HHTN	 # @
,78a?  SH:-=hZrJKQRRSs'   9 A:AA:!A:"A55A:cardc                   V ^8  d   QhR\         \        \        P                  ! RR7      3,          R\         \        \        P
                  ! RRR7      3,          R\         \        \        P
                  ! RR	R7      3,          R
\        RR/# )r   rG   rH   r   metadataz
--metadataz'Output only the metadata from the card.textz--textz(Output only the text body (no metadata).r,   r-   N)r   r.   r/   r0   r3   r1   r   )r4   s   "r5   r6   r6      s     c cU^^1\]]^cell<>ghhic D%,,x6`aa
bc 	c
 
cr7   c                   V'       d   V'       d   \        R4      h\        P                  ! WR7      pV'       d1   \        P                  ! VP
                  P                  4       4       R# V'       d#   \        P                  ! VP                  4       R# \        P                  ! VP                  4       \        P                  ! RV  R24       R# )z3Get the model card (README) for a model on the Hub.z---metadata and --text are mutually exclusive.r;   zUse `hf models card z/ --metadata` to extract only the card metadata.N)
r   r	   loadr   rJ   datato_dictrP   contenthint)rG   rO   rP   r,   rM   s   &&&& r5   models_cardrW      sy      DFGG>>(0D""$%	'z1`abr7   )z(hf models ls --sort downloads --limit 10z1hf models ls --search "llama" --author meta-llamaz:hf models ls --num-parameters min:6B,max:128B --sort likesz-hf models ls meta-llama/Llama-3.2-1B-Instructz0hf models ls meta-llama/Llama-3.2-1B-Instruct -Rz7hf models ls meta-llama/Llama-3.2-1B-Instruct --tree -h)NNN)z$hf models card google/gemma-4-31B-itz/hf models card google/gemma-4-31B-it --metadataz=hf models card google/gemma-4-31B-it --metadata --format jsonz+hf models card google/gemma-4-31B-it --text)FFN)-__doc__enumtypingr   r   r/   huggingface_hub.errorsr   r   r   huggingface_hub.hf_apir   r   huggingface_hub.repocardr	   
_cli_utilsr
   r   r   r   r   r   r   r   r   r   _file_listingr   _outputr   r   sorted_EXPAND_PROPERTIES_SORT_OPTIONSEnumr.   r   r1   joinr2   
models_clicommandrD   rL   rW   )ss   0r5   <module>ri      s    &  [ [ E .   / , H%:;< %		/-+H-QqD-+HsS $J	LL d  ei  en  en  oA  eB  dC  CD  E./AB	  BC
   
 	 	 	- 	 	 	 ?U
Up 
9F  " 
  ccg ,Is   8E
