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
stringThe path to the LoRA adapter source. Must not be null or empty.
scale
floatThe scale factor for the LoRA adapter source. Must be a positive value. Default is 1.
Exceptions
- ArgumentNullException
Thrown when
path
is null or empty.- ArgumentOutOfRangeException
Thrown when
scale
is less than or equal to 0.- FileNotFoundException
Thrown when
path
does not exist.- InvalidDataException
Thrown when the file header is invalid.