From b685f9b4aafca252dd99ea011ffab65dfb7ad143 Mon Sep 17 00:00:00 2001 From: Iwan Kawrakow Date: Wed, 23 Jul 2025 12:25:04 +0300 Subject: [PATCH] Fix pauses after a comma --- src/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llama.cpp b/src/llama.cpp index 2c251c6b2..27647c9d2 100644 --- a/src/llama.cpp +++ b/src/llama.cpp @@ -17488,7 +17488,7 @@ static struct ggml_cgraph * llama_build_graph( const llama_vocab * vocab = llama_get_vocab(&lctx); llama_token bos = llama_token_bos_impl(*vocab); llama_token eos = llama_token_eos_impl(*vocab); - bool is_warming_up = (batch.n_tokens == 1 && (batch.token[0] == ((bos != -1) ? bos : eos))); + bool is_warming_up = lctx.n_eval == 0 && (batch.n_tokens == 1 && (batch.token[0] == ((bos != -1) ? bos : eos))); struct llm_build_context llm(lctx, batch, cb, worst_case, is_warming_up); llm.init();