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