Skip to content

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

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

Closed
emulk opened this issue Sep 27, 2024 · 3 comments
Closed

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

emulk opened this issue Sep 27, 2024 · 3 comments
Labels
stale Stale issue will be autoclosed soon

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.'

Copy link

This issue has been automatically marked as stale due to inactivity. If no further activity occurs, it will be closed in 7 days.

@github-actions github-actions bot added the stale Stale issue will be autoclosed soon label Apr 28, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale issue will be autoclosed soon
Projects
None yet
Development

No branches or pull requests

2 participants