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
c78f5772
Unverified
Commit
c78f5772
authored
Mar 20, 2024
by
Zach Mueller
Committed by
GitHub
Mar 20, 2024
Browse files
Update test reqs to include sentencepiece (#29756)
* Update test reqs * Clean
parent
d91fd7f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
setup.py
setup.py
+1
-0
tests/trainer/test_trainer_seq2seq.py
tests/trainer/test_trainer_seq2seq.py
+2
-1
No files found.
setup.py
View file @
c78f5772
...
...
@@ -321,6 +321,7 @@ extras["testing"] = (
"beautifulsoup4"
,
"tensorboard"
,
"pydantic"
,
"sentencepiece"
,
)
+
extras
[
"retrieval"
]
+
extras
[
"modelcreation"
]
...
...
tests/trainer/test_trainer_seq2seq.py
View file @
c78f5772
...
...
@@ -22,7 +22,7 @@ from transformers import (
Seq2SeqTrainingArguments
,
T5Tokenizer
,
)
from
transformers.testing_utils
import
TestCasePlus
,
require_torch
,
slow
from
transformers.testing_utils
import
TestCasePlus
,
require_sentencepiece
,
require_torch
,
slow
from
transformers.utils
import
is_datasets_available
...
...
@@ -30,6 +30,7 @@ if is_datasets_available():
import
datasets
@
require_sentencepiece
class
Seq2seqTrainerTester
(
TestCasePlus
):
@
slow
@
require_torch
...
...
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