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
a96edb85
Unverified
Commit
a96edb85
authored
Mar 31, 2021
by
Lysandre Debut
Committed by
GitHub
Mar 31, 2021
Browse files
GPT Neo configuration needs to be set to use GPT2 tokenizer (#10992)
parent
bf0840ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/transformers/models/auto/tokenization_auto.py
src/transformers/models/auto/tokenization_auto.py
+2
-0
No files found.
src/transformers/models/auto/tokenization_auto.py
View file @
a96edb85
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
from
collections
import
OrderedDict
from
collections
import
OrderedDict
from
...
import
GPTNeoConfig
from
...configuration_utils
import
PretrainedConfig
from
...configuration_utils
import
PretrainedConfig
from
...file_utils
import
is_sentencepiece_available
,
is_tokenizers_available
from
...file_utils
import
is_sentencepiece_available
,
is_tokenizers_available
from
...utils
import
logging
from
...utils
import
logging
...
@@ -264,6 +265,7 @@ TOKENIZER_MAPPING = OrderedDict(
...
@@ -264,6 +265,7 @@ TOKENIZER_MAPPING = OrderedDict(
(
BigBirdConfig
,
(
BigBirdTokenizer
,
None
)),
(
BigBirdConfig
,
(
BigBirdTokenizer
,
None
)),
(
IBertConfig
,
(
RobertaTokenizer
,
RobertaTokenizerFast
)),
(
IBertConfig
,
(
RobertaTokenizer
,
RobertaTokenizerFast
)),
(
Wav2Vec2Config
,
(
Wav2Vec2CTCTokenizer
,
None
)),
(
Wav2Vec2Config
,
(
Wav2Vec2CTCTokenizer
,
None
)),
(
GPTNeoConfig
,
(
GPT2Tokenizer
,
GPT2TokenizerFast
)),
]
]
)
)
...
...
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