llama_free_model: Free a loaded model

View source: R/llama.R

llama_free_modelR Documentation

Free a loaded model

Description

Free a loaded model

Usage

llama_free_model(model)

Arguments

model

Model handle returned by [llama_load_model]

Value

No return value, called for side effects. Releases the memory associated with the model.

Examples

## Not run: 
model <- llama_load_model("model.gguf")
# ... use model ...
llama_free_model(model)

## End(Not run)

llamaR documentation built on May 28, 2026, 1:06 a.m.