# \donttest{
# Download TinyLlama model
#model_path <- edge_download_model(
# model_id = "TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF",
# filename = "tinyllama-1.1b-chat-v1.0.q4_k_m.gguf"
#)
# Use the downloaded model (example only - requires actual model)
if (FALSE && file.exists(model_path)) {
ctx <- edge_load_model(model_path)
response <- edge_completion(ctx, "Hello, how are you?")
edge_free_model(ctx)
}
# }
Run the code above in your browser using DataLab