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
ab44630d
Unverified
Commit
ab44630d
authored
May 22, 2020
by
Sam Shleifer
Committed by
GitHub
May 22, 2020
Browse files
[Summarization Pipeline]: Fix default tokenizer (#4506)
* Fix pipelines defaults bug * one liner * style
parent
2c1ebb8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/transformers/pipelines.py
src/transformers/pipelines.py
+1
-5
No files found.
src/transformers/pipelines.py
View file @
ab44630d
...
...
@@ -1628,11 +1628,7 @@ SUPPORTED_TASKS = {
"impl"
:
SummarizationPipeline
,
"tf"
:
TFAutoModelWithLMHead
if
is_tf_available
()
else
None
,
"pt"
:
AutoModelWithLMHead
if
is_torch_available
()
else
None
,
"default"
:
{
"model"
:
{
"pt"
:
"bart-large-cnn"
,
"tf"
:
"t5-small"
},
"config"
:
None
,
"tokenizer"
:
{
"pt"
:
(
"bart-large-cnn"
,
{
"use_fast"
:
False
}),
"tf"
:
"t5-small"
},
},
"default"
:
{
"model"
:
{
"pt"
:
"bart-large-cnn"
,
"tf"
:
"t5-small"
},
"config"
:
None
,
"tokenizer"
:
None
},
},
"translation_en_to_fr"
:
{
"impl"
:
TranslationPipeline
,
...
...
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