From 257bc670fb0eb5e118468f0adfb6e011ddd96782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=9B=E9=9C=B2=E5=85=88=E7=94=9F?= Date: Sat, 29 Mar 2025 01:12:14 +0800 Subject: [PATCH] fixed typo. (#37057) Signed-off-by: zhanluxianshen Co-authored-by: Joao Gante --- src/transformers/generation/logits_process.py | 2 +- src/transformers/generation/tf_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transformers/generation/logits_process.py b/src/transformers/generation/logits_process.py index 0a349f3185..df51419970 100644 --- a/src/transformers/generation/logits_process.py +++ b/src/transformers/generation/logits_process.py @@ -1102,7 +1102,7 @@ class SequenceBiasLogitsProcessor(LogitsProcessor): self._convert_list_arguments_into_dict() # Bias variables that will be populated on the first call (for retrocompatibility purposes, the vocabulary size - # is infered in the first usage, which inhibits initializing here) + # is inferred in the first usage, which inhibits initializing here) self.length_1_bias = None self.prepared_bias_variables = False diff --git a/src/transformers/generation/tf_utils.py b/src/transformers/generation/tf_utils.py index b715bd86ac..262a85330a 100644 --- a/src/transformers/generation/tf_utils.py +++ b/src/transformers/generation/tf_utils.py @@ -483,7 +483,7 @@ class TFGenerationMixin: ) -> tf.Tensor: """ Computes the transition scores of sequences given the generation scores (and beam indices, if beam search was - used). This is a convenient method to quicky obtain the scores of the selected tokens at generation time. + used). This is a convenient method to quickly obtain the scores of the selected tokens at generation time. Parameters: sequences (`tf.Tensor`):