Skip to content

Commit a7bec56

Browse files
committed
cont : print information when the state is being reused
1 parent f709a32 commit a7bec56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/llama-bench/llama-bench.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,6 +2170,11 @@ int main(int argc, char ** argv) {
21702170
cstate.depth = t.n_depth;
21712171
cstate.buf.resize(llama_state_seq_get_size(ctx, 0));
21722172
llama_state_seq_get_data(ctx, cstate.buf.data(), cstate.buf.size(), 0);
2173+
} else {
2174+
if (params.progress) {
2175+
fprintf(stderr, "llama-bench: benchmark %d/%zu: depth run %d/%d (cached)\n", params_idx, params_count,
2176+
i + 1, params.reps);
2177+
}
21732178
}
21742179
}
21752180

0 commit comments

Comments
 (0)