Fix FA2 tests (#29909)

* fix FA2 tests

* refactor inference test name
This commit is contained in:
Yoach Lacombe
2024-04-01 08:51:00 +01:00
committed by GitHub
parent 3b8e2932ce
commit 569f6c7d43
9 changed files with 15 additions and 19 deletions

View File

@@ -301,7 +301,7 @@ class DistilBertModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCa
@require_torch_accelerator
@pytest.mark.flash_attn_test
@slow
def test_flash_attn_2_inference(self):
def test_flash_attn_2_inference_equivalence(self):
import torch
for model_class in self.all_model_classes:
@@ -353,7 +353,7 @@ class DistilBertModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCa
@require_torch_accelerator
@pytest.mark.flash_attn_test
@slow
def test_flash_attn_2_inference_padding_right(self):
def test_flash_attn_2_inference_equivalence_right_padding(self):
import torch
for model_class in self.all_model_classes: