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
19b7c9b0
Commit
19b7c9b0
authored
Aug 28, 2019
by
VictorSanh
Browse files
add DilBert model for squad
parent
fea921d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
pytorch_transformers/modeling_dilbert.py
pytorch_transformers/modeling_dilbert.py
+5
-3
No files found.
pytorch_transformers/modeling_dilbert.py
View file @
19b7c9b0
...
@@ -37,11 +37,13 @@ logger = logging.getLogger(__name__)
...
@@ -37,11 +37,13 @@ logger = logging.getLogger(__name__)
DILBERT_PRETRAINED_MODEL_ARCHIVE_MAP
=
{
DILBERT_PRETRAINED_MODEL_ARCHIVE_MAP
=
{
'dilbert-base-uncased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-pytorch_model.bin"
'dilbert-base-uncased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-pytorch_model.bin"
,
'dilbert-base-uncased-distilled-squad'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-distilled-squad-pytorch_model.bin"
}
}
DILBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
=
{
DILBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
=
{
'dilbert-base-uncased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-config.json"
'dilbert-base-uncased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-config.json"
,
'dilbert-base-uncased-distilled-squad'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-distilled-squad-config.json"
}
}
...
@@ -378,7 +380,7 @@ class DilBertPreTrainedModel(PreTrainedModel):
...
@@ -378,7 +380,7 @@ class DilBertPreTrainedModel(PreTrainedModel):
DILBERT_START_DOCSTRING
=
r
"""
DILBERT_START_DOCSTRING
=
r
"""
Smaller, faster, cheaper, lighter: DilBERT
Smaller, faster, cheaper, lighter: DilBERT
For more information on DilBERT, you should check TODO(
Victor
): Link to Medium
For more information on DilBERT, you should check TODO(
Link
): Link to Medium
Parameters:
Parameters:
config (:class:`~pytorch_transformers.DilBertConfig`): Model configuration class with all the parameters of the model.
config (:class:`~pytorch_transformers.DilBertConfig`): Model configuration class with all the parameters of the model.
...
...
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