4 instantiations of MistralForCausalLM
Microsoft.ML.GenAI.Mistral (3)
MistralForCausalLM.cs (3)
60var model = new MistralForCausalLM(modelConfig); 88var model = new MistralForCausalLM(modelConfig); 106model = new MistralForCausalLM(modelConfig);
Microsoft.ML.GenAI.Mistral.Tests (1)
Mistral_7B_Instruct_V0_3Tests.cs (1)
34var model = new MistralForCausalLM(MistralConfig.Mistral_7B_Instruct_v0_3);
14 references to MistralForCausalLM
Microsoft.ML.GenAI.Mistral (7)
MistralCausalLMAgent.cs (2)
18private readonly ICausalLMPipeline<Tokenizer, MistralForCausalLM> _pipeline; 31ICausalLMPipeline<Tokenizer, MistralForCausalLM> pipeline,
MistralForCausalLM.cs (5)
27: base(nameof(MistralForCausalLM)) 50public static MistralForCausalLM FromPretrained( 60var model = new MistralForCausalLM(modelConfig); 68public static MistralForCausalLM FromPretrained( 88var model = new MistralForCausalLM(modelConfig);
Microsoft.ML.GenAI.Mistral.Tests (1)
Mistral_7B_Instruct_V0_3Tests.cs (1)
34var model = new MistralForCausalLM(MistralConfig.Mistral_7B_Instruct_v0_3);
Microsoft.ML.GenAI.Samples (6)
Mistral\Mistral_7B_Instruct.cs (6)
44var model = MistralForCausalLM.FromPretrained(weightFolder, configName, layersOnTargetDevice: -1); 46var pipeline = new CausalLMPipeline<LlamaTokenizer, MistralForCausalLM>(tokenizer, model, device); 129var model = MistralForCausalLM.FromPretrained(weightFolder, configName, layersOnTargetDevice: -1); 131var pipeline = new CausalLMPipeline<LlamaTokenizer, MistralForCausalLM>(tokenizer, model, device);