Table of Contents

Method AddTrainingData

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

AddTrainingData(ChatHistory)

Adds a conversation to the training set. Assistant turns are supervised; system and user turns are masked when AssistantLossOnly is enabled. Use BeginOfNewConversation markers to pack several conversations into one history.

public int AddTrainingData(ChatHistory chatHistory)

Parameters

chatHistory ChatHistory

Returns

int

The number of samples added.

Share