11 references to CausalLMDataset
Microsoft.ML.GenAI.Core (5)
Trainer\CasualLMSupervisedFineTuningTrainer.cs (1)
30
CausalLMDataset
trainDataset,
Trainer\CausalLMDataset.cs (4)
26
public static
CausalLMDataset
Create(IEnumerable<IEnumerable<ChatMessage>> inputs,
50
public static
CausalLMDataset
Create(IEnumerable<string> inputs, IEnumerable<string> outputs, Tokenizer tokenizer)
70
public static
CausalLMDataset
Create(IEnumerable<IReadOnlyList<int>> inputIds, IEnumerable<IReadOnlyList<int>> labelIds)
84
public static
CausalLMDataset
Create(IReadOnlyList<int> inputIds, IReadOnlyList<int> labelIds)
Microsoft.ML.GenAI.Core.Tests (3)
CasualLMDatasetTest.cs (3)
35
var dataset =
CausalLMDataset
.Create(inputIds, outputIds)
67
var dataset =
CausalLMDataset
.Create(inputIds, outputIds)
98
var dataset =
CausalLMDataset
.Create(inputs, outputs, Llama3_1ChatTemplateBuilder.Instance, tokenizer)
Microsoft.ML.GenAI.Samples (3)
Llama\SFT_Llama_3_2_1B.cs (3)
46
var
input = CreateDataset(dataset, pipeline.TypedTokenizer, Llama3_1ChatTemplateBuilder.Instance);
101
public static
CausalLMDataset
CreateDataset(IEnumerable<Data> dataset, Tokenizer tokenizer, IMEAIChatTemplateBuilder templateBuilder)
116
return
CausalLMDataset
.Create(chatHistory.Select(c => c.trainChatHistory), chatHistory.Select(c => c.assistantMessage), templateBuilder, tokenizer);