Table of Contents

Method Finetune2Model

Namespace
LMKit.Finetuning
Assembly
LM-Kit.NET.dll

Finetune2Model(string, float, MetadataCollection)

Executes the fine-tuning process and merges the resulting LoRA adapter into a new model.

public void Finetune2Model(string modelPath, float scale = 1, LLM.MetadataCollection metadataOverrides = null)

Parameters

modelPath string

The destination file path to store the merged model.

scale float

The scaling factor to apply to the LoRA adapter weights. Defaults to 1.

metadataOverrides LLM.MetadataCollection

A collection of metadata overrides to apply during the model creation process. Defaults to null.

Exceptions

FinetuningException

Thrown when the fine-tuning process fails.