powered by
Free model context and release memory
edge_free_model(ctx)
NULL (invisibly)
Model context from edge_load_model()
# \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