mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-06 18:19:12 +00:00
fix: add log when serving as a proxy
This commit is contained in:
parent
6ff38b2a0c
commit
67c4f70357
1 changed files with 3 additions and 2 deletions
|
@ -1810,9 +1810,10 @@ struct llama_init_result llama_init_from_gpt_params(gpt_params & params) {
|
||||||
n_world = update_n_world;
|
n_world = update_n_world;
|
||||||
|
|
||||||
llama_update_context_with_rankworld(lctx, update_rank, update_n_world, worker_rank, n_worker);
|
llama_update_context_with_rankworld(lctx, update_rank, update_n_world, worker_rank, n_worker);
|
||||||
|
|
||||||
if(node_type == NodeType::NODE_TYPE_FORWARDER){
|
if (node_type == NodeType::NODE_TYPE_FORWARDER) {
|
||||||
//just forward
|
//just forward
|
||||||
|
LOG_INF("No layer is assigned to me, and I serve as a network proxy.\n");
|
||||||
std::atomic<bool> should_exit{false};
|
std::atomic<bool> should_exit{false};
|
||||||
auto t = std::thread([lctx, &should_exit]() {
|
auto t = std::thread([lctx, &should_exit]() {
|
||||||
while(!should_exit) {
|
while(!should_exit) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue