Skip to content

Commit 7f46fe6

Browse files
committed
fixup: drop rs_idx refs (came from ggml-org#22400, not used in this base)
1 parent f1c8787 commit 7f46fe6

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/llama-memory-recurrent.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ void llama_memory_recurrent::clear(bool data) {
133133
head = 0;
134134
used = 0;
135135

136-
std::fill(rs_idx.begin(), rs_idx.end(), 0);
137-
138136
if (data) {
139137
for (auto & [_, buf] : ctxs_bufs) {
140138
ggml_backend_buffer_clear(buf.get(), 0);
@@ -172,7 +170,6 @@ bool llama_memory_recurrent::seq_rm(llama_seq_id seq_id, llama_pos p0, llama_pos
172170
// invalidate tails which will be cleared
173171
if (p0 <= cell.pos && cell.pos < p1) {
174172
tail_id = -1;
175-
set_rs_idx(seq_id, 0);
176173
}
177174
}
178175
} else {

0 commit comments

Comments
 (0)