Tests Usage
-
Install
mindspeedpip install -e . -
Copy the entire
tests_extendto the root path ofMegatron-LMcp -r tests_extend {PATH_TO_MEGATRON_LM} -
Run a single test by pytest command line under
Megatron-LMroot pathcd {PATH_TO_MEGATRON_LM} pytest tests_extend/unit_tests/megatron/test_distrib_optimizer.py -
Run the whole tests
cd {PATH_TO_MEGATRON_LM} pytest tests_extend