Skip to content

Commit

Permalink
Fixed typo in generation_utils.py (huggingface#19145)
Browse files Browse the repository at this point in the history
Changed "unfeasable" to "unfeasible"
  • Loading branch information
nbalepur authored and oneraghavan committed Sep 26, 2022
1 parent 966f568 commit a888c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/generation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ def generate(

if min_length is not None and min_length > max_length:
raise ValueError(
f"Unfeasable length constraints: the minimum length ({min_length}) is larger than the maximum "
f"Unfeasible length constraints: the minimum length ({min_length}) is larger than the maximum "
f"length ({max_length})"
)
if input_ids_seq_length >= max_length:
Expand Down

0 comments on commit a888c29

Please sign in to comment.