Skip to content

Commit

Permalink
fix: cache fixup (#10)
Browse files Browse the repository at this point in the history
* fix: cache fixup

* fix: ubuntu build

---------

Co-authored-by: vansangpfiev <sang@jan.ai>
  • Loading branch information
vansangpfiev and sangjanai authored May 6, 2024
1 parent 6c58988 commit 177f912
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 145 deletions.
5 changes: 2 additions & 3 deletions src/LlamaEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,8 @@ void LlamaEngine::HandleInferenceImpl(
// To set default value

// Default values to enable auto caching
//data["cache_prompt"] = caching_enabled;
data["cache_prompt"] = false;
data["n_keep"] = -1;
data["cache_prompt"] = caching_enabled;
data["n_keep"] = 0;

// Passing load value
data["repeat_last_n"] = this->repeat_last_n;
Expand Down
Loading

0 comments on commit 177f912

Please sign in to comment.