Skip to content

Commit edf9c53

Browse files
committed
cont : fix prune check
ggml-ci
1 parent cf33051 commit edf9c53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/llama-kv-cache.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,10 @@ uint32_t llama_kv_cache_unified::cell_max() const {
12251225
}
12261226

12271227
bool llama_kv_cache_unified::is_masked_swa(llama_pos p0, llama_pos p1) const {
1228+
if (p0 < 0) {
1229+
return true;
1230+
}
1231+
12281232
switch (swa_type) {
12291233
case LLAMA_SWA_TYPE_NONE:
12301234
{

0 commit comments

Comments
 (0)