Unverified Commit e64d99fa authored by Ivan Reznikov's avatar Ivan Reznikov Committed by GitHub
Browse files

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: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/generation/flax_utils.py
Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>

* Update src/transformers/generation/tf_utils.py
Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>

---------
Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
parent cf561d7c
...@@ -319,7 +319,7 @@ class FlaxGenerationMixin: ...@@ -319,7 +319,7 @@ class FlaxGenerationMixin:
"You have modified the pretrained model configuration to control generation. This is a" "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." " deprecated strategy to control generation and will be removed soon, in a future version."
" Please use a generation configuration file (see" " 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 self.generation_config = new_generation_config
generation_config = self.generation_config generation_config = self.generation_config
......
...@@ -746,7 +746,7 @@ class TFGenerationMixin: ...@@ -746,7 +746,7 @@ class TFGenerationMixin:
"You have modified the pretrained model configuration to control generation. This is a" "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." " deprecated strategy to control generation and will be removed soon, in a future version."
" Please use a generation configuration file (see" " 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 self.generation_config = new_generation_config
generation_config = self.generation_config generation_config = self.generation_config
......
...@@ -1260,7 +1260,7 @@ class GenerationMixin: ...@@ -1260,7 +1260,7 @@ class GenerationMixin:
"You have modified the pretrained model configuration to control generation. This is a" "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." " deprecated strategy to control generation and will be removed soon, in a future version."
" Please use a generation configuration file (see" " 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 self.generation_config = new_generation_config
generation_config = self.generation_config generation_config = self.generation_config
......
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