Learn R Programming

edgemodelr (version 0.1.5)

edge_free_model: Free model context and release memory

Description

Free model context and release memory

Usage

edge_free_model(ctx)

Value

NULL (invisibly)

Arguments

ctx

Model context from edge_load_model()

Examples

Run this code
# \donttest{
model_path <- "model.gguf"
if (file.exists(model_path)) {
  ctx <- edge_load_model(model_path)
  # ... use model ...
  edge_free_model(ctx)  # Clean up
}
# }

Run the code above in your browser using DataLab