Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Upgrade to Cosmopolitan v3.5.9
Justine Tunney115315cd93ad
diff --git a/build/config.mk b/build/config.mkindex ff1a015d..333ccfeb 100644--- a/build/config.mk+++ b/build/config.mk@@ -2,7 +2,7 @@#── vi: set noet ft=make ts=8 sw=8 fenc=utf-8 :vi ────────────────────┘PREFIX = /usr/local-COSMOCC = .cosmocc/3.5.8+COSMOCC = .cosmocc/3.5.9TOOLCHAIN = $(COSMOCC)/bin/cosmoAR = $(TOOLCHAIN)ar@@ -52,5 +52,5 @@ clean:; rm -rf o.PHONY: distcleandistclean:; rm -rf o .cosmocc-.cosmocc/3.5.8:- build/download-cosmocc.sh $@ 3.5.8 80bea0e523b666d4d4e74fb729ac1e4bd924d1b9f2892d939af62ae2c4a0f622+.cosmocc/3.5.9:+ build/download-cosmocc.sh $@ 3.5.9 1f66831de4bf2d82e138d8993e9ee84a7559afc47aeeb2e2de51872401790a0adiff --git a/llamafile/simple.cpp b/llamafile/simple.cppindex 513cfb5c..a17e4b19 100644--- a/llamafile/simple.cpp+++ b/llamafile/simple.cpp@@ -32,7 +32,6 @@ static bool eval_tokens(struct llama_context *ctx_llama, std::vector<llama_tokenint n_eval = (int)tokens.size() - i;if (n_eval > n_batch)n_eval = n_batch;- printf("llama_decode n_eval=%d n_past=%d\n", n_eval, *n_past);if (llama_decode(ctx_llama, llama_batch_get_one(&tokens[i], n_eval, *n_past, 0)))return false; // probably ran out of context*n_past += n_eval;