nit: print current pp & tg in llama-bench
This commit is contained in:
parent
bbf0420bac
commit
a4c66c4baf
|
|
@ -187,7 +187,7 @@ Java_android_llama_cpp_LLamaAndroid_benchModel(JNIEnv *env, jobject /*unused*/,
|
||||||
int i, j;
|
int i, j;
|
||||||
int nri;
|
int nri;
|
||||||
for (nri = 0; nri < nr; nri++) {
|
for (nri = 0; nri < nr; nri++) {
|
||||||
LOGi("Benchmark prompt processing (pp)");
|
LOGi("Benchmark prompt processing (pp = %d)", pp);
|
||||||
|
|
||||||
common_batch_clear(g_batch);
|
common_batch_clear(g_batch);
|
||||||
|
|
||||||
|
|
@ -207,7 +207,7 @@ Java_android_llama_cpp_LLamaAndroid_benchModel(JNIEnv *env, jobject /*unused*/,
|
||||||
|
|
||||||
// bench text generation
|
// bench text generation
|
||||||
|
|
||||||
LOGi("Benchmark text generation (tg)");
|
LOGi("Benchmark text generation (tg = %d)", tg);
|
||||||
|
|
||||||
llama_memory_clear(llama_get_memory(context), false);
|
llama_memory_clear(llama_get_memory(context), false);
|
||||||
const auto t_tg_start = ggml_time_us();
|
const auto t_tg_start = ggml_time_us();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue