From d2b4f2c55a36d7504c406804057f668fbfa8febc Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 29 Apr 2024 19:40:37 +0100 Subject: [PATCH] make fixup --- src/transformers/models/idefics2/processing_idefics2.py | 1 - src/transformers/tokenization_utils_base.py | 1 - 2 files changed, 2 deletions(-) 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)