fixed bug where kv_self.size is being set wrongly to the buffer size instead of the context size

This commit is contained in:
l3utterfly 2023-10-03 03:23:42 +08:00
parent 9476b01226
commit 7d14b33981

View file

@ -7276,7 +7276,7 @@ size_t llama_set_state_data(struct llama_context * ctx, uint8_t * src) {
}
ctx->kv_self.head = kv_ntok;
ctx->kv_self.size = kv_size;
ctx->kv_self.size = n_ctx;
}
const size_t nread = inp - src;