
    ge                     V    d dl Z d dlmZmZ ddZd Zd Zedk    r e             dS dS )    N)execute_subprocess_asyncpath_in_accelerate_packagec                     | |                      d          }nt          j        d          }|                    dd d           | |                    t
                     |S )NtestzAccelerate test commandz--config_fileaT  The path to use to store the config file. Will default to a file named default_config.yaml in the cache location, which is the content of the environment `HF_HOME` suffixed with 'accelerate', or if you don't have such an environment variable, your cache directory ('~/.cache' or the content of `XDG_CACHE_HOME`) suffixed with 'huggingface'.)defaulthelp)func)
add_parserargparseArgumentParseradd_argumentset_defaultstest_command)
subparsersparsers     T/var/www/html/ai-engine/env/lib/python3.11/site-packages/accelerate/commands/test.pytest_command_parserr      sz    &&v..()BCC
"	  	 	 	 ...M    c                     t          ddd          }| j        |g}nd| j         d|                                 }dg|z   }t          |          }|j        dk    rt          d           d S d S )	N
test_utilsscriptsztest_script.pyz--config_file= zaccelerate-launchr   z?Test is a success! You are ready for your distributed training!)r   config_filesplitr   
returncodeprint)argsscript_name	test_argscmdresults        r   r   r   ,   s    ,\9FVWWK M		ET%5EEEEKKMM	
)
+C%c**FAOPPPPP r   c                  h    t                      } |                                 }t          |           d S N)r   
parse_argsr   )r   r   s     r   mainr%   :   s2     ""FDr   __main__r#   )r   accelerate.test_utilsr   r   r   r   r%   __name__ r   r   <module>r*      s   "  V V V V V V V V   ,Q Q Q   zDFFFFF r   