Skip to content

Commit

Permalink
llama : fix restoring the number of outputs from state files (#6687)
Browse files Browse the repository at this point in the history
  • Loading branch information
compilade authored Apr 15, 2024
1 parent 3272896 commit 132f557
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15478,6 +15478,8 @@ size_t llama_state_set_data(struct llama_context * ctx, const uint8_t * src) {
GGML_ASSERT((uint32_t) id < ctx->cparams.n_batch);
ctx->output_ids[id] = i;
}

ctx->n_outputs = n_outputs;
}
}

Expand Down

0 comments on commit 132f557

Please sign in to comment.