feat: display number of tokens for SD models (#1831)

This commit is contained in:
vmobilis
2026-07-29 17:21:54 +03:00
committed by GitHub
parent 2993b7fb43
commit 9cfe2af8f9

View File

@@ -205,7 +205,7 @@ std::vector<int> BPETokenizer::encode(const std::string& text, on_new_token_cb_t
ss << "\"" << token << "\", ";
}
ss << "]";
LOG_DEBUG("split prompt \"%s\" to tokens %s", text.c_str(), ss.str().c_str());
LOG_DEBUG("split prompt \"%s\" to %zu tokens %s", text.c_str(), bpe_tokens.size(), ss.str().c_str());
return bpe_tokens;
}