Skip to content

Commit

Permalink
Merge pull request #312 from janhq/hotfix-high-cpu-usage
Browse files Browse the repository at this point in the history
fix high cpu usage
  • Loading branch information
tikikun authored Jan 3, 2024
2 parents e89a646 + 4bf641c commit 3c5c307
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/llamaCPP.h
Original file line number Diff line number Diff line change
Expand Up @@ -1537,6 +1537,7 @@ struct llama_server_context {
"cache\n");
kv_cache_clear();
}
std::this_thread::sleep_for(std::chrono::milliseconds(5));
// TODO: Need to implement queueing using CV for better performance
// std::unique_lock<std::mutex> lock(mutex_tasks);
// condition_tasks.wait(lock, [&] { return !queue_tasks.empty(); });
Expand Down

0 comments on commit 3c5c307

Please sign in to comment.