Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 4bf641c

Browse files
committed
fix high cpu usage
1 parent a87551d commit 4bf641c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

controllers/llamaCPP.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,7 @@ struct llama_server_context {
15371537
"cache\n");
15381538
kv_cache_clear();
15391539
}
1540+
std::this_thread::sleep_for(std::chrono::milliseconds(5));
15401541
// TODO: Need to implement queueing using CV for better performance
15411542
// std::unique_lock<std::mutex> lock(mutex_tasks);
15421543
// condition_tasks.wait(lock, [&] { return !queue_tasks.empty(); });

0 commit comments

Comments
 (0)