Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
e2b16485
Unverified
Commit
e2b16485
authored
Dec 14, 2023
by
Joao Gante
Committed by
GitHub
Dec 14, 2023
Browse files
SeamlessM4T: `test_retain_grad_hidden_states_attentions` is flaky (#28035)
parent
9e5c28c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests/models/seamless_m4t/test_modeling_seamless_m4t.py
tests/models/seamless_m4t/test_modeling_seamless_m4t.py
+5
-1
No files found.
tests/models/seamless_m4t/test_modeling_seamless_m4t.py
View file @
e2b16485
...
@@ -20,7 +20,7 @@ import tempfile
...
@@ -20,7 +20,7 @@ import tempfile
import
unittest
import
unittest
from
transformers
import
SeamlessM4TConfig
,
is_speech_available
,
is_torch_available
from
transformers
import
SeamlessM4TConfig
,
is_speech_available
,
is_torch_available
from
transformers.testing_utils
import
require_torch
,
slow
,
torch_device
from
transformers.testing_utils
import
is_flaky
,
require_torch
,
slow
,
torch_device
from
transformers.trainer_utils
import
set_seed
from
transformers.trainer_utils
import
set_seed
from
transformers.utils
import
cached_property
from
transformers.utils
import
cached_property
...
@@ -610,6 +610,10 @@ class SeamlessM4TModelWithSpeechInputTest(ModelTesterMixin, unittest.TestCase):
...
@@ -610,6 +610,10 @@ class SeamlessM4TModelWithSpeechInputTest(ModelTesterMixin, unittest.TestCase):
[
self
.
model_tester
.
num_attention_heads
,
encoder_seq_length
,
encoder_key_length
],
[
self
.
model_tester
.
num_attention_heads
,
encoder_seq_length
,
encoder_key_length
],
)
)
@
is_flaky
()
def
test_retain_grad_hidden_states_attentions
(
self
):
super
().
test_retain_grad_hidden_states_attentions
()
@
require_torch
@
require_torch
class
SeamlessM4TModelWithTextInputTest
(
class
SeamlessM4TModelWithTextInputTest
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment