You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <returns>Read-only list of tokens for the input test</returns>
108
126
/// <remarks>
109
127
/// It throws if text is null and Includes empty stop token because addBos is left true to be consistent with the CountTokens implementation.</remarks>
/// <returns>Read-only list of tokens for the input test</returns>
128
145
/// <remarks>
129
146
/// It throws if text is null and Includes empty stop token because addBos is left true to be consistent with the CountTokens implementation.</remarks>
//TODO: the below does not work with the new memory efficient context handling - we probably need to define Microsoft.Extensions.AI.IEmbeddingGenerator GetService interface that creates the context on the fly
Copy file name to clipboardExpand all lines: LLama.Unittest/Native/SafeLlamaModelHandleTests.cs
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,12 @@ public SafeLlamaModelHandleTests()
19
19
};
20
20
_model=LLamaWeights.LoadFromFile(@params);
21
21
}
22
-
22
+
23
23
// Note: This test is flakey, it appears to often (but not always) fail the first time it is run after downloading the model file, but then succeed every time after!
24
24
//[SkippableFact]
25
25
//public void MetadataValByKey_ReturnsCorrectly()
26
26
//{
27
27
// 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!].");
28
-
29
28
// const string key = "general.name";
30
29
// var template = _model.NativeHandle.MetadataValueByKey(key);
31
30
// var name = Encoding.UTF8.GetStringFromSpan(template!.Value.Span);
0 commit comments