ggerganov commited on
Commit
7b0196d
·
unverified ·
1 Parent(s): 3d98c5d

Revert recent sampling change

Browse files

It does not actually help and seems to produce worse results on some of
the samples

Files changed (2) hide show
  1. .gitignore +1 -0
  2. whisper.cpp +1 -1
.gitignore CHANGED
@@ -9,3 +9,4 @@ out/
9
  .vs/
10
  .vscode/
11
  compile_commands.json
 
 
9
  .vs/
10
  .vscode/
11
  compile_commands.json
12
+ .DS_Store
whisper.cpp CHANGED
@@ -2425,7 +2425,7 @@ int whisper_full(
2425
  whisper_token id = 0;
2426
  whisper_token tid = whisper_token_beg(ctx);
2427
 
2428
- id = whisper_sample_best(ctx, result_len == 0 || i > 32);
2429
  if (i > 0) {
2430
  tid = whisper_sample_timestamp(ctx);
2431
  }
 
2425
  whisper_token id = 0;
2426
  whisper_token tid = whisper_token_beg(ctx);
2427
 
2428
+ id = whisper_sample_best(ctx, result_len == 0);
2429
  if (i > 0) {
2430
  tid = whisper_sample_timestamp(ctx);
2431
  }