llama: various bug fixes (#26051)

This commit is contained in:
Xuan-Son Nguyen
2026-07-24 18:56:42 +02:00
committed by GitHub
parent fa72aeccb2
commit 298219f985
7 changed files with 46 additions and 3 deletions
+6 -1
View File
@@ -2054,7 +2054,12 @@ void llama_kv_cache::state_read(llama_io_read_i & io, llama_seq_id seq_id, llama
bool res = true;
res = res && state_read_meta(io, strm, cell_count, sinfo, seq_id);
res = res && state_read_data(io, strm, cell_count, sinfo);
try {
res = res && state_read_data(io, strm, cell_count, sinfo);
} catch (...) {
res = false;
}
if (!res) {
if (seq_id == -1) {