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
6ccea048
Unverified
Commit
6ccea048
authored
Dec 15, 2020
by
Lysandre Debut
Committed by
GitHub
Dec 15, 2020
Browse files
Fix T5 model parallel tes (#9107)
k
parent
59da3f27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_modeling_t5.py
tests/test_modeling_t5.py
+3
-3
No files found.
tests/test_modeling_t5.py
View file @
6ccea048
...
...
@@ -484,9 +484,7 @@ class T5ModelTest(ModelTesterMixin, GenerationTesterMixin, unittest.TestCase):
all_model_classes
=
(
T5Model
,
T5ForConditionalGeneration
)
if
is_torch_available
()
else
()
all_generative_model_classes
=
(
T5ForConditionalGeneration
,)
if
is_torch_available
()
else
()
all_parallelizable_model_classes
=
(
(
T5Model
,
T5ForConditionalGeneration
,
T5EncoderModel
)
if
is_torch_available
()
else
()
)
all_parallelizable_model_classes
=
(
T5Model
,
T5ForConditionalGeneration
)
if
is_torch_available
()
else
()
test_pruning
=
False
test_torchscript
=
True
test_resize_embeddings
=
True
...
...
@@ -689,6 +687,8 @@ class T5EncoderOnlyModelTest(ModelTesterMixin, unittest.TestCase):
test_pruning
=
False
test_torchscript
=
True
test_resize_embeddings
=
False
test_model_parallel
=
True
all_parallelizable_model_classes
=
(
T5EncoderModel
,)
if
is_torch_available
()
else
()
def
setUp
(
self
):
self
.
model_tester
=
T5EncoderOnlyModelTester
(
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