Skip to content

Commit 6e49744

Browse files
committed
sampling : fix access to logits
ggml-ci
1 parent 80e23b2 commit 6e49744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/sampling.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ llama_token llama_sampling_sample(
132132
struct llama_sampling_context * ctx_sampling,
133133
struct llama_context * ctx_main,
134134
struct llama_context * ctx_cfg,
135-
int idx = 0);
135+
int idx = -1);
136136

137137
void llama_sampling_accept(
138138
struct llama_sampling_context * ctx_sampling,

0 commit comments

Comments
 (0)