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
dej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d	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--legacy_ckpt
store_truez/Whether the nemo checkpoint is in legacy format)actionr   )argparseArgumentParseradd_argumentstrint
parse_args)parser r   a/home/ubuntu/sommelier/.venv/lib/python3.10/site-packages/tests/evaluation/deploy_in_fw_script.pyget_args   s   r   __main__i"  )nemo_checkpointmax_batch_sizefastapi_portlegacy_ckptz%Deploy process encountered an error: zDeploy process terminated.)r	   nemo.collections.llmr   
nemo.utilsr   r   __name__argsdeploynemo2_ckpt_pathr   r   	Exceptioneerrorinfor   r   r   r   <module>   s&   

