| llama_vocab_get_text | R Documentation |
Returns the raw text string stored in the vocabulary for a given token ID. Unlike [llama_token_to_piece], this does not apply any special rendering — it returns exactly what is stored in the GGUF vocabulary table.
llama_vocab_get_text(model, token)
model |
Model handle returned by [llama_load_model] |
token |
Integer token ID (0-based) |
A character string, or 'NULL' if the token has no text entry.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.