% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_vocab_info}
\alias{llama_vocab_info}
\title{Get vocabulary special token IDs}
\usage{
llama_vocab_info(model)
}
\arguments{
\item{model}{Model handle returned by [llama_load_model]}
}
\value{
A named integer vector with token IDs for: \code{bos}, \code{eos},
  \code{eot}, \code{sep}, \code{nl}, \code{pad}, \code{fim_pre},
  \code{fim_suf}, \code{fim_mid}, \code{fim_rep}, \code{fim_sep}.
  A value of -1 means the token is not defined by the model.
}
\description{
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.
}
\examples{
\dontrun{
model <- llama_load_model("model.gguf")
vocab <- llama_vocab_info(model)
cat("BOS token:", vocab["bos"], "\n")
cat("EOS token:", vocab["eos"], "\n")
}
}
