@@ -136,7 +136,7 @@ void llama_memory_recurrent::clear(bool data) {
136136}
137137
138138bool llama_memory_recurrent::seq_rm (llama_seq_id seq_id, llama_pos p0, llama_pos p1) {
139- printf (" [DEBUG] calling llama_memory_recurrent::seq_rm` with `seq_id=%d, p0=%d, p1=%d`\n " , seq_id, p0, p1);
139+ // printf("[DEBUG] calling llama_memory_recurrent::seq_rm` with `seq_id=%d, p0=%d, p1=%d`\n", seq_id, p0, p1);
140140 uint32_t new_head = size;
141141
142142 if (p0 < 0 ) {
@@ -158,7 +158,7 @@ bool llama_memory_recurrent::seq_rm(llama_seq_id seq_id, llama_pos p0, llama_pos
158158 const auto & cell = cells[tail_id];
159159 // partial intersection is invalid
160160 if ((0 < p0 && p0 < cell.pos ) || (0 < p1 && p1 <= cell.pos )) {
161- printf (" [DEBUG] inside `llama_memory_recurrent::seq_rm`: partial intersection is invalid, so returning false\n " );
161+ // printf("[DEBUG] inside `llama_memory_recurrent::seq_rm`: partial intersection is invalid, so returning false\n");
162162 return false ;
163163 }
164164 // invalidate tails which will be cleared
@@ -169,7 +169,7 @@ bool llama_memory_recurrent::seq_rm(llama_seq_id seq_id, llama_pos p0, llama_pos
169169 } else {
170170 // seq_id is negative, then the range should include everything or nothing
171171 if (p0 != p1 && (p0 != 0 || p1 != std::numeric_limits<llama_pos>::max ())) {
172- printf (" [DEBUG] inside `llama_memory_recurrent::seq_rm`: `seq_id` is negative, so returning false\n " );
172+ // printf("[DEBUG] inside `llama_memory_recurrent::seq_rm`: `seq_id` is negative, so returning false\n");
173173 return false ;
174174 }
175175 }
0 commit comments