From 642e9f63af7c03b30bee97377a867275c3a1dd71 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Thu, 7 Dec 2023 09:05:13 +0100 Subject: [PATCH] fix --- .github/workflows/self-scheduled.yml | 2 +- tests/models/align/test_modeling_align.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/self-scheduled.yml b/.github/workflows/self-scheduled.yml index 50c4fb997b1493..1e59c935b1f0ec 100644 --- a/.github/workflows/self-scheduled.yml +++ b/.github/workflows/self-scheduled.yml @@ -58,7 +58,7 @@ jobs: name: Identify models to test working-directory: /transformers/tests run: | - echo "matrix=$(python3 -c 'import os; tests = os.getcwd(); model_tests = os.listdir(os.path.join(tests, "models")); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [f"models/{x}" for x in model_tests]))); d1.remove("models"); d = d2[:6] + d1[:0]; print(d)')" >> $GITHUB_OUTPUT + echo "matrix=$(python3 -c 'import os; tests = os.getcwd(); model_tests = os.listdir(os.path.join(tests, "models")); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [f"models/{x}" for x in model_tests]))); d1.remove("models"); d = d2[1:2] + d1[:0]; print(d)')" >> $GITHUB_OUTPUT - name: NVIDIA-SMI run: | diff --git a/tests/models/align/test_modeling_align.py b/tests/models/align/test_modeling_align.py index 0ca256b0c9b850..03d3e9773d93a1 100644 --- a/tests/models/align/test_modeling_align.py +++ b/tests/models/align/test_modeling_align.py @@ -466,12 +466,12 @@ def test_model(self): def test_multi_gpu_data_parallel_forward(self): super().test_multi_gpu_data_parallel_forward() - @unittest.skip(reason="Hidden_states is tested in individual model tests") def test_hidden_states_output(self): + assert 1 == 2 pass - @unittest.skip(reason="Inputs_embeds is tested in individual model tests") def test_inputs_embeds(self): + assert 1 == 2 pass @unittest.skip(reason="Retain_grad is tested in individual model tests")