o
    wi|                  
   @   s   d dl Z d dlmZ d dlmZ dd ZedkrKe Zzejej	ej
ejdd W n eyC Z zed	e  W Y dZ[ndZ[ww ed
 dS dS )    N)api)loggingc                  C   sD   t jdd} | jdtdd | jdtdd | jdtd	d |  S )
NzHTest evaluation with lm-eval-harness on nemo2 model deployed on PyTriton)descriptionz--nemo2_ckpt_pathzNeMo 2.0 ckpt path)typehelpz--max_batch_sizezMax BS for the modelz--trtllm_dirzjFolder for the trt-llm conversion, trt-llm engine gets saved                         in this specified dir)argparseArgumentParseradd_argumentstrint
parse_args)parser r   [/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/tests/evaluation/deploy_script.pyget_args   s   r   __main__trtllm)nemo_checkpointmax_batch_sizetriton_model_repositorybackendz%Deploy process encountered an error: zDeploy process terminated.)r   nemo.collections.llmr   
nemo.utilsr   r   __name__argsdeploynemo2_ckpt_pathr   
trtllm_dir	Exceptioneerrorinfor   r   r   r   <module>   s&   
