From fff24a0148fe194df4997a738eeceddd724959c3 Mon Sep 17 00:00:00 2001 From: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com> Date: Thu, 21 Mar 2024 22:23:30 +0530 Subject: [PATCH] whisper : improve support for distil-large-v3 (#1982) --- whisper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/whisper.cpp b/whisper.cpp index ed4c8181..0a820c4f 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -5349,11 +5349,11 @@ int whisper_full_with_state( } } - // distilled models require the "no_timestamps" token + // first release distilled models require the "no_timestamps" token { - const bool is_distil = ctx->model.hparams.n_text_layer == 2; + const bool is_distil = ctx->model.hparams.n_text_layer == 2 && ctx->model.hparams.n_vocab != 51866; if (is_distil && !params.no_timestamps) { - WHISPER_LOG_WARN("%s: using distilled model - forcing no_timestamps\n", __func__); + WHISPER_LOG_WARN("%s: using first release distilled models - forcing no_timestamps\n", __func__); params.no_timestamps = true; } }