mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-10-28 08:31:25 +00:00
server : fix img token logs (#16595)
This commit is contained in:
@@ -3839,14 +3839,14 @@ struct server_context {
|
|||||||
|
|
||||||
{
|
{
|
||||||
const auto token = slot.prompt.tokens[i];
|
const auto token = slot.prompt.tokens[i];
|
||||||
const auto piece = common_token_to_piece(ctx, token);
|
const auto piece = token != LLAMA_TOKEN_NULL ? common_token_to_piece(ctx, token) : "[mtmd]";
|
||||||
ss0 << piece;
|
ss0 << piece;
|
||||||
st0 << std::setw(8) << token;
|
st0 << std::setw(8) << token;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
const auto token = slot.task->tokens[i];
|
const auto token = slot.task->tokens[i];
|
||||||
const auto piece = common_token_to_piece(ctx, token);
|
const auto piece = token != LLAMA_TOKEN_NULL ? common_token_to_piece(ctx, token) : "[mtmd]";
|
||||||
ss1 << piece;
|
ss1 << piece;
|
||||||
st1 << std::setw(8) << token;
|
st1 << std::setw(8) << token;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user