Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
42968138
Commit
42968138
authored
Aug 27, 2019
by
VictorSanh
Browse files
wip wouf
parent
1d232400
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
343 additions
and
65 deletions
+343
-65
pytorch_transformers/__init__.py
pytorch_transformers/__init__.py
+2
-0
pytorch_transformers/modeling_dilbert.py
pytorch_transformers/modeling_dilbert.py
+341
-65
No files found.
pytorch_transformers/__init__.py
View file @
42968138
...
...
@@ -40,6 +40,8 @@ from .modeling_xlm import (XLMConfig, XLMPreTrainedModel , XLMModel,
XLM_PRETRAINED_MODEL_ARCHIVE_MAP
)
from
.modeling_roberta
import
(
RobertaConfig
,
RobertaForMaskedLM
,
RobertaModel
,
RobertaForSequenceClassification
,
ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP
,
ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP
)
from
.modeling_dilbert
import
(
DilBertconfig
,
DilBertForMaskedLM
,
DilBertModel
,
DilBertForSequenceClassification
,
DILBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
,
DILBERT_PRETRAINED_MODEL_ARCHIVE_MAP
)
from
.modeling_utils
import
(
WEIGHTS_NAME
,
CONFIG_NAME
,
TF_WEIGHTS_NAME
,
PretrainedConfig
,
PreTrainedModel
,
prune_layer
,
Conv1D
)
...
...
pytorch_transformers/modeling_dilbert.py
View file @
42968138
This diff is collapsed.
Click to expand it.
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