fixed bug where kv_self.size is being set wrongly to the buffer size instead of the context size
This commit is contained in:
parent
9476b01226
commit
7d14b33981
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue