Browse Source

Fixed build due to changes in unit tests

pull/678/head
Martin Evans 2 years ago
parent
commit
550f2f7684
1 changed files with 0 additions and 15 deletions
  1. +0
    -15
      LLama.Unittest/LLamaEmbedderTests.cs

+ 0
- 15
LLama.Unittest/LLamaEmbedderTests.cs View File

@@ -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)


Loading…
Cancel
Save