Constructor LoraMerger
- Namespace
- LMKit.Finetuning
- Assembly
- LM-Kit.NET.dll
LoraMerger(string)
Initializes a new instance of the LoraMerger class with a specified base model file path.
public LoraMerger(string modelPath)
Parameters
modelPath
stringThe file path to the base model.
Exceptions
- ArgumentNullException
Thrown if the
modelPath
is null or contains only whitespace.- FileNotFoundException
Thrown if the specified model file does not exist.
LoraMerger(LLM)
Initializes a new instance of the LoraMerger class using an existing LLM object.
public LoraMerger(LLM model)
Parameters
Exceptions
- ArgumentNullException
Thrown if the
model
is null.- ArgumentException
Thrown if the model was loaded from a stream and does not have a valid file path.