0001-remove-warm-up-logging.patch 851 B

12345678910111213141516171819202122232425
  1. From 8dbb5449db259a9c24796e7927d89bee98b6c8f5 Mon Sep 17 00:00:00 2001
  2. From: Bruce MacDonald <brucewmacdonald@gmail.com>
  3. Date: Thu, 5 Oct 2023 11:21:12 -0400
  4. Subject: [PATCH] remove warm up logging
  5. ---
  6. common/common.cpp | 2 --
  7. 1 file changed, 2 deletions(-)
  8. diff --git a/common/common.cpp b/common/common.cpp
  9. index 7370017..c4433fe 100644
  10. --- a/common/common.cpp
  11. +++ b/common/common.cpp
  12. @@ -839,8 +839,6 @@ std::tuple<struct llama_model *, struct llama_context *> llama_init_from_gpt_par
  13. }
  14. {
  15. - LOG("warming up the model with an empty run\n");
  16. -
  17. std::vector<llama_token> tmp = { llama_token_bos(lctx), llama_token_eos(lctx), };
  18. llama_decode(lctx, llama_batch_get_one(tmp.data(), std::min(tmp.size(), (size_t) params.n_batch), 0, 0));
  19. llama_kv_cache_tokens_rm(lctx, -1, -1);
  20. --
  21. 2.39.2 (Apple Git-143)