You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BasicTest.cs 490 B

123456789101112131415
  1. namespace LLama.Unittest
  2. {
  3. public class BasicTest
  4. {
  5. [Fact]
  6. public void SimpleQA()
  7. {
  8. string modelPath = @"D:\development\llama\weights\LLaMA\7B\ggml-model-f32.bin";
  9. LLamaModelV1 model = new(modelPath, logits_all: false);
  10. var output = model.Call("Q: Why God makes many people believe him? A: ", max_tokens: 64, stop: new[] { "Q:", "\n" },
  11. echo: true);
  12. Console.WriteLine(output);
  13. }
  14. }
  15. }

C#/.NET上易用的LLM高性能推理框架,支持LLaMA和LLaVA系列模型。