From 3aec42184945650f7aa98bd0ae496f116159c8eb Mon Sep 17 00:00:00 2001 From: Purfview <69023953+Purfview@users.noreply.github.com> Date: Sun, 28 Jan 2024 20:40:33 +0000 Subject: [PATCH] Add: More clarity of what "max_new_tokens" does (#658) * Add: More clarity of what "max_new_tokens" does --- faster_whisper/transcribe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index 83bbf5c..824e4e3 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -267,8 +267,8 @@ class WhisperModel: https://github.com/snakers4/silero-vad. vad_parameters: Dictionary of Silero VAD parameters or VadOptions class (see available parameters and default values in the class `VadOptions`). - max_new_tokens: Maximum number of new tokens to generate. If not set, the maximum will be - set by the default max_length. + max_new_tokens: Maximum number of new tokens to generate per-chunk. If not set, + the maximum will be set by the default max_length. chunk_length: The length of audio segments. If it is not None, it will overwrite the default chunk_length of the FeatureExtractor.