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
d440e21f
Commit
d440e21f
authored
Jan 27, 2020
by
Malte Pietsch
Committed by
Julien Chaumond
Jan 27, 2020
Browse files
add mapping of roberta for QA
parent
875c4ae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/transformers/modeling_auto.py
src/transformers/modeling_auto.py
+2
-0
No files found.
src/transformers/modeling_auto.py
View file @
d440e21f
...
...
@@ -74,6 +74,7 @@ from .modeling_roberta import (
RobertaForSequenceClassification
,
RobertaForTokenClassification
,
RobertaModel
,
RobertaForQuestionAnswering
)
from
.modeling_t5
import
T5_PRETRAINED_MODEL_ARCHIVE_MAP
,
T5Model
,
T5WithLMHeadModel
from
.modeling_transfo_xl
import
TRANSFO_XL_PRETRAINED_MODEL_ARCHIVE_MAP
,
TransfoXLLMHeadModel
,
TransfoXLModel
...
...
@@ -177,6 +178,7 @@ MODEL_FOR_QUESTION_ANSWERING_MAPPING = OrderedDict(
[
(
DistilBertConfig
,
DistilBertForQuestionAnswering
),
(
AlbertConfig
,
AlbertForQuestionAnswering
),
(
RobertaConfig
,
RobertaForQuestionAnswering
),
(
BertConfig
,
BertForQuestionAnswering
),
(
XLNetConfig
,
XLNetForQuestionAnswering
),
(
XLMConfig
,
XLMForQuestionAnswering
),
...
...
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