examples : utilize new llama_get_logits_ith()

This commit is contained in:
Georgi Gerganov 2023-09-28 16:05:37 +03:00
parent 4c72ab13b2
commit d008733e6b
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
3 changed files with 3 additions and 3 deletions

View file

@ -150,7 +150,7 @@ int main(int argc, char ** argv) {
}
auto n_vocab = llama_n_vocab(ctx);
auto logits = llama_get_logits(ctx) + i_batch[i] * n_vocab;
auto logits = llama_get_logits_ith(ctx, i_batch[i]);
std::vector<llama_token_data> candidates;
candidates.reserve(n_vocab);