Update llama.cpp
This commit is contained in:
parent
38328bb599
commit
b88cd9f6ca
1 changed files with 1 additions and 1 deletions
|
@ -9036,7 +9036,7 @@ static int llama_decode_internal(
|
||||||
//llama_synchronize(&lctx);
|
//llama_synchronize(&lctx);
|
||||||
|
|
||||||
// decide if we need to defrag the kv cache
|
// decide if we need to defrag the kv cache
|
||||||
if (cparams.defrag_thold >= 0.0f) {
|
if (cparams.causal_attn && cparams.defrag_thold >= 0.0f) {
|
||||||
const float fragmentation = kv_self.n >= 128 ? 1.0f - float(kv_self.used)/float(kv_self.n) : 0.0f;
|
const float fragmentation = kv_self.n >= 128 ? 1.0f - float(kv_self.used)/float(kv_self.n) : 0.0f;
|
||||||
|
|
||||||
// queue defragmentation for next llama_kv_cache_update
|
// queue defragmentation for next llama_kv_cache_update
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue