Skip to content

Commit d74a6ab

Browse files
common : update comment
Co-authored-by: Johannes Gäßler <[email protected]>
1 parent 2efc7e4 commit d74a6ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/sampling.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ uint32_t common_sampler_get_seed(const struct common_sampler * gsmpl);
8686
// helpers
8787

8888
// access the internal list of current candidate tokens
89-
// if do_sort == true, the candidates will be sorted (in descending order of probability) in case they are not already sorted
90-
// if do_sort == false, the candidates *might* not be sorted. use the .sorted flag of the result to determine that
89+
// if do_sort == true, the candidates are guaranteed to be sorted afterwards (in descending order of probability)
90+
// the .sorted flag of the result indicates whether the returned candidates are sorted
9191
llama_token_data_array * common_sampler_get_candidates(struct common_sampler * gsmpl, bool do_sort);
9292

9393
// get the last accepted token

0 commit comments

Comments
 (0)