Skip to content

Commit c96c48c

Browse files
committed
kv-cache : fix handling when find_slot fails
ggml-ci
1 parent fa2573e commit c96c48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-kv-cache-unified.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ llama_kv_cache_unified::slot_info_vec_t llama_kv_cache_unified::prepare(const st
573573
apply_ubatch(sinfo_new, ubatch);
574574
}
575575

576-
GGML_ASSERT(!states.empty());
576+
GGML_ASSERT(!states.empty() || !success);
577577

578578
// iterate backwards and restore the cells to their original state
579579
for (auto it = states.rbegin(); it != states.rend(); ++it) {

0 commit comments

Comments
 (0)