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