+
    Pj'                        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 ^RIHt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! ^R
I"H#t#H$t$ ]%! ]! ]4      4      t&]! ]4      t']PP                  ! R]' U u/ uF  q V bK  	  up ])R7      t*]PP                  ! R]%! ]! ]4      4       Uu/ uF  qVbK  	  up])R7      t+]])R,          ]!! RRPY                  ]&4       R2]! ]&4      R7      3,          t-]! RR7      t.].P_                  R. R!OR7      RRRRRRRRRRR]RRRRRR3R R ll4       t0].P_                  RRR.R7      R"R R ll4       t1].P_                  R. R#OR7      R$R R  ll4       t2R# u up i u upi )%zBContains commands to interact with models on the Hugging Face Hub.N)	Annotatedget_args)CLIErrorRepositoryNotFoundErrorRevisionNotFoundError)ExpandModelProperty_TModelSort_T)
PROVIDER_T)	ModelCard)REPO_LIST_DEFAULT_LIMIT	AuthorOpt	FilterOptLimitOptRevisionOpt	SearchOpt
SoftChoiceTokenOpt
get_hf_apimake_expand_properties_parsertyper_factory)list_repo_files_cmd)ArgumentOption)_dataclass_to_dictoutModelSortEnum)typeInferenceProviderEnumzComma-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,          \        RR7      3,          R\        R\        R\
        R\         \        R,          \        R	R
R7      3,          R\         \        R,          \        RRR7      3,          R\         \        \        ,          R,          \        RRR7      3,          R\         \        R,          \        RR7      3,          R\         \        \        ,          R,          \        R\        \        4      RR7      3,          R\         \        \        RRR7      3,          R\         \        R,          \        RR7      3,          R\        R\        R\         \        \        RR R!R7      3,          R"\         \        \        R#R$R7      3,          R%\         \        \        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pipeline_tagz--pipeline-tagz>Filter by pipeline tag (canonical task), e.g. 'summarization'.gatedz--gated/--no-gatedzRFilter by gated status. '--gated' for gated only, '--no-gated' for non-gated only.appsz--appszAFilter by app(s) that can run the model, e.g. 'ollama' or 'vllm'.num_parametersz2Filter by parameter count, e.g. 'min:6B,max:128B'.inference_providerz--inference-providerzGFilter by inference provider(s) serving the model, e.g. 'fireworks-ai'.)
click_typer   warmz--warmzEOnly list models currently served by at least one inference provider.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   strr   r   r   r   r   boollistr   r   r   r   	ExpandOptr   r   )formats   "s/Users/ahmed/devFolder/Ultron/claude-voice/gateway/.venv/lib/python3.14/site-packages/huggingface_hub/cli/models.py__annotate__r?   P   s6    E
 E
d
jk	mE

 E
 E
 E
 d
&fg	iE
 t e	
	E
& S	Dxab	d'E
. d
HI	K/E
6 "S	D"!"78Z	
	7E
F xef	hGE
N O$	&OE
V WE
X YE
Z !4.mn	p[E
b xST	VcE
j }d)[\	^kE
r sE
t uE
v 
wE
    c                :   V EeV   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e   \         P                  ! R4      hVe   \         P                  ! R4      hVe   \         P                  ! R	4      hV	'       d   \         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	'       d   Ve   \         P                  ! R4      h\	        VR7      pV
'       d   V
P
                  MRpTP                  TTTTTTTV	'       d   RMRVVVVR7       Uu. uF  p\        V4      NK  	  pp\        P                  ! V4       Vf	   V	'       d#   V'       g   \        P                  ! R4       R# R# 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 --pipeline-tag when listing files.z1Cannot use --gated/--no-gated when listing files.z%Cannot use --apps when listing files.z/Cannot use --num-parameters when listing files.z3Cannot use --inference-provider when listing files.z%Cannot use --warm 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_typer3   r4   r5   r6   r7   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.z5Cannot use --warm together with --inference-provider.r7   r/   )r(   r'   r&   r)   r*   r+   r,   	inferencer-   r0   r1   r2   zsUse `--expand inferenceProviderMapping` to see which provider serves each model and the provider-specific model id.)clickBadParameterr   r   r   valuelist_modelsr   r   tablehint)r%   r&   r'   r(   r)   r*   r+   r,   r-   r/   r0   r1   r2   r3   r4   r5   r6   r7   apisort_key
model_inforesultss   &&&&&&&&&&&&&&&&&&    r>   	models_lsrP   @   so   b $$%NOO$$%NOO$$%NOO#$$%TUU$$%XYY$$%LMM%$$%VWW)$$%Z[[$$%LMM$$%LMM++$$%MNN$$%NOO")
 	
   !IJJ  !NOO  !STT  !MNN".  !XYY
5
!C!tzztH //%) $f$1 * 

J 	:&
  " IIg&$ B	
 9?$%s   <Jinfoz/hf models info meta-llama/Llama-3.2-1B-Instructz<hf models info Qwen/Qwen3.5-9B --expand downloads,likes,tagsc          
      z    V ^8  d   QhR\         \        \        RR7      3,          R\        R\        R\
        RR/# )	r$   model_id)The model ID (e.g. `username/repo-name`).r!   r6   r2   r7   r8   N)r   r9   r   r   r<   r   )r=   s   "r>   r?   r?      sJ      X+VWWX  	
 
r@   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.rD   )r%   r6   r2   zModel 'z' not found.Nz
Revision 'z' not found on 'z'.)r   rN   r   r   r   r   dict)rS   r6   r2   r7   rL   rQ   es   &&&&   r>   models_inforX      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\         \        \        RR7      3,          R\         \        \	        RRR7      3,          R\         \        \	        RR	R7      3,          R
\
        RR/# )r$   rS   rT   r!   metadataz
--metadataz'Output only the metadata from the card.textz--textz(Output only the text body (no metadata).r7   r8   N)r   r9   r   r:   r   r   )r=   s   "r>   r?   r?      su     c cX+VWWXcf\8abbcc D&0Z[[
\c 	c
 
cr@   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.rD   zUse `hf models card z/ --metadata` to extract only the card metadata.N)
r   r
   loadr   rV   datato_dictr\   contentrK   )rS   r[   r\   r7   rY   s   &&&& r>   models_cardrb      sy      DFGG>>(0D""$%	'z1`abr@   )z(hf models ls --sort downloads --limit 10z1hf models ls --search "llama" --author meta-llamaz2hf models ls --pipeline-tag text-generation --warmz:hf models ls --num-parameters min:6B,max:128B --sort likesz'hf models ls --no-gated --author googlez)hf models ls --apps llama.cpp --apps vllmz?hf models ls --inference-provider fireworks-ai --sort downloadsz"hf models ls --warm --search llamaz-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)3__doc__enumtypingr   r   rF   huggingface_hub.errorsr   r   r   huggingface_hub.hf_apir   r   $huggingface_hub.inference._providersr	   huggingface_hub.repocardr
   
_cli_utilsr   r   r   r   r   r   r   r   r   r   r   _file_listingr   
_frameworkr   r   _outputr   r   sorted_EXPAND_PROPERTIES_SORT_OPTIONSEnumr9   r   r   joinr<   
models_clicommandrP   rX   rb   )sps   00r>   <module>rw      s   I  &  [ [ E ; .    / ( , H%:;< %		/-+H-QqD-+HsS		F8J3G,HI,Hqd,HIPS 
 $J
 d  ei  en  en  oA  eB  dC  CD  E./AB	  BC
   ( 	 	 	 	 	 	 	 	- 	 	 	 uE
! E
P 
9F  " 
  ccW ,IIs   E=
9F
