Fuse the adapter at adapterDir into the base model at modelDir and
write a complete, loadable snapshot to outDir (weights + config.json +
tokenizer aux files). Quantization layout is preserved verbatim: fused
modules are dequantized, updated, and re-quantized with their own source
spec; untouched modules pass through bit-identical. With
options.dequantize every quantized module is written dense instead.
Fuse the adapter at
adapterDirinto the base model atmodelDirand write a complete, loadable snapshot tooutDir(weights + config.json + tokenizer aux files). Quantization layout is preserved verbatim: fused modules are dequantized, updated, and re-quantized with their own source spec; untouched modules pass through bit-identical. Withoptions.dequantizeevery quantized module is written dense instead.