# \donttest{
# Download from GPT4All CDN
model_path <- edge_download_url(
url = "https://gpt4all.io/models/gguf/mistral-7b-instruct-v0.1.Q4_0.gguf",
filename = "mistral-7b.gguf"
)
# Use the downloaded model
if (file.exists(model_path)) {
ctx <- edge_load_model(model_path)
response <- edge_completion(ctx, "Hello!")
edge_free_model(ctx)
}
# }
Run the code above in your browser using DataLab