| llama_vocab_info | R Documentation |
Returns the token IDs for special tokens (BOS, EOS, etc.) and fill-in-middle (FIM) tokens used by the model's vocabulary. A value of -1 indicates the token is not defined.
llama_vocab_info(model)
model |
Model handle returned by [llama_load_model] |
A named integer vector with token IDs for: bos, eos,
eot, sep, nl, pad, fim_pre,
fim_suf, fim_mid, fim_rep, fim_sep.
A value of -1 means the token is not defined by the model.
## Not run:
model <- llama_load_model("model.gguf")
vocab <- llama_vocab_info(model)
cat("BOS token:", vocab["bos"], "\n")
cat("EOS token:", vocab["eos"], "\n")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.