llama : enable LLAMA_SET_ROWS=1 by default (#14959)

ggml-ci
This commit is contained in:
Georgi Gerganov
2025-08-02 17:14:21 +03:00
committed by GitHub
parent 15e92fd337
commit a4569c41fd
4 changed files with 4 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ llama_context::llama_context(
{
const char * LLAMA_SET_ROWS = getenv("LLAMA_SET_ROWS");
supports_set_rows = LLAMA_SET_ROWS ? (atoi(LLAMA_SET_ROWS) != 0) : false;
supports_set_rows = LLAMA_SET_ROWS ? (atoi(LLAMA_SET_ROWS) != 0) : supports_set_rows;
if (!supports_set_rows && !cparams.kv_unified) {
LLAMA_LOG_WARN("%s: non-unified KV cache requires ggml_set_rows() - forcing unified KV cache\n", __func__);