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
stringThe file path where the training data will be saved.
append
boolIndicates whether to append to the existing file (true) or overwrite it (false).
encoding
EncodingThe text encoding to use. Defaults to UTF-8 if not specified.
sampleStart
stringA string to prepend to each sample in the training data. Defaults to "<SFT>".
Exceptions
- InvalidOperationException
Thrown when there are no samples to export.