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: a plain GGUF file, an LM-Kit model archive, or an LM-Kit encrypted GGUF container.

Exceptions

ArgumentNullException

Thrown if the modelPath is null or contains only whitespace.

FileNotFoundException

Thrown if the specified model file does not exist.

InvalidDataException

Thrown if the file is not a supported base model format.

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.

Share