diff --git a/examples/speculative/speculative.cpp b/examples/speculative/speculative.cpp index 70a6cd455dd278..252fded41bbbe0 100644 --- a/examples/speculative/speculative.cpp +++ b/examples/speculative/speculative.cpp @@ -247,7 +247,7 @@ int main(int argc, char ** argv) { llama_token_data_array cur_p = { candidates.data(), candidates.size(), false }; - // top-2 sampling + // computes softmax and sorts the candidates llama_sample_softmax(ctx_dft, &cur_p); for (int i = 0; i < 3; ++i) {