From 0f1bb6d01335289c815a7b2a406196608e208976 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 8 Dec 2025 14:58:49 +0100 Subject: [PATCH] model-conversion : add token ids to prompt token output [no ci] This commit adds the token ids to the printed prompt outputs. The motivation for this is that is can be useful to see the actual token ids alongside the token strings for debugging. --- examples/model-conversion/logits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/model-conversion/logits.cpp b/examples/model-conversion/logits.cpp index bbd095e6034..5bcf0632677 100644 --- a/examples/model-conversion/logits.cpp +++ b/examples/model-conversion/logits.cpp @@ -144,7 +144,7 @@ int main(int argc, char ** argv) { return 1; } std::string s(buf, n); - printf("%s", s.c_str()); + printf("%s (%d)", s.c_str(), id); } printf("\n");