Skip to content

Commit 22df85f

Browse files
committed
llama : more metal-friendly KV cache PAD
1 parent b57af0c commit 22df85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10300,7 +10300,7 @@ static int llama_decode_internal(
1030010300
// a heuristic, to avoid attending the full cache if it is not yet utilized
1030110301
// after enough generations, the benefit from this heuristic disappears
1030210302
// if we start defragmenting the cache, the benefit from this will be more important
10303-
kv_self.n = std::min(kv_self.size, std::max(256u, GGML_PAD(llama_kv_cache_cell_max(kv_self), 256)));
10303+
kv_self.n = std::min(kv_self.size, std::max(128u, GGML_PAD(llama_kv_cache_cell_max(kv_self), 128)));
1030410304
//kv_self.n = llama_kv_cache_cell_max(kv_self);
1030510305
}
1030610306
}

0 commit comments

Comments
 (0)