mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-06-28 04:30:15 -05:00
Remove reasoning budget logs (#1846)
Co-authored-by: firecoperana <firecoperana>
This commit is contained in:
parent
77413bc900
commit
9ae0fb7b2f
@ -65,12 +65,12 @@ static void common_reasoning_budget_accept(common_reasoning_budget_ctx * smpl, l
|
|||||||
if (ctx->start_matcher.advance(token)) {
|
if (ctx->start_matcher.advance(token)) {
|
||||||
ctx->state = REASONING_BUDGET_COUNTING;
|
ctx->state = REASONING_BUDGET_COUNTING;
|
||||||
ctx->remaining = ctx->budget;
|
ctx->remaining = ctx->budget;
|
||||||
LOG_INF("reasoning-budget: activated, budget=%d tokens\n", ctx->budget);
|
LOG_DBG("reasoning-budget: activated, budget=%d tokens\n", ctx->budget);
|
||||||
|
|
||||||
if (ctx->remaining <= 0) {
|
if (ctx->remaining <= 0) {
|
||||||
ctx->state = REASONING_BUDGET_FORCING;
|
ctx->state = REASONING_BUDGET_FORCING;
|
||||||
ctx->force_pos = 0;
|
ctx->force_pos = 0;
|
||||||
LOG_INF("reasoning-budget: budget=0, forcing immediately\n");
|
LOG_DBG("reasoning-budget: budget=0, forcing immediately\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -80,7 +80,7 @@ static void common_reasoning_budget_accept(common_reasoning_budget_ctx * smpl, l
|
|||||||
{
|
{
|
||||||
if (ctx->end_matcher.advance(token)) {
|
if (ctx->end_matcher.advance(token)) {
|
||||||
ctx->state = REASONING_BUDGET_DONE;
|
ctx->state = REASONING_BUDGET_DONE;
|
||||||
LOG_INF("reasoning-budget: deactivated (natural end)\n");
|
LOG_DBG("reasoning-budget: deactivated (natural end)\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ static void common_reasoning_budget_accept(common_reasoning_budget_ctx * smpl, l
|
|||||||
ctx->state = REASONING_BUDGET_FORCING;
|
ctx->state = REASONING_BUDGET_FORCING;
|
||||||
ctx->force_pos = 0;
|
ctx->force_pos = 0;
|
||||||
ctx->end_matcher.reset();
|
ctx->end_matcher.reset();
|
||||||
LOG_INF("reasoning-budget: UTF-8 complete, now forcing end sequence\n");
|
LOG_DBG("reasoning-budget: UTF-8 complete, now forcing end sequence\n");
|
||||||
}
|
}
|
||||||
} else if (ctx->state == REASONING_BUDGET_COUNTING) {
|
} else if (ctx->state == REASONING_BUDGET_COUNTING) {
|
||||||
ctx->remaining--;
|
ctx->remaining--;
|
||||||
@ -104,11 +104,11 @@ static void common_reasoning_budget_accept(common_reasoning_budget_ctx * smpl, l
|
|||||||
ctx->state = REASONING_BUDGET_FORCING;
|
ctx->state = REASONING_BUDGET_FORCING;
|
||||||
ctx->force_pos = 0;
|
ctx->force_pos = 0;
|
||||||
ctx->end_matcher.reset();
|
ctx->end_matcher.reset();
|
||||||
LOG_INF("reasoning-budget: budget exhausted, forcing end sequence\n");
|
LOG_DBG("reasoning-budget: budget exhausted, forcing end sequence\n");
|
||||||
} else {
|
} else {
|
||||||
ctx->state = REASONING_BUDGET_WAITING_UTF8;
|
ctx->state = REASONING_BUDGET_WAITING_UTF8;
|
||||||
ctx->end_matcher.reset();
|
ctx->end_matcher.reset();
|
||||||
LOG_INF("reasoning-budget: budget exhausted, waiting for UTF-8 completion\n");
|
LOG_DBG("reasoning-budget: budget exhausted, waiting for UTF-8 completion\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -118,7 +118,7 @@ static void common_reasoning_budget_accept(common_reasoning_budget_ctx * smpl, l
|
|||||||
ctx->force_pos++;
|
ctx->force_pos++;
|
||||||
if (ctx->force_pos >= ctx->forced_tokens.size()) {
|
if (ctx->force_pos >= ctx->forced_tokens.size()) {
|
||||||
ctx->state = REASONING_BUDGET_DONE;
|
ctx->state = REASONING_BUDGET_DONE;
|
||||||
LOG_INF("reasoning-budget: forced sequence complete, done\n");
|
LOG_DBG("reasoning-budget: forced sequence complete, done\n");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case REASONING_BUDGET_DONE:
|
case REASONING_BUDGET_DONE:
|
||||||
@ -128,12 +128,12 @@ static void common_reasoning_budget_accept(common_reasoning_budget_ctx * smpl, l
|
|||||||
ctx->state = REASONING_BUDGET_COUNTING;
|
ctx->state = REASONING_BUDGET_COUNTING;
|
||||||
ctx->remaining = ctx->budget;
|
ctx->remaining = ctx->budget;
|
||||||
ctx->end_matcher.reset();
|
ctx->end_matcher.reset();
|
||||||
LOG_INF("reasoning-budget: re-activated on new start tag, budget=%d tokens\n", ctx->budget);
|
LOG_DBG("reasoning-budget: re-activated on new start tag, budget=%d tokens\n", ctx->budget);
|
||||||
|
|
||||||
if (ctx->remaining <= 0) {
|
if (ctx->remaining <= 0) {
|
||||||
ctx->state = REASONING_BUDGET_FORCING;
|
ctx->state = REASONING_BUDGET_FORCING;
|
||||||
ctx->force_pos = 0;
|
ctx->force_pos = 0;
|
||||||
LOG_INF("reasoning-budget: budget=0, forcing immediately\n");
|
LOG_DBG("reasoning-budget: budget=0, forcing immediately\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user