Table of Contents

Constructor LoraFinetuning

Namespace
LMKit.Finetuning
Assembly
LM-Kit.NET.dll

LoraFinetuning(LLM, FinetuningIntent)

Initializes a new instance of the LoraFinetuning class using a specified model.

public LoraFinetuning(LLM model, FinetuningIntent finetuningIntent = FinetuningIntent.Undefined)

Parameters

model LLM

The model to be fine-tuned. This should be an instance of the Model class specifying the LLM model.

finetuningIntent FinetuningIntent

The intent behind the fine-tuning operation. This parameter specifies the purpose of the fine-tuning and can be set to Undefined, StylisticGuidance, or KnowledgeUpdate. The default value is Undefined.

Exceptions

ArgumentNullException
InvalidModelException

LoraFinetuning(string, FinetuningIntent)

Initializes a new instance of the LoraFinetuning class using specified paths.

public LoraFinetuning(string modelPath, FinetuningIntent finetuningIntent = FinetuningIntent.Undefined)

Parameters

modelPath string

Path to the model file to be fine-tuned.

finetuningIntent FinetuningIntent

The intent behind the fine-tuning operation. This parameter specifies the purpose of the fine-tuning and can be set to Undefined, StylisticGuidance, or KnowledgeUpdate. The default value is Undefined.

Exceptions

ArgumentNullException
InvalidModelException