Fix tests (#32649)
* skip failing tests * [no-filter] * [no-filter] * fix wording catch in FA2 test * [no-filter] * trigger normal CI without filtering
This commit is contained in:
@@ -2427,8 +2427,7 @@ class TestAttentionImplementation(unittest.TestCase):
|
||||
_ = AutoModel.from_pretrained(
|
||||
"hf-internal-testing/tiny-random-GPTBigCodeModel", attn_implementation="flash_attention_2"
|
||||
)
|
||||
|
||||
self.assertTrue("the package flash_attn seems not to be installed" in str(cm.exception))
|
||||
self.assertTrue("the package flash_attn seems to be not installed" in str(cm.exception))
|
||||
|
||||
def test_not_available_flash_with_config(self):
|
||||
if is_flash_attn_2_available():
|
||||
@@ -2443,7 +2442,7 @@ class TestAttentionImplementation(unittest.TestCase):
|
||||
attn_implementation="flash_attention_2",
|
||||
)
|
||||
|
||||
self.assertTrue("the package flash_attn seems not to be installed" in str(cm.exception))
|
||||
self.assertTrue("the package flash_attn seems to be not installed" in str(cm.exception))
|
||||
|
||||
def test_not_available_sdpa(self):
|
||||
if is_torch_sdpa_available():
|
||||
|
||||
Reference in New Issue
Block a user