summaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
authorJed Fox <git@jedfox.com>2023-05-06 17:01:47 -0400
committerGitHub <noreply@github.com>2023-05-06 17:01:47 -0400
commit3924088512d9e12e90ed6dbf28a6c5712481d33e (patch)
tree9dacd76924e57e792ab834b47d77b875d1c8ae4f /llama.cpp
parent173d0e6419e8f8f3c1f4f13201b777f4c60629f3 (diff)
Remove default arguments from sampling functions (#1343)
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llama.cpp b/llama.cpp
index 85af4dc4..c36c6ced 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -1791,7 +1791,7 @@ llama_token llama_sample_token_mirostat(struct llama_context * ctx, llama_token_
float k = powf((epsilon_hat * powf(2, *mu)) / (1 - powf(N, -epsilon_hat)), 1 / s_hat);
// Sample the next word X using top-k sampling
- llama_sample_top_k(nullptr, candidates, int(k));
+ llama_sample_top_k(nullptr, candidates, int(k), 1);
if (ctx) {
ctx->t_sample_us += ggml_time_us() - t_start_sample_us;
}