Add torchrun specially for meta_reference

This commit is contained in:
Connor Hack 2024-11-06 11:12:55 -08:00
parent 274b5a0d0c
commit f6b658e8b9

View file

@ -239,8 +239,8 @@ jobs:
for file in "$dir"/test_*.py; do
test_name=$(basename "$file")
new_file="result-${dir_name}-${test_name}.xml"
if pytest -s -v ${TESTS_PATH}/${dir_name}/${test_name} -m "meta_reference and llama_3b" \
--junitxml="${{ github.workspace }}/${new_file}"; then
if torchrun $(which pytest) -s -v ${TESTS_PATH}/${dir_name}/${test_name} -m "meta_reference and llama_3b" \
--junitxml="${{ github.workspace }}/${new_file}"; then
echo "Test passed: $test_name"
else
echo "Test failed: $test_name"