| llama_get_logits_ith | R Documentation |
Returns the logit vector for token at index i in the last decoded batch.
Use i = -1 to get the logits for the last token.
llama_get_logits_ith(ctx, i)
ctx |
Context handle returned by [llama_new_context] |
i |
Integer index into the last batch (0-based). Use |
A numeric vector of length n_vocab.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.