Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tools/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3818,7 +3818,7 @@ struct server_context {

// when the prompt prefix does not match, print the tokens around the mismatch
// this is useful for debugging prompt caching
{
if (GGML_LOG_LEVEL_DEBUG <= common_log_verbosity_thold) {
const int np0 = std::max<int>(slot.n_past - 4, 0);
const int np1 = std::min<int>(slot.n_past + 6, std::min(slot.prompt.tokens.size(), slot.task->tokens.size()));

Expand Down Expand Up @@ -3852,11 +3852,11 @@ struct server_context {
}
}

SLT_WRN(slot, "%s\n", ss0.str().c_str());
SLT_WRN(slot, "%s\n", ss1.str().c_str());
SLT_DBG(slot, "%s\n", ss0.str().c_str());
SLT_DBG(slot, "%s\n", ss1.str().c_str());

SLT_WRN(slot, "%s\n", st0.str().c_str());
SLT_WRN(slot, "%s\n", st1.str().c_str());
SLT_DBG(slot, "%s\n", st0.str().c_str());
SLT_DBG(slot, "%s\n", st1.str().c_str());
}

if (pos_min > pos_min_thold) {
Expand Down
Loading