Skip to content

Commit 3edaf6b

Browse files
author
anon
committed
print timings by default
1 parent d58e486 commit 3edaf6b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

examples/server/server.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -796,9 +796,7 @@ int main(int argc, char **argv)
796796
{"prompt", llama.params.prompt},
797797
{"stopping_word", llama.stopping_word}};
798798

799-
if (llama.verbose) {
800-
llama_print_timings(llama.ctx);
801-
}
799+
llama_print_timings(llama.ctx);
802800

803801
return res.set_content(
804802
data.dump(llama.json_indent, ' ', false, json::error_handler_t::replace),
@@ -870,16 +868,13 @@ int main(int argc, char **argv)
870868
if (!sink.write(str.data(), str.size())) {
871869
if (llama.verbose) {
872870
fprintf(stderr, "stream closed\n");
873-
llama_print_timings(llama.ctx);
874871
}
872+
llama_print_timings(llama.ctx);
875873
return false;
876874
}
877875
}
878876

879-
if (llama.verbose) {
880-
llama_print_timings(llama.ctx);
881-
}
882-
877+
llama_print_timings(llama.ctx);
883878
sink.done();
884879
return true;
885880
};

0 commit comments

Comments
 (0)