From b4a3875b2c398232bc435fb61b1d08b9ed71f06e Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 18 Oct 2022 08:26:16 +0300 Subject: [PATCH] Revert recent sampling change It does not actually help and seems to produce worse results on some of the samples --- .gitignore | 1 + whisper.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 376d5853..b34c5126 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ out/ .vs/ .vscode/ compile_commands.json +.DS_Store diff --git a/whisper.cpp b/whisper.cpp index ab229887..8ef20cb8 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -2425,7 +2425,7 @@ int whisper_full( whisper_token id = 0; whisper_token tid = whisper_token_beg(ctx); - id = whisper_sample_best(ctx, result_len == 0 || i > 32); + id = whisper_sample_best(ctx, result_len == 0); if (i > 0) { tid = whisper_sample_timestamp(ctx); }