MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / print_timings

Method print_timings

examples/server/server.cpp:480–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478 }
479
480 void print_timings() {
481 LOG_TEE("\n");
482 LOG_TEE("%s: prompt eval time = %10.2f ms / %5d tokens (%8.2f ms per token, %8.2f tokens per second)\n",
483 __func__, t_prompt_processing, num_prompt_tokens_processed, t_prompt_processing / num_prompt_tokens_processed, 1e3 / t_prompt_processing * num_prompt_tokens_processed);
484 LOG_TEE("%s: eval time = %10.2f ms / %5d runs (%8.2f ms per token, %8.2f tokens per second)\n",
485 __func__, t_token_generation, n_decoded,t_token_generation / n_decoded, 1e3 / t_token_generation * n_decoded);
486 LOG_TEE("%s: total time = %10.2f ms\n", __func__, t_prompt_processing + t_token_generation);
487 }
488};
489
490struct llama_server_context

Callers 1

update_slotsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected