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
fd690283
Unverified
Commit
fd690283
authored
Jun 08, 2021
by
Sylvain Gugger
Committed by
GitHub
Jun 08, 2021
Browse files
Properly indent block_size (#12070)
parent
49bee0ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/language-modeling/run_clm.py
examples/pytorch/language-modeling/run_clm.py
+1
-1
No files found.
examples/pytorch/language-modeling/run_clm.py
View file @
fd690283
...
...
@@ -364,7 +364,7 @@ def main():
f
"The tokenizer picked seems to have a very large `model_max_length` (
{
tokenizer
.
model_max_length
}
). "
"Picking 1024 instead. You can change that default value by passing --block_size xxx."
)
block_size
=
1024
block_size
=
1024
else
:
if
data_args
.
block_size
>
tokenizer
.
model_max_length
:
logger
.
warning
(
...
...
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