summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Gäßler <johannesg@5d6.de>2024-02-08 11:36:54 +0100
committerGitHub <noreply@github.com>2024-02-08 11:36:54 +0100
commitb7b74cef36a93ae01e0b9af8986d131761742d0e (patch)
tree4ded1be9a03d4132d0742da7ec19744888d14f09
parent4aa43fab569215a13495a7f1a0f8afc541b16d03 (diff)
fix trailing whitespace (#5407)
-rw-r--r--llama.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llama.cpp b/llama.cpp
index 552e0d02..89acafbc 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -8587,7 +8587,7 @@ void llama_sample_top_k(struct llama_context * ctx, llama_token_data_array * can
// }
const int64_t t_start_sample_us = ggml_time_us();
-
+
if (k <= 0) {
k = candidates->size;
}