Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gante committed Sep 16, 2024
1 parent e742d08 commit 07411b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/transformers/generation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ def _prepare_generation_config(
if new_generation_config != self.generation_config: # 4)
warnings.warn(
"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 in v5."
" Please use and modify the model generation configuration (see"
" https://huggingface.co/docs/transformers/generation_strategies#default-text-generation-configuration )",
UserWarning,
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/pipelines/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ def __init__(
self.modelcard = modelcard
self.framework = framework

# TODO (joao): Keras model don't support `copy(model)` as of writing, fix me
# TODO (joao): Keras models don't support `copy(model)` as of writing, fix me
if framework == "pt":
# Create shallow copy of the model with a deep copies of the configs. A pipeline may change the config of
# the model and we don't want side-effects on the original object.
Expand Down

0 comments on commit 07411b3

Please sign in to comment.