From: Georgi Gerganov Date: Tue, 18 Oct 2022 05:26:16 +0000 (+0300) Subject: Revert recent sampling change X-Git-Tag: upstream/1.7.4~1947 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b4a3875b2c398232bc435fb61b1d08b9ed71f06e;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp Revert recent sampling change It does not actually help and seems to produce worse results on some of the samples --- 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); }