]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Revert recent sampling change
authorGeorgi Gerganov <redacted>
Tue, 18 Oct 2022 05:26:16 +0000 (08:26 +0300)
committerGeorgi Gerganov <redacted>
Tue, 18 Oct 2022 05:26:16 +0000 (08:26 +0300)
It does not actually help and seems to produce worse results on some of
the samples

.gitignore
whisper.cpp

index 376d585339b23083e09d147b339dbb4e538c8260..b34c5126fb1d18b61a2049b3c22d91cdbfadd0d4 100644 (file)
@@ -9,3 +9,4 @@ out/
 .vs/
 .vscode/
 compile_commands.json
+.DS_Store
index ab22988754958d3aabc18fdd709a40cc0f96eaa1..8ef20cb85e61f3ef57c138ca774386220a557836 100644 (file)
@@ -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);
                 }