1 write to model
Microsoft.ML.GenAI.LLaMA (1)
LlamaForCausalLM.cs (1)
33model = new LlamaModel(config, device);
3 references to model
Microsoft.ML.GenAI.LLaMA (3)
LlamaForCausalLM.cs (3)
53var embeddingWeight = model.Embedding.state_dict(); 56this.lm_head.to(device: model.Embedding.weight!.device); 63var outputs = this.model.forward(input);