Table of Contents

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 string

The 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(LM)

Initializes a new instance of the LoraMerger class using an existing LM object.

public LoraMerger(LM model)

Parameters

model LM

The LM object containing the base model path.

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.