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