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 + +