Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
silence warm up log
Michael Yang058d0cd04b6f
diff --git a/.gitmodules b/.gitmodulesindex e2901f451..49a54fa95 100644--- a/.gitmodules+++ b/.gitmodules@@ -6,4 +6,5 @@[submodule "llm/llama.cpp/gguf"]path = llm/llama.cpp/ggufurl = https://github.com/ggerganov/llama.cpp.git+ ignore = dirtyshallow = truediff --git a/llm/llama.cpp/generate_darwin_amd64.go b/llm/llama.cpp/generate_darwin_amd64.goindex 9b782db30..1a1d33178 100644--- a/llm/llama.cpp/generate_darwin_amd64.go+++ b/llm/llama.cpp/generate_darwin_amd64.go@@ -11,5 +11,6 @@ package llm//go:generate cmake --build ggml/build/cpu --target server --config Release//go:generate git submodule update --force gguf+//go:generate git -C gguf apply ../patches/0001-remove-warm-up-logging.patch//go:generate cmake -S gguf -B gguf/build/cpu -DLLAMA_ACCELERATE=on -DLLAMA_K_QUANTS=on -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0//go:generate cmake --build gguf/build/cpu --target server --config Releasediff --git a/llm/llama.cpp/generate_darwin_arm64.go b/llm/llama.cpp/generate_darwin_arm64.goindex 72d175efc..ffd1fa85e 100644--- a/llm/llama.cpp/generate_darwin_arm64.go+++ b/llm/llama.cpp/generate_darwin_arm64.go@@ -11,5 +11,6 @@ package llm//go:generate cmake --build ggml/build/metal --target server --config Release//go:generate git submodule update --force gguf+//go:generate git -C gguf apply ../patches/0001-remove-warm-up-logging.patch//go:generate cmake -S gguf -B gguf/build/metal -DLLAMA_METAL=on -DLLAMA_ACCELERATE=on -DLLAMA_K_QUANTS=on -DCMAKE_SYSTEM_PROCESSOR=arm64 -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0//go:generate cmake --build gguf/build/metal --target server --config Releasediff --git a/llm/llama.cpp/generate_linux.go b/llm/llama.cpp/generate_linux.goindex 76be15d58..4cae3845a 100644--- a/llm/llama.cpp/generate_linux.go+++ b/llm/llama.cpp/generate_linux.go@@ -12,6 +12,7 @@ package llm//go:generate git submodule update --force gguf//go:generate git -C gguf apply ../patches/0001-copy-cuda-runtime-libraries.patch+//go:generate git -C gguf apply ../patches/0001-remove-warm-up-logging.patch//go:generate cmake -S gguf -B gguf/build/cpu -DLLAMA_K_QUANTS=on//go:generate cmake --build gguf/build/cpu --target server --config Releasediff --git a/llm/llama.cpp/generate_windows.go b/llm/llama.cpp/generate_windows.goindex 0d8cd4112..3f69a39df 100644--- a/llm/llama.cpp/generate_windows.go+++ b/llm/llama.cpp/generate_windows.go@@ -9,5 +9,6 @@ package llm//go:generate cmake --build ggml/build/cpu --target server --config Release//go:generate git submodule update --force gguf+//go:generate git -C gguf apply ../patches/0001-remove-warm-up-logging.patch//go:generate cmake -S gguf -B gguf/build/cpu -DLLAMA_K_QUANTS=on//go:generate cmake --build gguf/build/cpu --target server --config Releasediff --git a/llm/llama.cpp/patches/0001-remove-warm-up-logging.patch b/llm/llama.cpp/patches/0001-remove-warm-up-logging.patchnew file mode 100644index 000000000..04aa48026--- /dev/null+++ b/llm/llama.cpp/patches/0001-remove-warm-up-logging.patch@@ -0,0 +1,25 @@+From 07993bdc35345b67b27aa649a7c099ad42d80c4c Mon Sep 17 00:00:00 2001+From: Michael Yang <[email protected]>+Date: Thu, 21 Sep 2023 14:43:21 -0700+Subject: [PATCH] remove warm up logging++---+ common/common.cpp | 2 --+ 1 file changed, 2 deletions(-)++diff --git a/common/common.cpp b/common/common.cpp+index 2597ba0..b56549b 100644+--- a/common/common.cpp++++ b/common/common.cpp+@@ -780,8 +780,6 @@ std::tuple<struct llama_model *, struct llama_context *> llama_init_from_gpt_par+ }++ {+- LOG("warming up the model with an empty run\n");+-+ const std::vector<llama_token> tmp = { llama_token_bos(lctx), llama_token_eos(lctx), };+ llama_eval(lctx, tmp.data(), std::min(tmp.size(), (size_t) params.n_batch), 0, params.n_threads);+ llama_reset_timings(lctx);+--+2.42.0+