1 instantiation of Llama3_1ChatTemplateBuilder
Microsoft.ML.GenAI.LLaMA (1)
Llama3_1ChatTemplateBuilder.cs (1)
129
public static Llama3_1ChatTemplateBuilder Instance { get; } = new
Llama3_1ChatTemplateBuilder
();
11 references to Llama3_1ChatTemplateBuilder
Microsoft.ML.GenAI.Core.Tests (1)
CasualLMDatasetTest.cs (1)
98
var dataset = CausalLMDataset.Create(inputs, outputs,
Llama3_1ChatTemplateBuilder
.Instance, tokenizer)
Microsoft.ML.GenAI.LLaMA (6)
Llama3_1ChatTemplateBuilder.cs (1)
129
public static
Llama3_1ChatTemplateBuilder
Instance { get; } = new Llama3_1ChatTemplateBuilder();
Llama3CausalLMChatClient.cs (1)
22
chatTemplateBuilder ??
Llama3_1ChatTemplateBuilder
.Instance,
LlamaCausalLMAgent.cs (2)
25
/// <param name="templateBuilder">the template builder to build chat prompt. If the value is null, <see cref="
Llama3_1ChatTemplateBuilder
.Instance"/> would be used.</param>
35
this._templateBuilder = templateBuilder ??
Llama3_1ChatTemplateBuilder
.Instance;
LlamaChatCompletionService.cs (2)
23
/// <param name="templateBuilder">The template builder to use for generating chat prompts, if not provided, <see cref="
Llama3_1ChatTemplateBuilder
.Instance"/> will be used.</param>
28
_templateBuilder = templateBuilder ??
Llama3_1ChatTemplateBuilder
.Instance;
Microsoft.ML.GenAI.LLaMA.Tests (3)
LLaMA3_1Tests.cs (3)
105
var prompt =
Llama3_1ChatTemplateBuilder
.Instance.BuildPrompt(chatHistory);
122
var prompt =
Llama3_1ChatTemplateBuilder
.Instance.BuildPrompt(chatHistory);
139
var prompt =
Llama3_1ChatTemplateBuilder
.Instance.BuildPrompt(chatHistory);
Microsoft.ML.GenAI.Samples (1)
Llama\SFT_Llama_3_2_1B.cs (1)
46
var input = CreateDataset(dataset, pipeline.TypedTokenizer,
Llama3_1ChatTemplateBuilder
.Instance);