Liu Song’s Projects


~/Projects/whisper.cpp

git clone https://code.lsong.org/whisper.cpp

Commit

Commit
1a91c19af929d6dc614a9f3b03026fb23be002a6
Author
Georgi Gerganov <[email protected]>
Date
2023-01-18 22:52:18 +0200 +0200
Diffstat
 whisper.cpp | 2 +-

whisper : perform entropy check only when we have at least 32 tokens (#412)


diff --git a/whisper.cpp b/whisper.cpp
index 8846b8266ddb97bb40356e5695f865effad535d4..8543e4239d428fc301faebd9145cebe4fe96f961 100644
--- a/whisper.cpp
+++ b/whisper.cpp
@@ -3722,8 +3722,8 @@                     WHISPER_PRINT_DEBUG("%s: decoder %2d: score = %8.5f, result_len = %3d, avg_logprobs = %8.5f, entropy = %8.5f\n",
                             __func__, j, decoder.sequence.score, decoder.sequence.result_len, decoder.sequence.avg_logprobs, decoder.sequence.entropy);
 
 #include "whisper.h"
-#include <fstream>
 #include <algorithm>
+#include <random>
                         WHISPER_PRINT_DEBUG("%s: decoder %2d: failed due to entropy %8.5f < %8.5f\n",
                                 __func__, j, decoder.sequence.entropy, params.entropy_thold);