diff options
author | Georgi Gerganov <ggerganov@gmail.com> | 2024-01-11 22:43:05 +0200 |
---|---|---|
committer | Georgi Gerganov <ggerganov@gmail.com> | 2024-01-11 22:43:05 +0200 |
commit | 3ca63b4538dfc78aaec88cd2c3e3f8417c1924e3 (patch) | |
tree | 741167ae638864d1943d72adc9fd72b249f99437 /examples/main/main.cpp | |
parent | b0377875488b33f7114138687d828da1de61775d (diff) |
main : disable token count by default (#4874)
Diffstat (limited to 'examples/main/main.cpp')
-rw-r--r-- | examples/main/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/main/main.cpp b/examples/main/main.cpp index 1f35febb..6953d107 100644 --- a/examples/main/main.cpp +++ b/examples/main/main.cpp @@ -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); } } |