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
6ae0bb52
Commit
6ae0bb52
authored
Aug 31, 2019
by
LysandreJik
Browse files
XLM 100 different URLs
parent
819b468f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pytorch_transformers/modeling_xlm.py
pytorch_transformers/modeling_xlm.py
+2
-2
pytorch_transformers/tokenization_xlm.py
pytorch_transformers/tokenization_xlm.py
+2
-2
No files found.
pytorch_transformers/modeling_xlm.py
View file @
6ae0bb52
...
...
@@ -45,7 +45,7 @@ XLM_PRETRAINED_MODEL_ARCHIVE_MAP = {
'xlm-clm-enfr-1024'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-clm-enfr-1024-pytorch_model.bin"
,
'xlm-clm-ende-1024'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-clm-ende-1024-pytorch_model.bin"
,
'xlm-mlm-17-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-17-1280-pytorch_model.bin"
,
'xlm-mlm-100-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-1
7
-1280-pytorch_model.bin"
,
'xlm-mlm-100-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-1
00
-1280-pytorch_model.bin"
,
}
XLM_PRETRAINED_CONFIG_ARCHIVE_MAP
=
{
'xlm-mlm-en-2048'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-en-2048-config.json"
,
...
...
@@ -57,7 +57,7 @@ XLM_PRETRAINED_CONFIG_ARCHIVE_MAP = {
'xlm-clm-enfr-1024'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-clm-enfr-1024-config.json"
,
'xlm-clm-ende-1024'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-clm-ende-1024-config.json"
,
'xlm-mlm-17-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-17-1280-config.json"
,
'xlm-mlm-100-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-1
7
-1280-config.json"
,
'xlm-mlm-100-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-1
00
-1280-config.json"
,
}
...
...
pytorch_transformers/tokenization_xlm.py
View file @
6ae0bb52
...
...
@@ -48,7 +48,7 @@ PRETRAINED_VOCAB_FILES_MAP = {
'xlm-clm-enfr-1024'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-clm-enfr-1024-vocab.json"
,
'xlm-clm-ende-1024'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-clm-ende-1024-vocab.json"
,
'xlm-mlm-17-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-17-1280-vocab.json"
,
'xlm-mlm-100-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-1
7
-1280-vocab.json"
,
'xlm-mlm-100-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-1
00
-1280-vocab.json"
,
},
'merges_file'
:
{
...
...
@@ -61,7 +61,7 @@ PRETRAINED_VOCAB_FILES_MAP = {
'xlm-clm-enfr-1024'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-enfr-1024-merges.txt"
,
'xlm-clm-ende-1024'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-ende-1024-merges.txt"
,
'xlm-mlm-17-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-17-1280-merges.txt"
,
'xlm-mlm-100-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-1
7
-1280-merges.txt"
,
'xlm-mlm-100-1280'
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xlm-mlm-1
00
-1280-merges.txt"
,
},
}
...
...
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