o
    ۷i                     @   s   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ d d	lmZ d d
lmZ dd Zdd ZedkrKe  dS dS )    N)HfArgumentParser)AddFastImageProcessorCommand)AddNewModelLikeCommand)ChatCommand)ConvertCommand)DownloadCommand)EnvironmentCommand)
RunCommand)ServeCommandc                   C   s   t dt t  d S )Nz``transformers-cli` is deprecated in favour of `transformers` directly and will be removed in v5.)warningswarnDeprecationWarningmain r   r   \/home/ubuntu/vllm_env/lib/python3.10/site-packages/transformers/commands/transformers_cli.pymain_cli   s
   
r   c                  C   s   t ddd} | jdd}t| t| t| t| t| t| t	| t
| |  }t|dsE|   td ||}|  d S )NzTransformers CLI toolztransformers <command> [<args>])progusageztransformers command helpers)helpfunc   )r   add_subparsersr   register_subcommandr   r   r   r	   r
   r   r   
parse_argshasattr
print_helpexitr   run)parsercommands_parserargsservicer   r   r   r   $   s    









r   __main__)r   transformersr   .transformers.commands.add_fast_image_processorr   (transformers.commands.add_new_model_liker   transformers.commands.chatr   transformers.commands.convertr   transformers.commands.downloadr   transformers.commands.envr   transformers.commands.runr	   transformers.commands.servingr
   r   r   __name__r   r   r   r   <module>   s   
