main : disable token count by default (#4874)

This commit is contained in:
Georgi Gerganov committed 2024-01-11 22:43:05 +02:00
1 parent b037787548
commit 3ca63b4538
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -651,8 +651,8 @@ int main(int argc, char ** argv) {
LOG("n_past = %d\n", n_past);
// Display total tokens alongside total time
if (n_past % params.token_interval == 0) {
printf("\n\033[31mTokens consumed so far = %d / %d \033[0m\n", n_past, n_ctx);
if (params.token_interval > 0 && n_past % params.token_interval == 0) {
LOG_TEE("\n\033[31mTokens consumed so far = %d / %d \033[0m\n", n_past, n_ctx);
}
}