8 instantiations of LlamaForCausalLM
Microsoft.ML.GenAI.LLaMA (3)
Microsoft.ML.GenAI.LLaMA.Tests (5)
29 references to LlamaForCausalLM
Microsoft.ML.GenAI.LLaMA (13)
Microsoft.ML.GenAI.LLaMA.Tests (5)
Microsoft.ML.GenAI.Samples (11)
Llama\SFT_Llama_3_2_1B.cs (5)
63if (p is not ICausalLMPipeline<Tokenizer, LlamaForCausalLM> llamaPipeline)
81public static ICausalLMPipeline<TiktokenTokenizer, LlamaForCausalLM> LoadModel(string weightFolder, string checkPointName = "model.safetensors.index.json")
92var model = LlamaForCausalLM.FromPretrained(weightFolder, configName, checkPointName: checkPointName, layersOnTargetDevice: -1, quantizeToInt8: false);
94var pipeline = new CausalLMPipeline<TiktokenTokenizer, LlamaForCausalLM>(tokenizer, model, device);