Class ChatTrainingSample
- Namespace
- LMKit.Finetuning
- Assembly
- LM-Kit.NET.dll
Represents a single supervised fine-tuning sample for chat-based models. Encapsulates the full ChatHistory to learn from and the target InferenceModality (e.g., text-only or multimodal).
public sealed class ChatTrainingSample
- Inheritance
-
ChatTrainingSample
- Inherited Members
Remarks
Use this type to build datasets for fine-tuning conversational models. Each instance should contain the complete turn-by-turn conversation the model is expected to imitate, including system, user, and assistant messages.
Constructors
- ChatTrainingSample(ChatHistory, InferenceModality)
Initializes a new instance of the ChatTrainingSample class.
Properties
- ChatHistory
The full conversation that constitutes the supervision signal for fine-tuning. This should include all relevant turns (system, user, assistant) in order.
- InferenceModality
The intended inference modality for which this sample was prepared (e.g., Text or Multimodal).