Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: llama_get_logits_ith(353) returned null #929

Open
emulk opened this issue Sep 27, 2024 · 2 comments
Open

[BUG]: llama_get_logits_ith(353) returned null #929

emulk opened this issue Sep 27, 2024 · 2 comments

Comments

@emulk
Copy link

emulk commented Sep 27, 2024

Description

When i try to use the Q&A features,
KernelMemory.cs -> await AnswerQuestion(memory, question1);

i have the following exception LLama.Exceptions.GetLogitsInvalidIndexException: 'llama_get_logits_ith(355) returned null'

Reproduction Steps

Run the example Q&A

Environment & Configuration

  • Operating system: Windows 10
  • .NET runtime version: .net 8
  • LLamaSharp version:
  • CUDA version (if you are using cuda backend):
  • CPU & GPU device:

Known Workarounds

No response

@martindevans
Copy link
Member

Some investigation was done into this problem over in #891. It seems like Embeddings=true cannot be set during text generation (see this comment).

@emulk
Copy link
Author

emulk commented Sep 27, 2024

not working in my case,
i have another error, on SafeLLamaContextHandle.cs
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants