Skip to content

Commit

Permalink
Revert recent sampling change
Browse files Browse the repository at this point in the history
It does not actually help and seems to produce worse results on some of
the samples
  • Loading branch information
ggerganov committed Oct 18, 2022
1 parent cf67bff commit b4a3875
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ out/
.vs/
.vscode/
compile_commands.json
.DS_Store
2 changes: 1 addition & 1 deletion whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b4a3875

Please sign in to comment.