-
-
Notifications
You must be signed in to change notification settings - Fork 180
Could not find a KV slot #136
Copy link
Copy link
Closed
Description
Issue description
In version 2.8.3 I am receiving "could not find a KV slot for the batch (try reducing the size of the batch or increase the context)" error when performing a bunch of zero-shot prompts in a loop with the same context.
Expected Behavior
To be able to perform zero-shot prompts in a loop without failure.
Actual Behavior
I'm receiving the following error after a few iterations regardless of the number of layers or if I create multiple contexts.
Steps to reproduce
- follow instructions on my OSS project for setting up genai-gamelist
- update package.json to use 2.8.3 from 3.x beta for node-llama-cpp
- run the script
My Environment
| Dependency | Version |
|---|---|
| Operating System | Ubuntu 22.04 LTS |
| CPU | AMD Ryzen 9 5900X |
| Node.js version | 18.x |
| Typescript version | 5.3.3 |
node-llama-cpp version |
2.8.3 |
Additional Context
With only upgrading to the 3.x beta, I am now unable to reproduce the issue with the same script.
Relevant Features Used
- Metal support
- CUDA support
- Grammar
Are you willing to resolve this issue by submitting a Pull Request?
Yes, I have the time, but I don't know how to start. I would need guidance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working