From 550f2f7684f5b2b171b90f9f442a3c36fb79e6ea Mon Sep 17 00:00:00 2001 From: Martin Evans Date: Fri, 19 Apr 2024 18:31:14 +0100 Subject: [PATCH] Fixed build due to changes in unit tests --- LLama.Unittest/LLamaEmbedderTests.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/LLama.Unittest/LLamaEmbedderTests.cs b/LLama.Unittest/LLamaEmbedderTests.cs index 4c2bc8ab..43de46f9 100644 --- a/LLama.Unittest/LLamaEmbedderTests.cs +++ b/LLama.Unittest/LLamaEmbedderTests.cs @@ -10,21 +10,6 @@ public sealed class LLamaEmbedderTests public LLamaEmbedderTests(ITestOutputHelper testOutputHelper) { _testOutputHelper = testOutputHelper; - - var @params = new ModelParams(Constants.EmbeddingModelPath) - { - ContextSize = 4096, - Threads = 5, - Embeddings = true, - GpuLayerCount = Constants.CIGpuLayerCount, - }; - using var weights = LLamaWeights.LoadFromFile(@params); - _embedder = new(weights, @params); - } - - public void Dispose() - { - _embedder.Dispose(); } private static float Dot(float[] a, float[] b)