Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
120649bf
Unverified
Commit
120649bf
authored
Jun 14, 2022
by
Suraj Patil
Committed by
GitHub
Jun 14, 2022
Browse files
[LongT5] disable model parallel test (#17702)
parent
7ec9128e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
tests/models/longt5/test_modeling_longt5.py
tests/models/longt5/test_modeling_longt5.py
+2
-4
No files found.
tests/models/longt5/test_modeling_longt5.py
View file @
120649bf
...
...
@@ -505,11 +505,10 @@ class LongT5ModelTest(ModelTesterMixin, GenerationTesterMixin, unittest.TestCase
all_model_classes
=
(
LongT5Model
,
LongT5ForConditionalGeneration
)
if
is_torch_available
()
else
()
all_generative_model_classes
=
(
LongT5ForConditionalGeneration
,)
if
is_torch_available
()
else
()
fx_compatible
=
False
all_parallelizable_model_classes
=
(
LongT5Model
,
LongT5ForConditionalGeneration
)
if
is_torch_available
()
else
()
test_pruning
=
False
test_torchscript
=
True
test_resize_embeddings
=
True
test_model_parallel
=
Tru
e
test_model_parallel
=
Fals
e
is_encoder_decoder
=
True
def
setUp
(
self
):
...
...
@@ -1013,8 +1012,7 @@ class LongT5EncoderOnlyModelTest(ModelTesterMixin, unittest.TestCase):
test_pruning
=
False
test_torchscript
=
True
test_resize_embeddings
=
False
test_model_parallel
=
True
all_parallelizable_model_classes
=
(
LongT5EncoderModel
,)
if
is_torch_available
()
else
()
test_model_parallel
=
False
def
setUp
(
self
):
self
.
model_tester
=
LongT5EncoderOnlyModelTester
(
self
)
...
...
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