Generate: skip left-padding tests on old models (#23437)

This commit is contained in:
Joao Gante
2023-05-18 11:04:51 +01:00
committed by GitHub
parent a8732e09bb
commit aea7b23b57
16 changed files with 65 additions and 3 deletions

View File

@@ -818,3 +818,7 @@ class MvpStandaloneDecoderModelTest(ModelTesterMixin, GenerationTesterMixin, uni
def test_retain_grad_hidden_states_attentions(self):
# decoder cannot keep gradients
return
@unittest.skip("The model doesn't support left padding") # and it's not used enough to be worth fixing :)
def test_left_padding_compatibility(self):
pass