Skip to content

Commit

Permalink
Update llama.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored Mar 14, 2024
1 parent 38328bb commit b88cd9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9036,7 +9036,7 @@ static int llama_decode_internal(
//llama_synchronize(&lctx);

// 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;

// queue defragmentation for next llama_kv_cache_update
Expand Down

0 comments on commit b88cd9f

Please sign in to comment.