| model_metadata | R Documentation |
Returns all key-value metadata pairs embedded in the model's GGUF file, including architecture, tokenizer settings, chat template, and more. Useful for diagnosing issues such as missing chat templates.
model_metadata(model)
model |
A model object from |
Named character vector where names are metadata keys and values are
the corresponding values. Common keys include
general.architecture and
tokenizer.chat_template.
## Not run:
model <- model_load("model.gguf")
meta <- model_metadata(model)
# Check if chat template is embedded
meta["tokenizer.chat_template"]
# Check model architecture
meta["general.architecture"]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.