dragon_merge: Merge the adapter into the base model

View source: R/merge.R

dragon_mergeR Documentation

Merge the adapter into the base model

Description

Produces a standalone model directory that loads with plain transformers and needs neither peft nor dragonfarm.

Usage

dragon_merge(run, out_dir = NULL)

Arguments

run

A dragon_run or run directory.

out_dir

Where to write the merged model. Defaults to ⁠merged/⁠ inside the run directory.

Value

The output path, invisibly.


dragonfarm documentation built on Oct. 12, 2026, 5:07 p.m.