mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-24 22:22:11 +01:00
whisper : improve support for distil-large-v3 (#1982)
This commit is contained in:
parent
48a145207e
commit
fff24a0148
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user