o
    }oi                     @   sb   d dl Zd dlmZ d dlmZ ejjejddej	fddZ
edkr/ejjeje
d	 dS dS )
    N)llm)	train_vae)targetreturnc                  C   s0   t  } tjtj| j| j| j| j| j	d| j
dd	S )a0  
    Create a partial function for validating a VAE (Variational Autoencoder) model.

    This function uses the training recipe defined in `train_vae()` to set up
    the model, data, trainer, logging, and optimization configurations for
    validation. It returns a Partial object that can be used by the NeMo run CLI
    to execute the validation procedure on the provided model and data.

    Returns:
        run.Partial: A partial object configured with llm.validate target
        and all necessary arguments extracted from the VAE training recipe.
    N)modeldatatrainerlogoptim	tokenizerresumemodel_transform)r   runPartialr   validater   r   r   r	   r
   r   )recipe r   _/home/ubuntu/.local/lib/python3.10/site-packages/nemo/collections/diffusion/vae/validate_vae.pyvalidate_vae   s   r   __main__)default_factory)nemo_runr   nemo.collectionsr   (nemo.collections.diffusion.vae.train_vaer   clifactoryr   r   r   __name__mainr   r   r   r   <module>   s   