Skip to content

Commit f0876d2

Browse files
committed
Update LLamaEmbedder, Examples packages, and KernelMemory examples
- Embedding generation: Extension with Batch processing + Normalization (important to have this built-in for KernelMemory). - Examples had wrong nuget packages, updated to correct ones. - Updated KernelMemory examples. - added missing model parameters - adding config is null check - unit tests project update to prevent the constant download of many GBs - ** for some reason Embeddings must be set to false in the kernel memory text embedding generator => we need to follow this and check it later because this should normally be 'true' ! ** - skipping one test for macOS (all other tests are OK) - setting GpuLayerCount to 0 in Release in CIGpuLayerCount also for Windows
1 parent 5f0d737 commit f0876d2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

LLama.Unittest/Native/SafeLlamaModelHandleTests.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ public SafeLlamaModelHandleTests()
1919
_model = LLamaWeights.LoadFromFile(@params);
2020
}
2121

22-
[Fact]
22+
[SkippableFact]
2323
public void MetadataValByKey_ReturnsCorrectly()
2424
{
25-
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
26-
{
27-
Assert.True(true, "Skipping this test on macOS because for some reason the meta data is incorrect, but the rest of tests work well on mscOS.");
28-
return;
29-
}
25+
Skip.If(RuntimeInformation.IsOSPlatform(OSPlatform.OSX), "Skipping this test on macOS because for some reason the meta data is incorrect, but the rest of tests work well on mscOS [Check later!].");
3026

3127
const string key = "general.name";
3228
var template = _model.NativeHandle.MetadataValueByKey(key);

0 commit comments

Comments
 (0)