-
Notifications
You must be signed in to change notification settings - Fork 470
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I've been using Microsoft's Kernel Memory with LLmaSharp and have encountered an (issue)[https://github.com/microsoft/kernel-memory/issues/252].
Basically, a call to
_context.Tokenize(text).Length;
with text
equal to "\n"
throws an exception:
LLama.Exceptions.RuntimeError
HResult=0x80131500
Message=Error happened during tokenization. It's possibly caused by wrong encoding. Please try to specify the encoding.
Source=LLamaSharp
StackTrace:
at LLama.Native.SafeLLamaContextHandle.Tokenize(String text, Boolean add_bos, Boolean special, Encoding encoding)
and according to the folks there, it seems to be a bug in LLamaSharp. So I've been asked to post the issue here.
I've tested with various models, e.g. kai-7b-instruct.Q5_K_M.gguf
and it seems to occur in most of them.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working