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
906581ae
Commit
906581ae
authored
Aug 28, 2019
by
VictorSanh
Browse files
add s3 links for dilbert (+fix small typo)
parent
b247b0d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pytorch_transformers/modeling_dilbert.py
pytorch_transformers/modeling_dilbert.py
+3
-3
No files found.
pytorch_transformers/modeling_dilbert.py
View file @
906581ae
...
...
@@ -37,11 +37,11 @@ logger = logging.getLogger(__name__)
DILBERT_PRETRAINED_MODEL_ARCHIVE_MAP
=
{
'dilbert-base-uncased'
:
None
,
# TODO(Victor)
'dilbert-base-uncased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-pytorch_model.bin"
}
DILBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
=
{
'dilbert-base-uncased'
:
None
,
#TODO(Victor)
'dilbert-base-uncased'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/dilbert-base-uncased-config.json"
}
...
...
@@ -85,7 +85,7 @@ class DilBertConfig(PretrainedConfig):
self
.
tie_weights_
=
tie_weights_
else
:
raise
ValueError
(
"First argument must be either a vocabulary size (int)"
"or the path to a pretrained model config file (str)"
)
"
or the path to a pretrained model config file (str)"
)
### UTILS AND BUILDING BLOCKS OF THE ARCHITECTURE ###
...
...
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