From 1a6c8cf72c7d2159c9d03163f6a2b8010fe5bcd2 Mon Sep 17 00:00:00 2001 From: jon-chuang Date: Sun, 16 Apr 2023 02:47:32 +0800 Subject: [PATCH] remove color --- examples/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common.cpp b/examples/common.cpp index 94b5ead6f..eaa5605b8 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -228,7 +228,7 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) { if (params.n_threads <= 0) { int32_t physical_cores = get_num_physical_cores(); if (physical_cores > 4) { - std::cout << "\n\033[1;31mWARNING:\033[0m Defaulting to 4 threads. " + std::cerr << "\nWARNING: Defaulting to 4 threads. " << "(detected " << physical_cores << " physical cores)" << std::endl << "Adjust --threads based on your observed inference speed in ms/token." << std::endl << std::endl; }