]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : revert accidental MB change
authorGeorgi Gerganov <redacted>
Sat, 7 Jan 2023 14:18:21 +0000 (16:18 +0200)
committerGeorgi Gerganov <redacted>
Sat, 7 Jan 2023 14:18:21 +0000 (16:18 +0200)
ggml.c
whisper.cpp

diff --git a/ggml.c b/ggml.c
index cfc63704d6ff54755c2534c2c8c49940c43f80f4..7db762feb99f968be6d73a6e996600fc77e0e73b 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -311,7 +311,6 @@ int64_t ggml_cycles_per_ms(void) {
     return CLOCKS_PER_SEC/1000;
 }
 
-//#define GGML_PERF
 #ifdef GGML_PERF
 #define ggml_perf_time_ms()       ggml_time_ms()
 #define ggml_perf_time_us()       ggml_time_us()
index 8de4a157ecdd0bb9ac9afa4d90e60b27ea9d9f72..e8d9f0c925a34c0738693542d1d04a0fa897e4df 100644 (file)
@@ -131,7 +131,7 @@ static const std::map<std::string, std::pair<int, std::string>> g_lang = {
     { "su",  { 98,  "sundanese",      } },
 };
 
-static const size_t MB = 3*1024*1024;
+static const size_t MB = 1024*1024;
 
 static const std::map<e_model, size_t> MEM_REQ_MODEL = {
     { MODEL_TINY,     74ull*MB },