Skip to content

Commit

Permalink
speculative : fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Sep 3, 2023
1 parent c4ec4eb commit 22f7a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/speculative/speculative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 22f7a9d

Please sign in to comment.