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, LM.MetadataCollection metadataOverrides = null)
Parameters
modelPathstringThe destination file path to store the merged model.
scalefloatThe scaling factor to apply to the LoRA adapter weights. Defaults to 1.
metadataOverridesLM.MetadataCollectionA collection of metadata overrides to apply during the model creation process. Defaults to
null.
Exceptions
- FinetuningException
Thrown when the fine-tuning process fails.