Skip to content

Commit

Permalink
llama_kv_cache_seq_rm added to reset
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Dec 12, 2023
1 parent d981d1d commit 6843abd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llama_ros/src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ std::string Llama::detokenize(const std::vector<llama_token> &tokens) {

void Llama::reset() {

llama_kv_cache_seq_rm(this->ctx, -1, 0, -1);
llama_sampling_reset(this->ctx_sampling);

this->canceled = false;
Expand Down

0 comments on commit 6843abd

Please sign in to comment.