Skip to content

Commit a217382

Browse files
committed
correct comment placement
1 parent 65ef1c8 commit a217382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,6 @@ struct server_context {
19581958
size_t n_probs = slot.params.sampling.n_probs;
19591959
int n_vocab = llama_n_vocab(llama_get_model(ctx));
19601960
if (post_sampling) {
1961-
// TODO: optimize this with min-p optimization
19621961
const auto * cur_p = common_sampler_get_candidates(slot.smpl);
19631962
const size_t max_probs = cur_p->size;
19641963

@@ -1982,6 +1981,7 @@ struct server_context {
19821981
}
19831982
}
19841983
} else {
1984+
// TODO: optimize this with min-p optimization
19851985
std::vector<llama_token_data> cur = get_token_probabilities(ctx, idx);
19861986

19871987
bool found_sampled_tok = false;

0 commit comments

Comments
 (0)