diff --git a/src/transformers/models/idefics2/processing_idefics2.py b/src/transformers/models/idefics2/processing_idefics2.py index 4e984170c559a5..b20f69bd07ad82 100644 --- a/src/transformers/models/idefics2/processing_idefics2.py +++ b/src/transformers/models/idefics2/processing_idefics2.py @@ -16,7 +16,6 @@ Processor class for IDEFICS2. """ -import warnings from typing import TYPE_CHECKING, Dict, List, Optional, Union from ...feature_extraction_utils import BatchFeature diff --git a/src/transformers/tokenization_utils_base.py b/src/transformers/tokenization_utils_base.py index fa0eaa14205b96..0a57345e395453 100644 --- a/src/transformers/tokenization_utils_base.py +++ b/src/transformers/tokenization_utils_base.py @@ -1791,7 +1791,6 @@ def apply_chat_template( "then to ensure that this model continues working without issues." ) - # Compilation function uses a cache to avoid recompiling the same template compiled_template = self._compile_jinja_template(chat_template)