Table of Contents

Method SaveTrainingData

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

SaveTrainingData(string, bool, Encoding, string)

Saves the training data to the specified file path.

public void SaveTrainingData(string path, bool append = false, Encoding encoding = null, string sampleStart = "<SFT>")

Parameters

path string

The file path where the training data will be saved.

append bool

Indicates whether to append to the existing file (true) or overwrite it (false).

encoding Encoding

The text encoding to use. Defaults to UTF-8 if not specified.

sampleStart string

A string to prepend to each sample in the training data. Defaults to "<SFT>".

Exceptions

InvalidOperationException

Thrown when there are no samples to export.