"...metaportrait_pytorch.git" did not exist on "5cd956ef82be839a3161de3b722550ba8a637266"
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