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
modelPathstringThe file path to the base model.
Exceptions
- ArgumentNullException
Thrown if the
modelPathis null or contains only whitespace.- FileNotFoundException
Thrown if the specified model file does not exist.
LoraMerger(LM)
Initializes a new instance of the LoraMerger class using an existing LM object.
public LoraMerger(LM model)
Parameters
Exceptions
- ArgumentNullException
Thrown if the
modelis null.- ArgumentException
Thrown if the model was loaded from a stream and does not have a valid file path.