10 instantiations of Phi3ForCasualLM
Microsoft.ML.GenAI.Phi (3)
Phi3\Phi3ForCasualLM.cs (3)
62var phi = new Phi3ForCasualLM(modelConfig); 90var model = new Phi3ForCasualLM(modelConfig); 108model = new Phi3ForCasualLM(modelConfig);
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);
32 references to Phi3ForCasualLM
Microsoft.ML.GenAI.Phi (13)
Extension\SemanticKernelExtension.cs (2)
18ICausalLMPipeline<Tokenizer, Phi3ForCasualLM> pipeline) 27ICausalLMPipeline<Tokenizer, Phi3ForCasualLM> pipeline)
Phi3\Phi3CausalLMAgent.cs (2)
20private readonly ICausalLMPipeline<Tokenizer, Phi3ForCasualLM> _pipeline; 24ICausalLMPipeline<Tokenizer, Phi3ForCasualLM> pipeline,
Phi3\Phi3CausalLMChatCompletionService.cs (2)
17private readonly ICausalLMPipeline<Tokenizer, Phi3ForCasualLM> _pipeline; 21public Phi3CausalLMChatCompletionService(ICausalLMPipeline<Tokenizer, Phi3ForCasualLM> pipeline)
Phi3\Phi3CausalLMTextGenerationService.cs (2)
15private readonly ICausalLMPipeline<Tokenizer, Phi3ForCasualLM> _pipeline; 17public Phi3CausalLMTextGenerationService(ICausalLMPipeline<Tokenizer, Phi3ForCasualLM> pipeline)
Phi3\Phi3ForCasualLM.cs (5)
31: base(nameof(Phi3ForCasualLM)) 52public static Phi3ForCasualLM FromPretrained( 62var phi = new Phi3ForCasualLM(modelConfig); 70public static Phi3ForCasualLM FromPretrained( 90var model = new Phi3ForCasualLM(modelConfig);
Microsoft.ML.GenAI.Phi.Tests (10)
AutoGenTests.cs (1)
19var pipeline = Mock.Of<ICausalLMPipeline<Tokenizer, Phi3ForCasualLM>>();
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);
SemanticKernelTests.cs (2)
22var pipeline = Mock.Of<ICausalLMPipeline<Tokenizer, Phi3ForCasualLM>>(); 58var pipeline = Mock.Of<ICausalLMPipeline<Tokenizer, Phi3ForCasualLM>>();
Microsoft.ML.GenAI.Samples (9)
Phi3Mini\AutoGenSample.cs (3)
32var model = Phi3ForCasualLM.FromPretrained(weightFolder, "config.json", layersOnTargetDevice: -1, quantizeToInt8: true); 33var pipeline = new CausalLMPipeline<LlamaTokenizer, Phi3ForCasualLM>(tokenizer, model, device);
Phi3Mini\SemanticKernelSample.cs (6)
28var model = Phi3ForCasualLM.FromPretrained(weightFolder, "config.json", layersOnTargetDevice: -1, quantizeToInt8: true); 29var pipeline = new CausalLMPipeline<LlamaTokenizer, Phi3ForCasualLM>(tokenizer, model, device); 59var model = Phi3ForCasualLM.FromPretrained(weightFolder, "config.json", layersOnTargetDevice: -1, quantizeToInt8: true); 60var pipeline = new CausalLMPipeline<LlamaTokenizer, Phi3ForCasualLM>(tokenizer, model, device);