diff --git a/src/transformers/generation/flax_utils.py b/src/transformers/generation/flax_utils.py index 65d65869af..f18cc0ea84 100644 --- a/src/transformers/generation/flax_utils.py +++ b/src/transformers/generation/flax_utils.py @@ -319,7 +319,7 @@ class FlaxGenerationMixin: "You have modified the pretrained model configuration to control generation. This is a" " deprecated strategy to control generation and will be removed soon, in a future version." " Please use a generation configuration file (see" - " https://huggingface.co/docs/transformers/main_classes/text_generation)" + " https://huggingface.co/docs/transformers/main_classes/text_generation )" ) self.generation_config = new_generation_config generation_config = self.generation_config diff --git a/src/transformers/generation/tf_utils.py b/src/transformers/generation/tf_utils.py index 5e4bc58c84..ff8be3dc0a 100644 --- a/src/transformers/generation/tf_utils.py +++ b/src/transformers/generation/tf_utils.py @@ -746,7 +746,7 @@ class TFGenerationMixin: "You have modified the pretrained model configuration to control generation. This is a" " deprecated strategy to control generation and will be removed soon, in a future version." " Please use a generation configuration file (see" - " https://huggingface.co/docs/transformers/main_classes/text_generation)" + " https://huggingface.co/docs/transformers/main_classes/text_generation )" ) self.generation_config = new_generation_config generation_config = self.generation_config diff --git a/src/transformers/generation/utils.py b/src/transformers/generation/utils.py index d077597ac6..eed177af9e 100644 --- a/src/transformers/generation/utils.py +++ b/src/transformers/generation/utils.py @@ -1260,7 +1260,7 @@ class GenerationMixin: "You have modified the pretrained model configuration to control generation. This is a" " deprecated strategy to control generation and will be removed soon, in a future version." " Please use a generation configuration file (see" - " https://huggingface.co/docs/transformers/main_classes/text_generation)" + " https://huggingface.co/docs/transformers/main_classes/text_generation )" ) self.generation_config = new_generation_config generation_config = self.generation_config