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
fdc487d8
Commit
fdc487d8
authored
Aug 21, 2019
by
thomwolf
Browse files
Add max length
parent
aa05dc89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
pytorch_transformers/tokenization_gpt2.py
pytorch_transformers/tokenization_gpt2.py
+1
-0
No files found.
pytorch_transformers/tokenization_gpt2.py
View file @
fdc487d8
...
@@ -58,6 +58,7 @@ PRETRAINED_VOCAB_FILES_MAP = {
...
@@ -58,6 +58,7 @@ PRETRAINED_VOCAB_FILES_MAP = {
PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
=
{
PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
=
{
'gpt2'
:
1024
,
'gpt2'
:
1024
,
'gpt2-medium'
:
1024
,
'gpt2-medium'
:
1024
,
'gpt2-large'
:
1024
,
}
}
@
lru_cache
()
@
lru_cache
()
...
...
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