| 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 | |
| 490 | struct llama_server_context |