28 references to Phi3Config
Microsoft.ML.GenAI.Phi (21)
Module\Phi3DecoderLayer.cs (3)
69
private readonly
Phi3Config
_config;
79
public Phi3DecoderLayer(
Phi3Config
config, int layerIdx)
141
private Attention CreateAttentionFromConfig(
Phi3Config
config, int layerIdx)
Module\Phi3MLP.cs (1)
26
public Phi3MLP(
Phi3Config
config)
Module\Phi3Model.cs (2)
15
private readonly
Phi3Config
_config;
27
public Phi3Model(
Phi3Config
config)
Module\Phi3SuScaledRotaryEmbedding.cs (1)
25
public Phi3SuScaledRotaryEmbedding(int dim,
Phi3Config
config)
Phi3\Config.cs (8)
50
Phi3Mini4kInstruct = JsonSerializer.Deserialize<
Phi3Config
>(phi3Mini4kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Mini4kInstructContent));
51
Phi3Mini128kInstruct = JsonSerializer.Deserialize<
Phi3Config
>(phi3Mini128kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Mini128kInstructContent));
52
Phi3Medium4kInstruct = JsonSerializer.Deserialize<
Phi3Config
>(phi3Medium4kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Medium4kInstructContent));
53
Phi3Medium128kInstruct = JsonSerializer.Deserialize<
Phi3Config
>(phi3Medium128kInstructContent) ?? throw new ArgumentNullException(nameof(phi3Medium128kInstructContent));
59
public static
Phi3Config
Phi3Mini4kInstruct { get; }
64
public static
Phi3Config
Phi3Medium4kInstruct { get; }
69
public static
Phi3Config
Phi3Medium128kInstruct { get; }
74
public static
Phi3Config
Phi3Mini128kInstruct { get; }
Phi3\Phi3ForCasualLM.cs (6)
23
private readonly
Phi3Config
_config;
30
public Phi3ForCasualLM(
Phi3Config
config)
60
var
modelConfig = JsonSerializer.Deserialize<
Phi3Config
>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
88
var
modelConfig = JsonSerializer.Deserialize<
Phi3Config
>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Phi.Tests (7)
Phi3Tests.cs (7)
35
var model = new Phi3ForCasualLM(
Phi3Config
.Phi3Mini4kInstruct);
45
var model = new Phi3ForCasualLM(
Phi3Config
.Phi3Mini4kInstruct);
59
var model = new Phi3ForCasualLM(
Phi3Config
.Phi3Mini4kInstruct);
73
var model = new Phi3ForCasualLM(
Phi3Config
.Phi3Medium4kInstruct);
84
var model = new Phi3ForCasualLM(
Phi3Config
.Phi3Medium128kInstruct);
94
var model = new Phi3ForCasualLM(
Phi3Config
.Phi3Mini128kInstruct);
104
var model = new Phi3ForCasualLM(
Phi3Config
.Phi3Mini128kInstruct);