From 7e6f36cd385d0bc8257eb3ef397b657b972be2a1 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Thu, 24 Apr 2025 14:11:56 +0200 Subject: [PATCH] Skip all `AriaForConditionalGenerationIntegrationTest` on `T4` (#37746) * skip * ruff * trigger CI --------- Co-authored-by: ydshieh --- tests/models/aria/test_modeling_aria.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/models/aria/test_modeling_aria.py b/tests/models/aria/test_modeling_aria.py index fb3404d263..2f802d9b70 100644 --- a/tests/models/aria/test_modeling_aria.py +++ b/tests/models/aria/test_modeling_aria.py @@ -31,6 +31,7 @@ from transformers.models.idefics3 import Idefics3VisionConfig from transformers.testing_utils import ( require_bitsandbytes, require_torch, + require_torch_large_accelerator, require_vision, slow, torch_device, @@ -291,6 +292,7 @@ class AriaForConditionalGenerationIntegrationTest(unittest.TestCase): torch.cuda.empty_cache() @slow + @require_torch_large_accelerator @require_bitsandbytes def test_small_model_integration_test(self): # Let's make sure we test the preprocessing to replace what is used @@ -313,6 +315,7 @@ class AriaForConditionalGenerationIntegrationTest(unittest.TestCase): ) @slow + @require_torch_large_accelerator @require_bitsandbytes def test_small_model_integration_test_llama_single(self): # Let's make sure we test the preprocessing to replace what is used @@ -335,6 +338,7 @@ class AriaForConditionalGenerationIntegrationTest(unittest.TestCase): ) @slow + @require_torch_large_accelerator @require_bitsandbytes def test_small_model_integration_test_llama_batched(self): # Let's make sure we test the preprocessing to replace what is used @@ -362,6 +366,7 @@ class AriaForConditionalGenerationIntegrationTest(unittest.TestCase): ) @slow + @require_torch_large_accelerator @require_bitsandbytes def test_small_model_integration_test_batch(self): # Let's make sure we test the preprocessing to replace what is used @@ -388,6 +393,7 @@ class AriaForConditionalGenerationIntegrationTest(unittest.TestCase): ) @slow + @require_torch_large_accelerator @require_bitsandbytes def test_small_model_integration_test_llama_batched_regression(self): # Let's make sure we test the preprocessing to replace what is used @@ -416,7 +422,7 @@ class AriaForConditionalGenerationIntegrationTest(unittest.TestCase): ) @slow - @require_torch + @require_torch_large_accelerator @require_vision @require_bitsandbytes def test_batched_generation(self): @@ -501,6 +507,7 @@ class AriaForConditionalGenerationIntegrationTest(unittest.TestCase): self.assertEqual(fast_tokenizer.tokenize(prompt), EXPECTED_OUTPUT) @slow + @require_torch_large_accelerator @require_bitsandbytes def test_generation_no_images(self): model_id = "rhymes-ai/Aria"