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
7af07779
Commit
7af07779
authored
Oct 03, 2019
by
Brian Ma
Committed by
Lysandre Debut
Oct 03, 2019
Browse files
Update run_glue.py
add DistilBert model shortcut into ALL_MODELS
parent
c1689ac3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
examples/run_glue.py
examples/run_glue.py
+2
-1
No files found.
examples/run_glue.py
View file @
7af07779
...
...
@@ -53,7 +53,8 @@ from transformers import glue_convert_examples_to_features as convert_examples_t
logger
=
logging
.
getLogger
(
__name__
)
ALL_MODELS
=
sum
((
tuple
(
conf
.
pretrained_config_archive_map
.
keys
())
for
conf
in
(
BertConfig
,
XLNetConfig
,
XLMConfig
,
RobertaConfig
)),
())
ALL_MODELS
=
sum
((
tuple
(
conf
.
pretrained_config_archive_map
.
keys
())
for
conf
in
(
BertConfig
,
XLNetConfig
,
XLMConfig
,
RobertaConfig
,
DistilBertConfig
)),
())
MODEL_CLASSES
=
{
'bert'
:
(
BertConfig
,
BertForSequenceClassification
,
BertTokenizer
),
...
...
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