Skip to content

Commit

Permalink
fix: warm-up (#259)
Browse files Browse the repository at this point in the history
* fix: warm-up

* fix: n_predict 10

* Revert "fix: n_predict 10"

This reverts commit d08e952.

* revert: CI

---------

Co-authored-by: vansangpfiev <[email protected]>
  • Loading branch information
vansangpfiev and sangjanai authored Oct 22, 2024
1 parent 0d268b0 commit f430ead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/llama_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,8 @@ void LlamaEngine::WarmUpModel(const std::string& model_id) {
pseudo["prompt"] = "Hello";
pseudo["n_predict"] = 2;
pseudo["stream"] = false;
pseudo["cache_prompt"] = server_map_[model_id].caching_enabled;
pseudo["n_keep"] = 0;
const int task_id =
si->second.ctx.RequestCompletion(pseudo, false, false, -1);
TaskResult result = si->second.ctx.NextResult(task_id);
Expand Down

0 comments on commit f430ead

Please sign in to comment.