From ef3899e7cad62118bbb1491ec6a7d20fcd7d2d45 Mon Sep 17 00:00:00 2001 From: Purfview <69023953+Purfview@users.noreply.github.com> Date: Thu, 3 Aug 2023 18:17:39 +0100 Subject: [PATCH] Adds DEBUG log message for prompt_reset_on_temperature Produce DEBUG log message if prompt_reset_on_temperature threshold is met. --- faster_whisper/transcribe.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index 6d6ef41a..593d1bea 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -568,6 +568,13 @@ def generate_segments( not options.condition_on_previous_text or temperature > options.prompt_reset_on_temperature ): + if options.condition_on_previous_text: + self.logger.debug( + "Reset prompt. prompt_reset_on_temperature threshold is met %f > %f", + temperature, + options.prompt_reset_on_temperature, + ) + prompt_reset_since = len(all_tokens) def encode(self, features: np.ndarray) -> ctranslate2.StorageView: