"templates/vscode:/vscode.git/clone" did not exist on "13c185771847370d695b8eee3cbf12f4edc2111c"
Unverified Commit c9693668 authored by Manuel Romero's avatar Manuel Romero Committed by GitHub
Browse files

Fix typo in comments (#10157)

parent c9837a0d
......@@ -1245,7 +1245,7 @@ class GenerationMixin:
outputs, model_kwargs, is_encoder_decoder=self.config.is_encoder_decoder
)
# stop when there is a </s> in each sentence, or if we exceed the maximul length
# stop when there is a </s> in each sentence, or if we exceed the maximum length
if unfinished_sequences.max() == 0:
break
......@@ -1451,7 +1451,7 @@ class GenerationMixin:
sequence_lengths, unfinished_sequences, cur_len, next_tokens == eos_token_id
)
# stop when there is a </s> in each sentence, or if we exceed the maximul length
# stop when there is a </s> in each sentence, or if we exceed the maximum length
if unfinished_sequences.max() == 0:
break
......
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