Learn R Programming

edgemodelr (version 0.1.5)

edge_quick_setup: Quick setup for a popular model

Description

Quick setup for a popular model

Usage

edge_quick_setup(model_name, cache_dir = NULL, verbose = TRUE)

Value

List with model path and context (if llama.cpp is available)

Arguments

model_name

Name of the model from edge_list_models()

cache_dir

Directory to store downloaded models

verbose

Whether to print setup progress messages

Examples

Run this code
# \donttest{
# Quick setup with TinyLlama
setup <- edge_quick_setup("TinyLlama-1.1B")
ctx <- setup$context

if (!is.null(ctx)) {
  response <- edge_completion(ctx, "Hello!")
  cat("Response:", response, "\n")
  edge_free_model(ctx)
}
# }

Run the code above in your browser using DataLab