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>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user