From e64d99fa6b2aa7855d7af3c7388bd690feba1ec8 Mon Sep 17 00:00:00 2001 From: Ivan Reznikov Date: Tue, 13 Jun 2023 21:23:30 +0400 Subject: [PATCH] Update urls in warnings for rich rendering (#24136) * fixing typo in url in warnings * fixing typo in url in warnings * multi-line fix * multi-line fix * Update src/transformers/generation/utils.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> * Update src/transformers/generation/flax_utils.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> * Update src/transformers/generation/tf_utils.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --------- Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --- src/transformers/generation/flax_utils.py | 2 +- src/transformers/generation/tf_utils.py | 2 +- src/transformers/generation/utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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