Merges the adapter into the base model (if not done already) and
registers the result with Ollama, which imports safetensors directly for
the Llama, Qwen2, Gemma, and related families. Ollama then serves it
quickly on the CPU or GPU of whatever machine it runs on, and the returned
backend points dragon_generate() and dragon_chat() at it.
Usage
dragon_serve_ollama(
run,
name = NULL,
quantize = NULL,
ollama = Sys.which("ollama")
)Examples
if (interactive()) {
backend <- dragon_serve_ollama(run)
options(dragonfarm.backend = backend)
dragon_chat(run)$say("Hello")
}