From f71068fd98837792735c34fd5d390ed6f04b5576 Mon Sep 17 00:00:00 2001 From: pudepiedj Date: Sat, 30 Sep 2023 17:07:31 +0100 Subject: [PATCH] Add name of external file at end --- ParallelQuestions.txt | 4 ++-- examples/parallel/parallel.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ParallelQuestions.txt b/ParallelQuestions.txt index 3f953faad..e946f209b 100644 --- a/ParallelQuestions.txt +++ b/ParallelQuestions.txt @@ -20,11 +20,11 @@ Will religion ever die? Do we understand ourselves? What is the best way to cook eggs? If you cannot see things, on what basis do you evaluate them? -What is belief? +Explain the role of the np junction in photovoltaic cells? Is professional sport a good or bad influence on human behaviour? Is capital punishment immoral? Should we care about other people? -Who am I? +Who are you? Which sense would you surrender if you could? Was Henry Ford a hero or a villain? Do we need leaders? diff --git a/examples/parallel/parallel.cpp b/examples/parallel/parallel.cpp index 061fd3586..6d5ef76dd 100644 --- a/examples/parallel/parallel.cpp +++ b/examples/parallel/parallel.cpp @@ -135,7 +135,7 @@ int main(int argc, char ** argv) { k_prompts.resize(index + 1); k_prompts[index] = prompt; index++; - std::cout << std::setw(3) << std::right << index << " prompt: " << prompt << std::endl; + std::cout << std::setw(2) << std::right << index << " prompt: " << prompt << std::endl; } } @@ -395,14 +395,14 @@ int main(int argc, char ** argv) { printDateTime(); LOG_TEE("\n%s: n_parallel = %d, n_sequences = %d, cont_batching = %d, system tokens = %d\n", __func__, n_clients, n_seq, cont_batching, n_tokens_system); - LOG_TEE("\n"); + std::cout << "external prompt file (if any): " << params.prompt_file << "\n\n"; LOG_TEE("Total prompt tokens: %6d, speed: %5.2f t/s\n", n_total_prompt, (double) (n_total_prompt ) / (t_main_end - t_main_start) * 1e6); LOG_TEE("Total gen tokens: %6d, speed: %5.2f t/s\n", n_total_gen, (double) (n_total_gen ) / (t_main_end - t_main_start) * 1e6); LOG_TEE("Total speed (AVG): %6s speed: %5.2f t/s\n", "", (double) (n_total_prompt + n_total_gen) / (t_main_end - t_main_start) * 1e6); LOG_TEE("Cache misses: %6d\n", n_cache_miss); - LOG_TEE("\n\n"); + LOG_TEE("\n"); llama_print_timings(ctx);