add debug output to starcoder

This commit is contained in:
James Ravenscroft 2023-08-23 15:53:38 +00:00
parent bad53ad190
commit 6a72e32dab

View File

@ -766,6 +766,10 @@ std::stringstream StarcoderModel::predict(std::string prompt, int max_length, bo
break; break;
} }
} }
spdlog::debug("{}: sample time = {:8.2f} ms\n", __func__, t_sample_us/1000.0f);
spdlog::debug("{}: predict time = {:8.2f} ms / {:.2f} ms per token\n", __func__, t_predict_us/1000.0f, t_predict_us/1000.0f/n_past);
return result; return result;
} }