Skip to content

Getting exception: "llama_decode failed: 'NoKvSlot'" when LLM analyze text (news) #528

Closed
@MagicMaxxx

Description

@MagicMaxxx

Hello!

This exception happens not on a first prompt, but when I provided a list of news (in Russian, 10 rows with title, date and category) and then I ask LLM to analyze and write news related to sport topic. I've attached a list of news that I use in my prompt.
RbcRuNews.txt. The prompt usually looks like this: "вот список новостей, напиши только те что относятся к спорту. " + text from the file. Also, this exception not appears when I use a prompt about data stored in the LLM...

Stack trace (last rows):
at LLama.StatelessExecutor.d__9.MoveNext()
at LLama.StatelessExecutor.d__9.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
at LLama.LLamaTransforms.KeywordTextOutputStreamTransform.d__4.MoveNext()
at LLama.LLamaTransforms.KeywordTextOutputStreamTransform.d__4.MoveNext()
at LLama.LLamaTransforms.KeywordTextOutputStreamTransform.d__4.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
at LLamaSharp.SemanticKernel.ChatCompletion.LLamaSharpChatCompletion.d__11.MoveNext()
at LLamaSharp.SemanticKernel.ChatCompletion.LLamaSharpChatCompletion.d__11.MoveNext()
at LLamaSharp.SemanticKernel.ChatCompletion.LLamaSharpChatCompletion.d__11.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)

Multiple LLMs, got this exception on:

  • TheBloke\llama-2-7b-chat.Q4_K_M.gguf
  • TheBloke\mistral-7b-openorca.Q4_K_M.gguf
  • IlyaGusev\saiga_mistral_7b_model-q4_K.gguf
  • TheBloke\phi-2.Q5_K_S.gguf

LlamaSharp version is 0.10.1.

I'll update this ticket in the case if I'll get new details

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions