Unverified Commit a9b63ca9 authored by Juarez Bochi's avatar Juarez Bochi Committed by GitHub
Browse files

Add missing space in generation/utils.py (#26121)

Add missing space in utils.py

Warning now reads as "...  to control thegeneration length. We ..."
parent c8b26096
...@@ -1258,7 +1258,7 @@ class GenerationMixin: ...@@ -1258,7 +1258,7 @@ class GenerationMixin:
if has_default_max_length and generation_config.max_new_tokens is None and generation_config.max_length == 20: if has_default_max_length and generation_config.max_new_tokens is None and generation_config.max_length == 20:
# 20 is the default max_length of the generation config # 20 is the default max_length of the generation config
warnings.warn( warnings.warn(
f"Using the model-agnostic default `max_length` (={generation_config.max_length}) to control the" f"Using the model-agnostic default `max_length` (={generation_config.max_length}) to control the "
"generation length. We recommend setting `max_new_tokens` to control the maximum length of the " "generation length. We recommend setting `max_new_tokens` to control the maximum length of the "
"generation.", "generation.",
UserWarning, UserWarning,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment