ggerganov commited on
Commit
db991e1
·
unverified ·
1 Parent(s): fdaf59a

whisper : revert accidental MB change

Browse files
Files changed (2) hide show
  1. ggml.c +0 -1
  2. whisper.cpp +1 -1
ggml.c CHANGED
@@ -311,7 +311,6 @@ int64_t ggml_cycles_per_ms(void) {
311
  return CLOCKS_PER_SEC/1000;
312
  }
313
 
314
- //#define GGML_PERF
315
  #ifdef GGML_PERF
316
  #define ggml_perf_time_ms() ggml_time_ms()
317
  #define ggml_perf_time_us() ggml_time_us()
 
311
  return CLOCKS_PER_SEC/1000;
312
  }
313
 
 
314
  #ifdef GGML_PERF
315
  #define ggml_perf_time_ms() ggml_time_ms()
316
  #define ggml_perf_time_us() ggml_time_us()
whisper.cpp CHANGED
@@ -131,7 +131,7 @@ static const std::map<std::string, std::pair<int, std::string>> g_lang = {
131
  { "su", { 98, "sundanese", } },
132
  };
133
 
134
- static const size_t MB = 3*1024*1024;
135
 
136
  static const std::map<e_model, size_t> MEM_REQ_MODEL = {
137
  { MODEL_TINY, 74ull*MB },
 
131
  { "su", { 98, "sundanese", } },
132
  };
133
 
134
+ static const size_t MB = 1024*1024;
135
 
136
  static const std::map<e_model, size_t> MEM_REQ_MODEL = {
137
  { MODEL_TINY, 74ull*MB },