[examples] improve block_size warning message (#21463)
This commit is contained in:
@@ -459,8 +459,9 @@ def main():
|
||||
block_size = tokenizer.model_max_length
|
||||
if block_size > 1024:
|
||||
logger.warning(
|
||||
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."
|
||||
"The chosen tokenizer supports a `model_max_length` that is longer than the default `block_size` value"
|
||||
" of 1024. If you would like to use a longer `block_size` up to `tokenizer.model_max_length` you can"
|
||||
" override this default with `--block_size xxx`."
|
||||
)
|
||||
block_size = 1024
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user