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
LLMThe model to be fine-tuned. This should be an instance of the Model class specifying the LLM model.
finetuningIntent
FinetuningIntentThe 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
LoraFinetuning(string, FinetuningIntent)
Initializes a new instance of the LoraFinetuning class using specified paths.
public LoraFinetuning(string modelPath, FinetuningIntent finetuningIntent = FinetuningIntent.Undefined)
Parameters
modelPath
stringPath to the model file to be fine-tuned.
finetuningIntent
FinetuningIntentThe 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.