Skip to content

Commit 1082138

Browse files
committed
src: make tail invalid when kv cell is intersection for mamba
1 parent 7ea8d80 commit 1082138

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/llama.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3687,10 +3687,8 @@ static bool llama_kv_cache_seq_rm(
36873687
const llama_kv_cell & cell = cache.cells[tail_id];
36883688
// partial intersection is invalid
36893689
if ((0 < p0 && p0 <= cell.pos) || (0 < p1 && p1 <= cell.pos)) {
3690-
return false;
3691-
}
3692-
if (p0 <= cell.pos && p1 < cell.pos) {
36933690
tail_id = -1;
3691+
return false;
36943692
}
36953693
}
36963694
} else {

0 commit comments

Comments
 (0)