Unverified Commit 3cfdefaa authored by regisss's avatar regisss Committed by GitHub
Browse files

Fix typo in error message in generation_utils (#18000)

parent cf2578ae
...@@ -1456,7 +1456,7 @@ class GenerationMixin: ...@@ -1456,7 +1456,7 @@ class GenerationMixin:
raise ValueError("`max_length` needs to be a stopping_criteria for now.") raise ValueError("`max_length` needs to be a stopping_criteria for now.")
if num_beams <= 1: if num_beams <= 1:
raise ValueError("`num_beams` needs to be greater than 1 for constrained genertation.") raise ValueError("`num_beams` needs to be greater than 1 for constrained generation.")
if do_sample: if do_sample:
raise ValueError("`do_sample` needs to be false for constrained generation.") raise ValueError("`do_sample` needs to be false for constrained generation.")
......
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