% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/llama.R
\name{llama_model_info}
\alias{llama_model_info}
\title{Get model metadata}
\usage{
llama_model_info(model)
}
\arguments{
\item{model}{Model handle returned by [llama_load_model]}
}
\value{
A named list with fields:
  - `n_ctx_train`: context size the model was trained with
  - `n_embd`: embedding dimension
  - `n_vocab`: vocabulary size
  - `n_layer`: number of layers
  - `n_head`: number of attention heads
  - `n_head_kv`: number of key-value attention heads (GQA)
  - `desc`: human-readable model description string
  - `size`: model size in bytes
  - `n_params`: number of parameters
  - `has_encoder`: whether the model has an encoder
  - `has_decoder`: whether the model has a decoder
  - `is_recurrent`: whether the model is recurrent (e.g. Mamba)
}
\description{
Get model metadata
}
\examples{
\dontrun{
model <- llama_load_model("model.gguf")
info <- llama_model_info(model)
cat("Model:", info$desc, "\n")
cat("Layers:", info$n_layer, "\n")
cat("Context:", info$n_ctx_train, "\n")
cat("Size:", info$size / 1e9, "GB\n")
}
}
