From 38863a34d2e1f947fc52dd71d33ae953c0d57a2a Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sun, 4 Feb 2024 20:30:06 +0800 Subject: [PATCH] compile fix --- common/sampling.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/sampling.cpp b/common/sampling.cpp index 8f1a7b31fd3a3..76a3bd54742bc 100644 --- a/common/sampling.cpp +++ b/common/sampling.cpp @@ -249,10 +249,10 @@ static llama_token llama_sampling_sample_impl( } else { if (mirostat == 1) { const int mirostat_m = 100; - llama_sample_temp(ctx_main, &cur_p, temp); + llama_sample_temp(ctx_main, &cur_p, temp, 0); id = llama_sample_token_mirostat(ctx_main, &cur_p, mirostat_tau, mirostat_eta, mirostat_m, &ctx_sampling->mirostat_mu); } else if (mirostat == 2) { - llama_sample_temp(ctx_main, &cur_p, temp); + llama_sample_temp(ctx_main, &cur_p, temp, 0); id = llama_sample_token_mirostat_v2(ctx_main, &cur_p, mirostat_tau, mirostat_eta, &ctx_sampling->mirostat_mu); } else { // temperature sampling