Skip to content

Commit

Permalink
Properly indent block_size (huggingface#12070)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger committed Jun 8, 2021
1 parent 49bee0a commit fd69028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pytorch/language-modeling/run_clm.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def tokenize_function(examples):
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(
Expand Down

0 comments on commit fd69028

Please sign in to comment.