"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "1ad7b0398c02a84fb3dd1f110a99d609e1df6726"
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:
raise ValueError("`max_length` needs to be a stopping_criteria for now.")
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:
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