From 17304cbcc1dd24de7741cbe57925d58e90a98ac1 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Wed, 15 Oct 2025 16:53:12 +0300 Subject: [PATCH] server : fix img token logs (#16595) --- tools/server/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/server/server.cpp b/tools/server/server.cpp index 36dc32fe3d..8737fba124 100644 --- a/tools/server/server.cpp +++ b/tools/server/server.cpp @@ -3839,14 +3839,14 @@ struct server_context { { 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; st0 << std::setw(8) << token; } { 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; st1 << std::setw(8) << token; }