Skip to content

Commit

Permalink
llama-bench : log benchmark progress
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Sep 3, 2024
1 parent b60074f commit b3ff9a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/llama-bench/llama-bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,10 @@ int main(int argc, char ** argv) {
llama_model * lmodel = nullptr;
const cmd_params_instance * prev_inst = nullptr;

int params_idx = 1;
for (const auto & inst : params_instances) {
LOG_TEE("llama-bench: starting benchmark %d/%ld\n", params_idx, params_instances.size());
params_idx ++;
// keep the same model between tests when possible
if (!lmodel || !prev_inst || !inst.equal_mparams(*prev_inst)) {
if (lmodel) {
Expand Down

0 comments on commit b3ff9a5

Please sign in to comment.