From 528a7aafcbbfad8774c81d22c2d7b958b01980f4 Mon Sep 17 00:00:00 2001 From: SignalRT Date: Sat, 5 Aug 2023 14:37:03 +0200 Subject: [PATCH] Merge test changes from @martindevans The poc of the test is working know. Finally the problem error seems to be related with the process stopping. Once I changed the context with today llama.cpp binaries is working OK --- .gitignore | 3 ++- LLama.Unittest/BasicTest.cs | 8 ++++++-- LLama.Unittest/LLama.Unittest.csproj | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d1d0ba40..2c7d5041 100644 --- a/.gitignore +++ b/.gitignore @@ -341,4 +341,5 @@ test/TensorFlowNET.Examples/mnist *.xsd # docs -site/ \ No newline at end of file +site/ +*.bin diff --git a/LLama.Unittest/BasicTest.cs b/LLama.Unittest/BasicTest.cs index 29178432..308b13ad 100644 --- a/LLama.Unittest/BasicTest.cs +++ b/LLama.Unittest/BasicTest.cs @@ -1,11 +1,15 @@ +using LLama; +using LLama.Common; + namespace LLama.Unittest { public class BasicTest { [Fact] - public void SimpleQA() + public void LoadModel() { - + var model = new LLamaModel(new ModelParams("Models/llama-2-7b-chat.ggmlv3.q3_K_S.bin", contextSize: 256)); + model.Dispose(); } } } \ No newline at end of file diff --git a/LLama.Unittest/LLama.Unittest.csproj b/LLama.Unittest/LLama.Unittest.csproj index 93922e81..845b9acf 100644 --- a/LLama.Unittest/LLama.Unittest.csproj +++ b/LLama.Unittest/LLama.Unittest.csproj @@ -27,4 +27,19 @@ + + + + + + + + + + + + + PreserveNewest + +