Table of Contents

Constructor LoraAdapterSource

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

LoraAdapterSource(string, float)

Initializes a new instance of the LoraAdapterSource class with the specified path and scale.

public LoraAdapterSource(string path, float scale = 1)

Parameters

path string

The path to the LoRA adapter source. Must not be null or empty.

scale float

The scale factor for the LoRA adapter source. Must be a positive value. Default is 1.

Exceptions

ArgumentNullException

Thrown when path is null or empty.

FileNotFoundException

Thrown when path does not exist.

InvalidDataException

Thrown when the file header is invalid.