Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Make whisperfile go 2x faster on 96 core cpu
Justine Tunney3b653c7d7603
diff --git a/whisper.cpp/whisper.cpp b/whisper.cpp/whisper.cppindex bf749a0c..fe88af4c 100644--- a/whisper.cpp/whisper.cpp+++ b/whisper.cpp/whisper.cpp@@ -2774,7 +2774,7 @@ static bool whisper_decode_internal(whisper_context & wctx,whisper_state & wstate,const whisper_batch & batch,- const int n_threads,+ int n_threads,bool save_alignment_heads_QKs,ggml_abort_callback abort_callback,void * abort_callback_data) {@@ -2866,6 +2866,11 @@ static bool whisper_decode_internal(logits = gf->nodes[gf->n_nodes - 1];+ if (batch.n_tokens < 16) {+ if (n_threads > 20)+ n_threads = 20;+ }+if (!ggml_graph_compute_helper(sched, gf, n_threads)) {return false;}