Skip to content

Commit

Permalink
Fixed build due to changes in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martindevans committed Apr 19, 2024
1 parent 8f358e1 commit 550f2f7
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions LLama.Unittest/LLamaEmbedderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 550f2f7

Please sign in to comment.