We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e3cb19 commit 2f26d3aCopy full SHA for 2f26d3a
tools/server/server.cpp
@@ -3839,14 +3839,14 @@ struct server_context {
3839
3840
{
3841
const auto token = slot.prompt.tokens[i];
3842
- const auto piece = common_token_to_piece(ctx, token);
+ const auto piece = token >= 0 ? common_token_to_piece(ctx, token) : "[mtmd]";
3843
ss0 << piece;
3844
st0 << std::setw(8) << token;
3845
}
3846
3847
3848
const auto token = slot.task->tokens[i];
3849
3850
ss1 << piece;
3851
st1 << std::setw(8) << token;
3852
0 commit comments