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
stringThe destination file path to store the merged model.
scale
floatThe scaling factor to apply to the LoRA adapter weights. Defaults to 1.
metadataOverrides
LLM.MetadataCollectionA collection of metadata overrides to apply during the model creation process. Defaults to
null
.
Exceptions
- FinetuningException
Thrown when the fine-tuning process fails.