Learn R Programming

edgemodelr (version 0.1.6)

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
if (FALSE) {
# Requires a downloaded model (not run in checks)
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