17 references to MistralConfig
Microsoft.ML.GenAI.Mistral (14)
MistralConfig.cs (2)
44
Mistral_7B_Instruct_v0_3 = JsonSerializer.Deserialize<
MistralConfig
>(mistral7BInstructContent) ?? throw new ArgumentNullException(nameof(mistral7BInstructContent));
51
public static
MistralConfig
Mistral_7B_Instruct_v0_3 { get; }
MistralDecoderLayer.cs (3)
61
private readonly
MistralConfig
_llamaConfig;
76
public MistralDecoderLayer(
MistralConfig
config, int layerIndex)
89
private Attention CreateAttention(
MistralConfig
config, int layerIndex)
MistralForCausalLM.cs (6)
18
private readonly
MistralConfig
_config;
26
public MistralForCausalLM(
MistralConfig
config)
58
var
modelConfig = JsonSerializer.Deserialize<
MistralConfig
>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
86
var
modelConfig = JsonSerializer.Deserialize<
MistralConfig
>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
MistralMLP.cs (1)
23
public MistralMLP(
MistralConfig
config)
MistralModel.cs (2)
14
private readonly
MistralConfig
_config;
26
public MistralModel(
MistralConfig
config)
Microsoft.ML.GenAI.Mistral.Tests (1)
Mistral_7B_Instruct_V0_3Tests.cs (1)
34
var model = new MistralForCausalLM(
MistralConfig
.Mistral_7B_Instruct_v0_3);
Microsoft.ML.GenAI.Samples (2)
Mistral\Mistral_7B_Instruct.cs (2)
76
var
mistralConfig = JsonSerializer.Deserialize<
MistralConfig
>(File.ReadAllText(Path.Combine(weightFolder, configName))) ?? throw new ArgumentNullException(nameof(configName));