14 references to Phi2Config
Microsoft.ML.GenAI.Phi (13)
Module\Phi2Attention.cs (2)
26
private readonly
Phi2Config
_config;
55
public Phi2Attention(
Phi2Config
config, int? layerIdx = null, int maxBatch = 2, int maxLength = 1024)
Module\Phi2DecoderLayer.cs (1)
32
public Phi2DecoderLayer(
Phi2Config
config, int? layerIdx = null)
Module\Phi2MLP.cs (1)
22
public Phi2MLP(
Phi2Config
config)
Module\Phi2Model.cs (3)
29
private readonly
Phi2Config
_config;
37
public Phi2Model(
Phi2Config
config)
48
public
Phi2Config
Config => this._config;
Phi2\Config.cs (3)
45
var
phi2Config = JsonSerializer.Deserialize<
Phi2Config
>(phi2ConfigContent) ?? throw new ArgumentNullException(nameof(phi2ConfigContent));
52
public static
Phi2Config
Phi2 { get; }
Phi2\Phi2ForCasualLM.cs (3)
24
public Phi2ForCasualLM(
Phi2Config
config)
59
var
modelConfig = JsonSerializer.Deserialize<
Phi2Config
>(File.ReadAllText(config)) ?? throw new ArgumentNullException(nameof(config));
Microsoft.ML.GenAI.Phi.Tests (1)
Phi2Tests.cs (1)
33
var model = new Phi2ForCasualLM(
Phi2Config
.Phi2);